Struct stm32_metapac::can::regs::Cccr
#[repr(transparent)]pub struct Cccr(pub u32);
Expand description
FDCAN CC control register
Tuple Fields§
§0: u32
Implementations§
§impl Cccr
impl Cccr
pub const fn asm(&self) -> bool
pub const fn asm(&self) -> bool
ASM restricted operation mode. The restricted operation mode is intended for applications that adapt themselves to different CAN bit rates. The application tests different bit rates and leaves the Restricted operation Mode after it has received a valid frame. In the optional Restricted operation Mode the node is able to transmit and receive data and remote frames and it gives acknowledge to valid frames, but it does not send active error frames or overload frames. In case of an error condition or overload condition, it does not send dominant bits, instead it waits for the occurrence of bus idle condition to resynchronize itself to the CAN communication. The error counters are not incremented. Bit ASM can only be set by software when both CCE and INIT are set to 1. The bit can be reset by the software at any time
pub fn set_asm(&mut self, val: bool)
pub fn set_asm(&mut self, val: bool)
ASM restricted operation mode. The restricted operation mode is intended for applications that adapt themselves to different CAN bit rates. The application tests different bit rates and leaves the Restricted operation Mode after it has received a valid frame. In the optional Restricted operation Mode the node is able to transmit and receive data and remote frames and it gives acknowledge to valid frames, but it does not send active error frames or overload frames. In case of an error condition or overload condition, it does not send dominant bits, instead it waits for the occurrence of bus idle condition to resynchronize itself to the CAN communication. The error counters are not incremented. Bit ASM can only be set by software when both CCE and INIT are set to 1. The bit can be reset by the software at any time
pub const fn mon(&self) -> bool
pub const fn mon(&self) -> bool
Bus monitoring mode. Bit MON can only be set by software when both CCE and INIT are set to 1. The bit can be reset by the Host at any time
pub fn set_mon(&mut self, val: bool)
pub fn set_mon(&mut self, val: bool)
Bus monitoring mode. Bit MON can only be set by software when both CCE and INIT are set to 1. The bit can be reset by the Host at any time
pub const fn txp(&self) -> bool
pub const fn txp(&self) -> bool
If this bit is set, the FDCAN pauses for two CAN bit times before starting the next transmission after successfully transmitting a frame
pub fn set_txp(&mut self, val: bool)
pub fn set_txp(&mut self, val: bool)
If this bit is set, the FDCAN pauses for two CAN bit times before starting the next transmission after successfully transmitting a frame
Trait Implementations§
impl Copy for Cccr
impl Eq for Cccr
impl StructuralPartialEq for Cccr
Auto Trait Implementations§
impl Freeze for Cccr
impl RefUnwindSafe for Cccr
impl Send for Cccr
impl Sync for Cccr
impl Unpin for Cccr
impl UnwindSafe for Cccr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)