pub struct R(_);
Expand description
Register SCL_STRETCH_CONF
reader
Implementations
sourceimpl R
impl R
sourcepub fn stretch_protect_num(&self) -> STRETCH_PROTECT_NUM_R
pub fn stretch_protect_num(&self) -> STRETCH_PROTECT_NUM_R
Bits 0:9 - Configure the period of I2C slave stretching SCL line.
sourcepub fn slave_scl_stretch_en(&self) -> SLAVE_SCL_STRETCH_EN_R
pub fn slave_scl_stretch_en(&self) -> SLAVE_SCL_STRETCH_EN_R
Bit 10 - The enable bit for slave SCL stretch function. 1: Enable. 0: Disable. The SCL output line will be stretched low when reg_slave_scl_stretch_en is 1 and stretch event happens. The stretch cause can be seen in reg_stretch_cause.
sourcepub fn slave_byte_ack_ctl_en(&self) -> SLAVE_BYTE_ACK_CTL_EN_R
pub fn slave_byte_ack_ctl_en(&self) -> SLAVE_BYTE_ACK_CTL_EN_R
Bit 12 - The enable bit for slave to control ACK level function.
sourcepub fn slave_byte_ack_lvl(&self) -> SLAVE_BYTE_ACK_LVL_R
pub fn slave_byte_ack_lvl(&self) -> SLAVE_BYTE_ACK_LVL_R
Bit 13 - Set the ACK level when slave controlling ACK level function enables.
Methods from Deref<Target = R<SCL_STRETCH_CONF_SPEC>>
Trait Implementations
sourceimpl From<R<SCL_STRETCH_CONF_SPEC>> for R
impl From<R<SCL_STRETCH_CONF_SPEC>> for R
sourcefn from(reader: R<SCL_STRETCH_CONF_SPEC>) -> Self
fn from(reader: R<SCL_STRETCH_CONF_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more