Struct stm32_metapac::i3c::regs::Tgttdr
#[repr(transparent)]pub struct Tgttdr(pub u32);
Expand description
I3C target transmit configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Tgttdr
impl Tgttdr
pub const fn tgttdcnt(&self) -> u16
pub const fn tgttdcnt(&self) -> u16
transmit data counter, in bytes (when I3C is configured as target) This field must be written by software in the same access when is asserted PRELOAD, in order to define the number of bytes to preload and to transmit. This field is updated by hardware and reports, when read, the remaining number of bytes to be loaded into the TX-FIFO.
pub fn set_tgttdcnt(&mut self, val: u16)
pub fn set_tgttdcnt(&mut self, val: u16)
transmit data counter, in bytes (when I3C is configured as target) This field must be written by software in the same access when is asserted PRELOAD, in order to define the number of bytes to preload and to transmit. This field is updated by hardware and reports, when read, the remaining number of bytes to be loaded into the TX-FIFO.
pub const fn preload(&self) -> bool
pub const fn preload(&self) -> bool
preload of the TX-FIFO (when I3C is configured as target) This bit must be written and asserted by software in the same access when is written and defined the number of bytes to preload into the TX-FIFO and to transmit. This bit is cleared by hardware when all the data bytes to transmit are loaded into the TX-FIFO.
pub fn set_preload(&mut self, val: bool)
pub fn set_preload(&mut self, val: bool)
preload of the TX-FIFO (when I3C is configured as target) This bit must be written and asserted by software in the same access when is written and defined the number of bytes to preload into the TX-FIFO and to transmit. This bit is cleared by hardware when all the data bytes to transmit are loaded into the TX-FIFO.
Trait Implementations§
impl Copy for Tgttdr
impl Eq for Tgttdr
impl StructuralPartialEq for Tgttdr
Auto Trait Implementations§
impl Freeze for Tgttdr
impl RefUnwindSafe for Tgttdr
impl Send for Tgttdr
impl Sync for Tgttdr
impl Unpin for Tgttdr
impl UnwindSafe for Tgttdr
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
)