pub struct W(_);
Expand description
Register COMD%s
writer
Implementations§
§impl W
impl W
pub fn command(
&mut self
) -> FieldWriterRaw<'_, u32, COMD_SPEC, u16, u16, Unsafe, 14, 0>
pub fn command(
&mut self
) -> FieldWriterRaw<'_, u32, COMD_SPEC, u16, u16, Unsafe, 14, 0>
Bits 0:13 - This is the content of command0. It consists of three part. op_code is the command 0: RSTART 1: WRITE 2: READ 3: STOP . 4:END. Byte_num represent the number of data need to be send or data need to be received. ack_check_en ack_exp and ack value are used to control the ack bit.
pub fn command_done(
&mut self
) -> BitWriterRaw<'_, u32, COMD_SPEC, bool, BitM, 31>
pub fn command_done(
&mut self
) -> BitWriterRaw<'_, u32, COMD_SPEC, bool, BitM, 31>
Bit 31 - When command0 is done in I2C Master mode this bit changes to high level.
Methods from Deref<Target = W<COMD_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.