#[repr(C)]pub struct RegisterBlock {
pub config: CONFIG,
pub interrupt: INTERRUPT,
pub sub_address: SUB_ADDRESS,
pub bus_busy: BUS_BUSY,
pub period_start: PERIOD_START,
pub period_stop: PERIOD_STOP,
pub period_data: PERIOD_DATA,
pub fifo_config_0: FIFO_CONFIG_0,
pub fifo_config_1: FIFO_CONFIG_1,
pub data_write: DATA_WRITE,
pub data_read: DATA_READ,
/* private fields */
}Expand description
Register block
Fields§
§config: CONFIG0x00 - Function configuration register
interrupt: INTERRUPT0x04 - Interrupt enables, states and masks
sub_address: SUB_ADDRESS0x08 - Register address of slave device
bus_busy: BUS_BUSY0x0c - Bus busy state indicator
period_start: PERIOD_START0x10 - Duration of start phase
period_stop: PERIOD_STOP0x14 - Duration of stop phase
period_data: PERIOD_DATA0x18 - Duration of data phase
fifo_config_0: FIFO_CONFIG_00x80 - FIFO configuration register 0
fifo_config_1: FIFO_CONFIG_10x84 - FIFO configuration register 1
data_write: DATA_WRITE0x88 - FIFO write data register
data_read: DATA_READ0x8c - FIFO read data register
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more