Skip to main content

MsgFlag

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 UnsafeUnpin 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.