Struct gd32f1x0_hal::pac::i2c0::ctl0::R[][src]

pub struct R(_);
Expand description

Register CTL0 reader

Implementations

impl R[src]

pub fn sreset(&self) -> SRESET_R[src]

Bit 15 - Software reset I2C

pub fn salt(&self) -> SALT_R[src]

Bit 13 - SMBus alert

pub fn pectrans(&self) -> PECTRANS_R[src]

Bit 12 - PEC Transfer

pub fn poap(&self) -> POAP_R[src]

Bit 11 - Position of ACK meaning

pub fn acken(&self) -> ACKEN_R[src]

Bit 10 - Whether or not to send an ACK

pub fn stop(&self) -> STOP_R[src]

Bit 9 - Generate a STOP condition on I2C bus

pub fn start(&self) -> START_R[src]

Bit 8 - Generate a START condition on I2C bus

pub fn ss(&self) -> SS_R[src]

Bit 7 - Whether to stretch SCL low when data is not ready in slave mode

pub fn gcen(&self) -> GCEN_R[src]

Bit 6 - Whether or not to response to a General Call (0x00)

pub fn pecen(&self) -> PECEN_R[src]

Bit 5 - PEC Calculation Switch

pub fn arpen(&self) -> ARPEN_R[src]

Bit 4 - ARP protocol in SMBus switch

pub fn smbsel(&self) -> SMBSEL_R[src]

Bit 3 - SMBusType Selection

pub fn smben(&self) -> SMBEN_R[src]

Bit 1 - SMBus/I2C mode switch

pub fn i2cen(&self) -> I2CEN_R[src]

Bit 0 - I2C peripheral enable

Methods from Deref<Target = R<CTL0_SPEC>>

pub fn bits(&self) -> <REG as RegisterSpec>::Ux[src]

Reads raw bits from register.

Trait Implementations

impl Deref for R[src]

type Target = R<CTL0_SPEC>

The resulting type after dereferencing.

pub fn deref(&self) -> &<R as Deref>::Target[src]

Dereferences the value.

impl From<R<CTL0_SPEC>> for R[src]

pub fn from(reader: R<CTL0_SPEC>) -> R[src]

Performs the conversion.

Auto Trait Implementations

impl Send for R

impl Sync for R

impl Unpin for R

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.