Type Alias R

Source
pub type R = R<COMD_SPEC>;
Expand description

Register COMD%s reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn byte_num(&self) -> BYTE_NUM_R

Bits 0:7 - Number of bytes to be sent or received for command %s.

Source

pub fn ack_check_en(&self) -> ACK_CHECK_EN_R

Bit 8 - Acknowledge check enable for command %s.

Source

pub fn ack_exp(&self) -> ACK_EXP_R

Bit 9 - Acknowledge expected for command %s.

Source

pub fn ack_value(&self) -> ACK_VALUE_R

Bit 10 - Acknowledge value for command %s.

Source

pub fn opcode(&self) -> OPCODE_R

Bits 11:13 - Opcode part of command %s.

Source

pub fn command_done(&self) -> COMMAND_DONE_R

Bit 31 - When command 0 is done in I2C Master mode, this bit changes to high level.