[][src]Type Definition lpc54606_pac::i2c0::slvctl::R

type R = R<u32, SLVCTL>;

Reader of register SLVCTL

Methods

impl R[src]

pub fn slvcontinue(&self) -> SLVCONTINUE_R[src]

Bit 0 - Slave Continue.

pub fn slvnack(&self) -> SLVNACK_R[src]

Bit 1 - Slave NACK.

pub fn slvdma(&self) -> SLVDMA_R[src]

Bit 3 - Slave DMA enable.

pub fn autoack(&self) -> AUTOACK_R[src]

Bit 8 - Automatic Acknowledge.When this bit is set, it will cause an I2C header which matches SLVADR0 and the direction set by AUTOMATCHREAD to be ACKed immediately; this is used with DMA to allow processing of the data without intervention. If this bit is clear and a header matches SLVADR0, the behavior is controlled by AUTONACK in the SLVADR0 register: allowing NACK or interrupt.

pub fn automatchread(&self) -> AUTOMATCHREAD_R[src]

Bit 9 - When AUTOACK is set, this bit controls whether it matches a read or write request on the next header with an address matching SLVADR0. Since DMA needs to be configured to match the transfer direction, the direction needs to be specified. This bit allows a direction to be chosen for the next operation.