Struct stm32_metapac::can::regs::Nbtp
#[repr(transparent)]pub struct Nbtp(pub u32);
Expand description
FDCAN nominal bit timing and prescaler register
Tuple Fields§
§0: u32
Implementations§
§impl Nbtp
impl Nbtp
pub const fn ntseg2(&self) -> u8
pub const fn ntseg2(&self) -> u8
Nominal time segment after sample point. Valid values are 0 to 127. The actual interpretation by the hardware of this value is such that one more than the programmed value is used
pub fn set_ntseg2(&mut self, val: u8)
pub fn set_ntseg2(&mut self, val: u8)
Nominal time segment after sample point. Valid values are 0 to 127. The actual interpretation by the hardware of this value is such that one more than the programmed value is used
pub const fn ntseg1(&self) -> u8
pub const fn ntseg1(&self) -> u8
Nominal time segment before sample point. Valid values are 0 to 255. The actual interpretation by the hardware of this value is such that one more than the programmed value is used. These are protected write (P) bits, write access is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1
pub fn set_ntseg1(&mut self, val: u8)
pub fn set_ntseg1(&mut self, val: u8)
Nominal time segment before sample point. Valid values are 0 to 255. The actual interpretation by the hardware of this value is such that one more than the programmed value is used. These are protected write (P) bits, write access is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1
pub const fn nbrp(&self) -> u16
pub const fn nbrp(&self) -> u16
Bit rate prescaler. Value by which the oscillator frequency is divided for generating the bit time quanta. The bit time is built up from a multiple of this quanta. Valid values are 0 to 511. The actual interpretation by the hardware of this value is such that one more than the value programmed here is used. These are protected write (P) bits, write access is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1
pub fn set_nbrp(&mut self, val: u16)
pub fn set_nbrp(&mut self, val: u16)
Bit rate prescaler. Value by which the oscillator frequency is divided for generating the bit time quanta. The bit time is built up from a multiple of this quanta. Valid values are 0 to 511. The actual interpretation by the hardware of this value is such that one more than the value programmed here is used. These are protected write (P) bits, write access is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1
pub const fn nsjw(&self) -> u8
pub const fn nsjw(&self) -> u8
Nominal (re)synchronization jump width. Valid values are 0 to 127. The actual interpretation by the hardware of this value is such that the used value is the one programmed incremented by one. These are protected write (P) bits, write access is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1
pub fn set_nsjw(&mut self, val: u8)
pub fn set_nsjw(&mut self, val: u8)
Nominal (re)synchronization jump width. Valid values are 0 to 127. The actual interpretation by the hardware of this value is such that the used value is the one programmed incremented by one. These are protected write (P) bits, write access is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1