#[repr(transparent)]pub struct IcTxTl(pub u32);
Expand description
I2C Transmit FIFO Threshold Register
Tuple Fields§
§0: u32
Implementations§
source§impl IcTxTl
impl IcTxTl
sourcepub const fn tx_tl(&self) -> u8
pub const fn tx_tl(&self) -> u8
Transmit FIFO Threshold Level. Controls the level of entries (or below) that trigger the TX_EMPTY interrupt (bit 4 in IC_RAW_INTR_STAT register). The valid range is 0-255, with the additional restriction that it may not be set to value larger than the depth of the buffer. If an attempt is made to do that, the actual value set will be the maximum depth of the buffer. A value of 0 sets the threshold for 0 entries, and a value of 255 sets the threshold for 255 entries.
sourcepub fn set_tx_tl(&mut self, val: u8)
pub fn set_tx_tl(&mut self, val: u8)
Transmit FIFO Threshold Level. Controls the level of entries (or below) that trigger the TX_EMPTY interrupt (bit 4 in IC_RAW_INTR_STAT register). The valid range is 0-255, with the additional restriction that it may not be set to value larger than the depth of the buffer. If an attempt is made to do that, the actual value set will be the maximum depth of the buffer. A value of 0 sets the threshold for 0 entries, and a value of 255 sets the threshold for 255 entries.
Trait Implementations§
impl Copy for IcTxTl
impl Eq for IcTxTl
impl StructuralPartialEq for IcTxTl
Auto Trait Implementations§
impl Freeze for IcTxTl
impl RefUnwindSafe for IcTxTl
impl Send for IcTxTl
impl Sync for IcTxTl
impl Unpin for IcTxTl
impl UnwindSafe for IcTxTl
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
)