Struct stm32_metapac::ucpd::regs::TxPayszr
#[repr(transparent)]pub struct TxPayszr(pub u32);
Expand description
Tx payload size register
Tuple Fields§
§0: u32
Implementations§
§impl TxPayszr
impl TxPayszr
pub const fn txpaysz(&self) -> u16
pub const fn txpaysz(&self) -> u16
Payload size yet to transmit The bitfield is modified by software and by hardware. It contains the number of bytes of a payload (including header but excluding CRC) yet to transmit: each time a data byte is written into the TXDR register, the bitfield value decrements and the TXIS bit is set, except when the bitfield value reaches zero. The enumerated values are standard payload sizes before the start of transmission.
pub fn set_txpaysz(&mut self, val: u16)
pub fn set_txpaysz(&mut self, val: u16)
Payload size yet to transmit The bitfield is modified by software and by hardware. It contains the number of bytes of a payload (including header but excluding CRC) yet to transmit: each time a data byte is written into the TXDR register, the bitfield value decrements and the TXIS bit is set, except when the bitfield value reaches zero. The enumerated values are standard payload sizes before the start of transmission.