Struct rp2040_pac::i2c0::ic_data_cmd::IC_DATA_CMD_SPEC
source · pub struct IC_DATA_CMD_SPEC;
Expand description
I2C Rx/Tx Data Buffer and Command Register; this is the register the CPU writes to when filling the TX FIFO and the CPU reads from when retrieving bytes from RX FIFO.
The size of the register changes as follows:
Write: - 11 bits when IC_EMPTYFIFO_HOLD_MASTER_EN=1 - 9 bits when IC_EMPTYFIFO_HOLD_MASTER_EN=0 Read: - 12 bits when IC_FIRST_DATA_BYTE_STATUS = 1 - 8 bits when IC_FIRST_DATA_BYTE_STATUS = 0 Note: In order for the DW_apb_i2c to continue acknowledging reads, a read command should be written for every byte that is to be received; otherwise the DW_apb_i2c will stop acknowledging.
You can read
this register and get ic_data_cmd::R
. You can reset
, write
, write_with_zero
this register using ic_data_cmd::W
. You can also modify
this register. See API.
Trait Implementations§
source§impl RegisterSpec for IC_DATA_CMD_SPEC
impl RegisterSpec for IC_DATA_CMD_SPEC
source§impl Resettable for IC_DATA_CMD_SPEC
impl Resettable for IC_DATA_CMD_SPEC
reset()
method sets IC_DATA_CMD to value 0
source§const RESET_VALUE: u32 = 0u32
const RESET_VALUE: u32 = 0u32
source§fn reset_value() -> Self::Ux
fn reset_value() -> Self::Ux
source§impl Writable for IC_DATA_CMD_SPEC
impl Writable for IC_DATA_CMD_SPEC
write(|w| ..)
method takes ic_data_cmd::W
writer structure
source§const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0u32
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0u32
1
and are changed if you pass 0
source§const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0u32
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0u32
0
and are changed if you pass 1
impl Readable for IC_DATA_CMD_SPEC
read()
method returns ic_data_cmd::R
reader structure