RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn twi_addr(&self) -> &TWI_ADDR

0x00 - TWI Slave Address Register

Source

pub const fn twi_xaddr(&self) -> &TWI_XADDR

0x04 - TWI Extended Slave Address Register

Source

pub const fn twi_data(&self) -> &TWI_DATA

0x08 - TWI Data Byte Register

Source

pub const fn twi_cntr(&self) -> &TWI_CNTR

0x0c - TWI Control Register

Source

pub const fn twi_stat(&self) -> &TWI_STAT

0x10 - TWI Status Register

Source

pub const fn twi_ccr(&self) -> &TWI_CCR

0x14 - TWI Clock Control Register

Source

pub const fn twi_srst(&self) -> &TWI_SRST

0x18 - TWI Software Reset Register

Source

pub const fn twi_efr(&self) -> &TWI_EFR

0x1c - TWI Enhance Feature Register

Source

pub const fn twi_lcr(&self) -> &TWI_LCR

0x20 - TWI Line Control Register

Source

pub const fn twi_drv_ctrl(&self) -> &TWI_DRV_CTRL

0x200 - TWI_DRV Control Register

Source

pub const fn twi_drv_cfg(&self) -> &TWI_DRV_CFG

0x204 - TWI_DRV Transmission Configuration Register

Source

pub const fn twi_drv_slv(&self) -> &TWI_DRV_SLV

0x208 - TWI_DRV Slave ID Register

Source

pub const fn twi_drv_fmt(&self) -> &TWI_DRV_FMT

0x20c - TWI_DRV Packet Format Register

Source

pub const fn twi_drv_bus_ctrl(&self) -> &TWI_DRV_BUS_CTRL

0x210 - TWI_DRV Bus Control Register

Source

pub const fn twi_drv_int_ctrl(&self) -> &TWI_DRV_INT_CTRL

0x214 - TWI_DRV Interrupt Control Register

Source

pub const fn twi_drv_dma_cfg(&self) -> &TWI_DRV_DMA_CFG

0x218 - TWI_DRV DMA Configure Register

Source

pub const fn twi_drv_fifo_con(&self) -> &TWI_DRV_FIFO_CON

0x21c - TWI_DRV FIFO Content Register

Source

pub const fn twi_drv_send_fifo_acc(&self) -> &TWI_DRV_SEND_FIFO_ACC

0x300 - TWI_DRV Send Data FIFO Access Register

Source

pub const fn twi_drv_recv_fifo_acc(&self) -> &TWI_DRV_RECV_FIFO_ACC

0x304 - TWI_DRV Receive Data FIFO Access Register

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.