xwrust::xwds::i2cm

Struct MsgFlag

source
pub struct MsgFlag(/* private fields */);
Expand description

外部中断标志

Implementations§

source§

impl MsgFlag

source

pub const ADDR7BIT: MsgFlag = _

7位地址

source

pub const ADDR10BIT: MsgFlag = _

10位地址

source

pub const ADDRMSG: MsgFlag = _

地址掩码

source

pub const WR: MsgFlag = _

传输方向:写

source

pub const RD: MsgFlag = _

传输方向:读

source

pub const DIRMSG: MsgFlag = _

传输方向掩码

source

pub const START: MsgFlag = _

产生起始条件

source

pub const STOP: MsgFlag = _

产生停止条件

Trait Implementations§

source§

impl BitAnd for MsgFlag

source§

type Output = MsgFlag

The resulting type after applying the & operator.
source§

fn bitand(self, other: Self) -> Self

Performs the & operation. Read more
source§

impl BitAndAssign for MsgFlag

source§

fn bitand_assign(&mut self, other: Self)

Performs the &= operation. Read more
source§

impl BitOr for MsgFlag

source§

type Output = MsgFlag

The resulting type after applying the | operator.
source§

fn bitor(self, other: Self) -> Self

Performs the | operation. Read more
source§

impl BitOrAssign for MsgFlag

source§

fn bitor_assign(&mut self, other: Self)

Performs the |= operation. Read more
source§

impl BitXor for MsgFlag

source§

type Output = MsgFlag

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: Self) -> Self

Performs the ^ operation. Read more
source§

impl BitXorAssign for MsgFlag

source§

fn bitxor_assign(&mut self, other: Self)

Performs the ^= operation. Read more
source§

impl From<u16> for MsgFlag

source§

fn from(flag: u16) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for MsgFlag

§

impl RefUnwindSafe for MsgFlag

§

impl Send for MsgFlag

§

impl Sync for MsgFlag

§

impl Unpin for MsgFlag

§

impl UnwindSafe for MsgFlag

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

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

Performs the conversion.
§

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

§

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

The type returned in the event of a conversion error.
§

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

Performs the conversion.