Struct CfgPrtI2cRef

Source
pub struct CfgPrtI2cRef<'a>(/* private fields */);
Expand description

Port Configuration for I2C Contains a reference to an underlying buffer, contains accessor methods to retrieve data.

Implementations§

Source§

impl<'a> CfgPrtI2cRef<'a>

Source

pub fn as_bytes(&self) -> &[u8]

Source

pub fn to_owned(&self) -> CfgPrtI2cOwned

Source

pub fn portid_raw(&self) -> u8

Source

pub fn portid(&self) -> I2cPortId

Source

pub fn reserved1(&self) -> u8

Source

pub fn tx_ready(&self) -> u16

TX ready PIN configuration

Source

pub fn mode(&self) -> u32

I2C Mode Flags

Source

pub fn reserved2(&self) -> u32

Source

pub fn in_proto_mask_raw(&self) -> u16

Source

pub fn in_proto_mask(&self) -> InProtoMask

Source

pub fn out_proto_mask_raw(&self) -> u16

Source

pub fn out_proto_mask(&self) -> OutProtoMask

Source

pub fn flags(&self) -> u16

Source

pub fn reserved3(&self) -> u16

Trait Implementations§

Source§

impl Debug for CfgPrtI2cRef<'_>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&CfgPrtI2cRef<'a>> for CfgPrtI2cOwned

Source§

fn from(packet: &CfgPrtI2cRef<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CfgPrtI2cRef<'a>> for CfgPrtI2cOwned

Source§

fn from(packet: CfgPrtI2cRef<'a>) -> Self

Converts to this type from the input type.
Source§

impl Serialize for CfgPrtI2cRef<'_>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for CfgPrtI2cRef<'a>

§

impl<'a> RefUnwindSafe for CfgPrtI2cRef<'a>

§

impl<'a> Send for CfgPrtI2cRef<'a>

§

impl<'a> Sync for CfgPrtI2cRef<'a>

§

impl<'a> Unpin for CfgPrtI2cRef<'a>

§

impl<'a> UnwindSafe for CfgPrtI2cRef<'a>

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.