Struct esp32_hal::pac::rtc_i2c::debug_status::W
pub struct W(_);
Expand description
Register DEBUG_STATUS
writer
Implementations§
§impl W
impl W
pub fn ack_val(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 0>
pub fn ack_val(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 0>
Bit 0 - The value of an acknowledge signal on the bus
pub fn slave_rw(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 1>
pub fn slave_rw(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 1>
Bit 1 - When working as a slave, the value of R/W bit received
pub fn timed_out(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 2>
pub fn timed_out(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 2>
Bit 2 - Transfer has timed out
pub fn arb_lost(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 3>
pub fn arb_lost(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 3>
Bit 3 - When working as a master, lost control of I2C bus
pub fn bus_busy(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 4>
pub fn bus_busy(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 4>
Bit 4 - operation is in progress
pub fn slave_addr_match(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 5>
pub fn slave_addr_match(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 5>
Bit 5 - When working as a slave, whether address was matched
pub fn byte_trans(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 6>
pub fn byte_trans(
&mut self
) -> BitWriterRaw<'_, u32, DEBUG_STATUS_SPEC, bool, BitM, 6>
Bit 6 - 8 bit transmit done
pub fn main_state(
&mut self
) -> FieldWriterRaw<'_, u32, DEBUG_STATUS_SPEC, u8, u8, Unsafe, 3, 25>
pub fn main_state(
&mut self
) -> FieldWriterRaw<'_, u32, DEBUG_STATUS_SPEC, u8, u8, Unsafe, 3, 25>
Bits 25:27 - state of the main state machine
pub fn scl_state(
&mut self
) -> FieldWriterRaw<'_, u32, DEBUG_STATUS_SPEC, u8, u8, Unsafe, 3, 28>
pub fn scl_state(
&mut self
) -> FieldWriterRaw<'_, u32, DEBUG_STATUS_SPEC, u8, u8, Unsafe, 3, 28>
Bits 28:30 - state of SCL state machine
Methods from Deref<Target = W<DEBUG_STATUS_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations§
§impl From<W<DEBUG_STATUS_SPEC>> for W
impl From<W<DEBUG_STATUS_SPEC>> for W
§fn from(writer: W<DEBUG_STATUS_SPEC>) -> W
fn from(writer: W<DEBUG_STATUS_SPEC>) -> W
Converts to this type from the input type.