Struct rp_pac::i2c::regs::IcAckGeneralCall
source · #[repr(transparent)]pub struct IcAckGeneralCall(pub u32);
Expand description
I2C ACK General Call Register The register controls whether DW_apb_i2c responds with a ACK or NACK when it receives an I2C General Call address. This register is applicable only when the DW_apb_i2c is in slave mode.
Tuple Fields§
§0: u32
Implementations§
source§impl IcAckGeneralCall
impl IcAckGeneralCall
sourcepub const fn ack_gen_call(&self) -> bool
pub const fn ack_gen_call(&self) -> bool
ACK General Call. When set to 1, DW_apb_i2c responds with a ACK (by asserting ic_data_oe) when it receives a General Call. Otherwise, DW_apb_i2c responds with a NACK (by negating ic_data_oe).
sourcepub fn set_ack_gen_call(&mut self, val: bool)
pub fn set_ack_gen_call(&mut self, val: bool)
ACK General Call. When set to 1, DW_apb_i2c responds with a ACK (by asserting ic_data_oe) when it receives a General Call. Otherwise, DW_apb_i2c responds with a NACK (by negating ic_data_oe).
Trait Implementations§
source§impl Clone for IcAckGeneralCall
impl Clone for IcAckGeneralCall
source§fn clone(&self) -> IcAckGeneralCall
fn clone(&self) -> IcAckGeneralCall
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for IcAckGeneralCall
impl Default for IcAckGeneralCall
source§fn default() -> IcAckGeneralCall
fn default() -> IcAckGeneralCall
Returns the “default value” for a type. Read more
source§impl PartialEq for IcAckGeneralCall
impl PartialEq for IcAckGeneralCall
impl Copy for IcAckGeneralCall
impl Eq for IcAckGeneralCall
impl StructuralPartialEq for IcAckGeneralCall
Auto Trait Implementations§
impl Freeze for IcAckGeneralCall
impl RefUnwindSafe for IcAckGeneralCall
impl Send for IcAckGeneralCall
impl Sync for IcAckGeneralCall
impl Unpin for IcAckGeneralCall
impl UnwindSafe for IcAckGeneralCall
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)