RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
    pub i2c_config: I2C_CONFIG,
    pub i2c_int_sts: I2C_INT_STS,
    pub i2c_sub_addr: I2C_SUB_ADDR,
    pub i2c_bus_busy: I2C_BUS_BUSY,
    pub i2c_prd_start: I2C_PRD_START,
    pub i2c_prd_stop: I2C_PRD_STOP,
    pub i2c_prd_data: I2C_PRD_DATA,
    pub i2c_fifo_config_0: I2C_FIFO_CONFIG_0,
    pub i2c_fifo_config_1: I2C_FIFO_CONFIG_1,
    pub i2c_fifo_wdata: I2C_FIFO_WDATA,
    pub i2c_fifo_rdata: I2C_FIFO_RDATA,
    /* private fields */
}
Expand description

Register block

Fields§

§i2c_config: I2C_CONFIG

0x00 - i2c_config.

§i2c_int_sts: I2C_INT_STS

0x04 - i2c_int_sts.

§i2c_sub_addr: I2C_SUB_ADDR

0x08 - i2c_sub_addr.

§i2c_bus_busy: I2C_BUS_BUSY

0x0c - i2c_bus_busy.

§i2c_prd_start: I2C_PRD_START

0x10 - i2c_prd_start.

§i2c_prd_stop: I2C_PRD_STOP

0x14 - i2c_prd_stop.

§i2c_prd_data: I2C_PRD_DATA

0x18 - i2c_prd_data.

§i2c_fifo_config_0: I2C_FIFO_CONFIG_0

0x80 - i2c_fifo_config_0.

§i2c_fifo_config_1: I2C_FIFO_CONFIG_1

0x84 - i2c_fifo_config_1.

§i2c_fifo_wdata: I2C_FIFO_WDATA

0x88 - i2c_fifo_wdata.

§i2c_fifo_rdata: I2C_FIFO_RDATA

0x8c - i2c_fifo_rdata.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.