#[repr(transparent)]pub struct IcSar(pub u32);
Expand description
I2C Slave Address Register
Tuple Fields§
§0: u32
Implementations§
source§impl IcSar
impl IcSar
sourcepub const fn ic_sar(&self) -> u16
pub const fn ic_sar(&self) -> u16
The IC_SAR holds the slave address when the I2C is operating as a slave. For 7-bit addressing, only IC_SAR[6:0] is used. This register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE[0] register being set to 0. Writes at other times have no effect. Note: The default values cannot be any of the reserved address locations: that is, 0x00 to 0x07, or 0x78 to 0x7f. The correct operation of the device is not guaranteed if you program the IC_SAR or IC_TAR to a reserved value. Refer to <<table_I2C_firstbyte_bit_defs>> for a complete list of these reserved values.
sourcepub fn set_ic_sar(&mut self, val: u16)
pub fn set_ic_sar(&mut self, val: u16)
The IC_SAR holds the slave address when the I2C is operating as a slave. For 7-bit addressing, only IC_SAR[6:0] is used. This register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE[0] register being set to 0. Writes at other times have no effect. Note: The default values cannot be any of the reserved address locations: that is, 0x00 to 0x07, or 0x78 to 0x7f. The correct operation of the device is not guaranteed if you program the IC_SAR or IC_TAR to a reserved value. Refer to <<table_I2C_firstbyte_bit_defs>> for a complete list of these reserved values.
Trait Implementations§
impl Copy for IcSar
impl Eq for IcSar
impl StructuralPartialEq for IcSar
Auto Trait Implementations§
impl Freeze for IcSar
impl RefUnwindSafe for IcSar
impl Send for IcSar
impl Sync for IcSar
impl Unpin for IcSar
impl UnwindSafe for IcSar
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
)