#[repr(transparent)]pub struct Ctrl2(pub u32);Expand description
Control 2.
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl2
impl Ctrl2
Sourcepub const fn pes(&self) -> bool
pub const fn pes(&self) -> bool
Payload Byte and Bit Order Selection. Raw bit values: false (0) = BigEnd: Big-endian.; true (1) = LittleEnd: Little-endian.
Sourcepub const fn set_pes(&mut self, val: bool)
pub const fn set_pes(&mut self, val: bool)
Payload Byte and Bit Order Selection. Raw bit values: false (0) = BigEnd: Big-endian.; true (1) = LittleEnd: Little-endian.
Sourcepub const fn asd(&self) -> bool
pub const fn asd(&self) -> bool
ACK Suppression Disable. Raw bit values: false (0) = Enable: Enabled.; true (1) = Disable: Disabled.
Sourcepub const fn set_asd(&mut self, val: bool)
pub const fn set_asd(&mut self, val: bool)
ACK Suppression Disable. Raw bit values: false (0) = Enable: Enabled.; true (1) = Disable: Disabled.
Sourcepub const fn edfltdis(&self) -> bool
pub const fn edfltdis(&self) -> bool
Edge Filter Disable. Raw bit values: false (0) = Enable: Enabled.; true (1) = Disable: Disabled.
Sourcepub const fn set_edfltdis(&mut self, val: bool)
pub const fn set_edfltdis(&mut self, val: bool)
Edge Filter Disable. Raw bit values: false (0) = Enable: Enabled.; true (1) = Disable: Disabled.
Sourcepub const fn isocanfden(&self) -> bool
pub const fn isocanfden(&self) -> bool
ISO CAN FD Enable. Raw bit values: false (0) = NonIso: Disable.; true (1) = Iso: Enable.
Sourcepub const fn set_isocanfden(&mut self, val: bool)
pub const fn set_isocanfden(&mut self, val: bool)
ISO CAN FD Enable. Raw bit values: false (0) = NonIso: Disable.; true (1) = Iso: Enable.
Sourcepub const fn set_prexcen(&mut self, val: bool)
pub const fn set_prexcen(&mut self, val: bool)
Protocol Exception Enable.
Sourcepub const fn eacen(&self) -> bool
pub const fn eacen(&self) -> bool
Entire Frame Arbitration Field Comparison Enable for RX Message Buffers. Raw bit values: false (0) = RtrCompareNo: Disable.; true (1) = RtrCompareYes: Enable.
Sourcepub const fn set_eacen(&mut self, val: bool)
pub const fn set_eacen(&mut self, val: bool)
Entire Frame Arbitration Field Comparison Enable for RX Message Buffers. Raw bit values: false (0) = RtrCompareNo: Disable.; true (1) = RtrCompareYes: Enable.
Sourcepub const fn rrs(&self) -> bool
pub const fn rrs(&self) -> bool
Remote Request Storing. Raw bit values: false (0) = RemoteResponseFrameNotGenerated: Generated.; true (1) = RemoteResponseFrameGenerated: Stored.
Sourcepub const fn set_rrs(&mut self, val: bool)
pub const fn set_rrs(&mut self, val: bool)
Remote Request Storing. Raw bit values: false (0) = RemoteResponseFrameNotGenerated: Generated.; true (1) = RemoteResponseFrameGenerated: Stored.
Sourcepub const fn mrp(&self) -> bool
pub const fn mrp(&self) -> bool
Message Buffers Reception Priority. Raw bit values: false (0) = Id1: Matching starts from Legacy RX FIFO or Enhanced RX FIFO and continues on message buffers.; true (1) = Id3: Matching starts from message buffers and continues on Legacy RX FIFO or Enhanced RX FIFO.
Sourcepub const fn set_mrp(&mut self, val: bool)
pub const fn set_mrp(&mut self, val: bool)
Message Buffers Reception Priority. Raw bit values: false (0) = Id1: Matching starts from Legacy RX FIFO or Enhanced RX FIFO and continues on message buffers.; true (1) = Id3: Matching starts from message buffers and continues on Legacy RX FIFO or Enhanced RX FIFO.
Sourcepub const fn boffdonemsk(&self) -> bool
pub const fn boffdonemsk(&self) -> bool
Bus Off Done Interrupt Mask.
Sourcepub const fn set_boffdonemsk(&mut self, val: bool)
pub const fn set_boffdonemsk(&mut self, val: bool)
Bus Off Done Interrupt Mask.
Sourcepub const fn errmsk_fast(&self) -> bool
pub const fn errmsk_fast(&self) -> bool
Error Interrupt Mask for Errors Detected in the Data Phase of Fast CAN FD Frames.
Sourcepub const fn set_errmsk_fast(&mut self, val: bool)
pub const fn set_errmsk_fast(&mut self, val: bool)
Error Interrupt Mask for Errors Detected in the Data Phase of Fast CAN FD Frames.