pub type R = R<CONFIG_SPEC>;
Expand description
Register config
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
Source§impl R
impl R
Sourcepub fn master_enable(&self) -> MASTER_ENABLE_R
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.
Sourcepub fn transfer_direction(&self) -> TRANSFER_DIRECTION_R
pub fn transfer_direction(&self) -> TRANSFER_DIRECTION_R
Bit 1 - Packet transfer direction
Sourcepub fn deglitch_enable(&self) -> DEGLITCH_ENABLE_R
pub fn deglitch_enable(&self) -> DEGLITCH_ENABLE_R
Bit 2 - Enable de-glitch function on all input pins
Sourcepub fn clock_synchronize(&self) -> CLOCK_SYNCHRONIZE_R
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.
Sourcepub fn sub_address_enable(&self) -> SUB_ADDRESS_ENABLE_R
pub fn sub_address_enable(&self) -> SUB_ADDRESS_ENABLE_R
Bit 4 - Enable sub-address fields
Sourcepub fn sub_address_length(&self) -> SUB_ADDRESS_LENGTH_R
pub fn sub_address_length(&self) -> SUB_ADDRESS_LENGTH_R
Bits 5:6 - Byte count for I2C sub-address
Sourcepub fn slave_address(&self) -> SLAVE_ADDRESS_R
pub fn slave_address(&self) -> SLAVE_ADDRESS_R
Bits 8:14 - I2C transaction slave address
Sourcepub fn packet_length(&self) -> PACKET_LENGTH_R
pub fn packet_length(&self) -> PACKET_LENGTH_R
Bits 16:23 - Byte count for each packet
Sourcepub fn deglitch_cycle(&self) -> DEGLITCH_CYCLE_R
pub fn deglitch_cycle(&self) -> DEGLITCH_CYCLE_R
Bits 28:31 - De-glitch function cycle count