Struct stm32_metapac::ucpd::regs::RxPayszr
#[repr(transparent)]pub struct RxPayszr(pub u32);
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl RxPayszr
impl RxPayszr
pub const fn rxpaysz(&self) -> u16
pub const fn rxpaysz(&self) -> u16
Rx payload size received This bitfield contains the number of bytes of a payload (including header but excluding CRC) received: each time a new data byte is received in the RXDR register, the bitfield value increments and the RXMSGEND flag is set (and an interrupt generated if enabled). The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND flag is low).
pub fn set_rxpaysz(&mut self, val: u16)
pub fn set_rxpaysz(&mut self, val: u16)
Rx payload size received This bitfield contains the number of bytes of a payload (including header but excluding CRC) received: each time a new data byte is received in the RXDR register, the bitfield value increments and the RXMSGEND flag is set (and an interrupt generated if enabled). The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND flag is low).