Type Alias R

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

Register config reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn master_enable(&self) -> MASTER_ENABLE_R

Bit 0 - Enable signal of I2C master function

Asserting this bit will trigger the transaction, and should be de-asserted after finish.

Source

pub fn transfer_direction(&self) -> TRANSFER_DIRECTION_R

Bit 1 - Packet transfer direction

Source

pub fn deglitch_enable(&self) -> DEGLITCH_ENABLE_R

Bit 2 - Enable de-glitch function on all input pins

Source

pub fn clock_synchronize(&self) -> CLOCK_SYNCHRONIZE_R

Bit 3 - Enable I2C clock synchronization

Enable this bit to support multi-master and clock-stretching. It should not be turned-off normally.

Source

pub fn sub_address_enable(&self) -> SUB_ADDRESS_ENABLE_R

Bit 4 - Enable sub-address fields

Source

pub fn sub_address_length(&self) -> SUB_ADDRESS_LENGTH_R

Bits 5:6 - Byte count for I2C sub-address

Source

pub fn slave_address(&self) -> SLAVE_ADDRESS_R

Bits 8:14 - I2C transaction slave address

Source

pub fn packet_length(&self) -> PACKET_LENGTH_R

Bits 16:23 - Byte count for each packet

Source

pub fn deglitch_cycle(&self) -> DEGLITCH_CYCLE_R

Bits 28:31 - De-glitch function cycle count