#[repr(transparent)]pub struct IcRxTl(pub u32);
Expand description
I2C Receive FIFO Threshold Register
Tuple Fields§
§0: u32
Implementations§
source§impl IcRxTl
impl IcRxTl
sourcepub const fn rx_tl(&self) -> u8
pub const fn rx_tl(&self) -> u8
Receive FIFO Threshold Level. Controls the level of entries (or above) that triggers the RX_FULL interrupt (bit 2 in IC_RAW_INTR_STAT register). The valid range is 0-255, with the additional restriction that hardware does not allow this value to be set to a 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 1 entry, and a value of 255 sets the threshold for 256 entries.
sourcepub fn set_rx_tl(&mut self, val: u8)
pub fn set_rx_tl(&mut self, val: u8)
Receive FIFO Threshold Level. Controls the level of entries (or above) that triggers the RX_FULL interrupt (bit 2 in IC_RAW_INTR_STAT register). The valid range is 0-255, with the additional restriction that hardware does not allow this value to be set to a 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 1 entry, and a value of 255 sets the threshold for 256 entries.
Trait Implementations§
impl Copy for IcRxTl
impl Eq for IcRxTl
impl StructuralPartialEq for IcRxTl
Auto Trait Implementations§
impl Freeze for IcRxTl
impl RefUnwindSafe for IcRxTl
impl Send for IcRxTl
impl Sync for IcRxTl
impl Unpin for IcRxTl
impl UnwindSafe for IcRxTl
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
)