[][src]Type Definition lpc55s6x_pac::i2c0::slvctl::W

type W = W<u32, SLVCTL>;

Writer for register SLVCTL

Methods

impl W[src]

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

Bit 0 - Slave Continue.

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

Bit 1 - Slave NACK.

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

Bit 3 - Slave DMA enable.

pub fn autoack(&mut self) -> AUTOACK_W[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(&mut self) -> AUTOMATCHREAD_W[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.