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.
Trait Implementations§
impl Copy for TxPayszr
impl Eq for TxPayszr
impl StructuralPartialEq for TxPayszr
Auto Trait Implementations§
impl Freeze for TxPayszr
impl RefUnwindSafe for TxPayszr
impl Send for TxPayszr
impl Sync for TxPayszr
impl Unpin for TxPayszr
impl UnwindSafe for TxPayszr
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
)