#[repr(C)]
pub struct RegisterBlock {
Show 15 fields pub scl_low_period: SCL_LOW_PERIOD, pub ctrl: CTRL, pub debug_status: DEBUG_STATUS, pub timeout: TIMEOUT, pub slave_addr: SLAVE_ADDR, pub data: DATA, pub int_raw: INT_RAW, pub int_clr: INT_CLR, pub int_en: INT_EN, pub int_st: INT_ST, pub sda_duty: SDA_DUTY, pub scl_high_period: SCL_HIGH_PERIOD, pub scl_start_period: SCL_START_PERIOD, pub scl_stop_period: SCL_STOP_PERIOD, pub cmd: CMD, /* private fields */
}
Expand description

Register block

Fields§

§scl_low_period: SCL_LOW_PERIOD

0x00 -

§ctrl: CTRL

0x04 -

§debug_status: DEBUG_STATUS

0x08 -

§timeout: TIMEOUT

0x0c -

§slave_addr: SLAVE_ADDR

0x10 -

§data: DATA

0x1c -

§int_raw: INT_RAW

0x20 -

§int_clr: INT_CLR

0x24 -

§int_en: INT_EN

0x28 -

§int_st: INT_ST

0x2c -

§sda_duty: SDA_DUTY

0x30 -

§scl_high_period: SCL_HIGH_PERIOD

0x38 -

§scl_start_period: SCL_START_PERIOD

0x40 -

§scl_stop_period: SCL_STOP_PERIOD

0x44 -

§cmd: CMD

0x48 -

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.