Type Alias R

Source
pub type R = R<SR2rs>;
Expand description

Register SR2 reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn msl(&self) -> MSL_R

Bit 0 - Master/slave

Source

pub fn busy(&self) -> BUSY_R

Bit 1 - Bus busy

Source

pub fn tra(&self) -> TRA_R

Bit 2 - Transmitter/receiver

Source

pub fn gencall(&self) -> GENCALL_R

Bit 4 - General call address (Slave mode)

Source

pub fn smbdefault(&self) -> SMBDEFAULT_R

Bit 5 - SMBus device default address (Slave mode)

Source

pub fn smbhost(&self) -> SMBHOST_R

Bit 6 - SMBus host header (Slave mode)

Source

pub fn dualf(&self) -> DUALF_R

Bit 7 - Dual flag (Slave mode)

Source

pub fn pec(&self) -> PEC_R

Bits 8:15 - acket error checking register

Trait Implementations§

Source§

impl Debug for R

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more