Struct bxcan::Interrupts [−][src]
pub struct Interrupts { /* fields omitted */ }
Expand description
A set of bxCAN interrupts.
Implementations
impl Interrupts
[src]
impl Interrupts
[src]pub const TRANSMIT_MAILBOX_EMPTY: Interrupts
[src]
pub const FIFO0_MESSAGE_PENDING: Interrupts
[src]
pub const FIFO0_FULL: Interrupts
[src]
pub const FIFO0_OVERRUN: Interrupts
[src]
pub const FIFO1_MESSAGE_PENDING: Interrupts
[src]
pub const FIFO1_FULL: Interrupts
[src]
pub const FIFO1_OVERRUN: Interrupts
[src]
pub const ERROR: Interrupts
[src]
pub const WAKEUP: Interrupts
[src]
pub const SLEEP: Interrupts
[src]
pub const fn empty() -> Interrupts
[src]
pub const fn empty() -> Interrupts
[src]Returns an empty set of flags
pub const fn all() -> Interrupts
[src]
pub const fn all() -> Interrupts
[src]Returns the set containing all flags.
pub fn from_bits(bits: u32) -> Option<Interrupts>
[src]
pub fn from_bits(bits: u32) -> Option<Interrupts>
[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> Interrupts
[src]
pub const fn from_bits_truncate(bits: u32) -> Interrupts
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> Interrupts
[src]
pub const unsafe fn from_bits_unchecked(bits: u32) -> Interrupts
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: Interrupts) -> bool
[src]
pub const fn intersects(&self, other: Interrupts) -> bool
[src]Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: Interrupts) -> bool
[src]
pub const fn contains(&self, other: Interrupts) -> bool
[src]Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: Interrupts)
[src]
pub fn insert(&mut self, other: Interrupts)
[src]Inserts the specified flags in-place.
pub fn remove(&mut self, other: Interrupts)
[src]
pub fn remove(&mut self, other: Interrupts)
[src]Removes the specified flags in-place.
pub fn toggle(&mut self, other: Interrupts)
[src]
pub fn toggle(&mut self, other: Interrupts)
[src]Toggles the specified flags in-place.
pub fn set(&mut self, other: Interrupts, value: bool)
[src]
pub fn set(&mut self, other: Interrupts, value: bool)
[src]Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for Interrupts
[src]
impl Binary for Interrupts
[src]impl BitAnd<Interrupts> for Interrupts
[src]
impl BitAnd<Interrupts> for Interrupts
[src]fn bitand(self, other: Interrupts) -> Interrupts
[src]
fn bitand(self, other: Interrupts) -> Interrupts
[src]Returns the intersection between the two sets of flags.
type Output = Interrupts
type Output = Interrupts
The resulting type after applying the &
operator.
impl BitAndAssign<Interrupts> for Interrupts
[src]
impl BitAndAssign<Interrupts> for Interrupts
[src]fn bitand_assign(&mut self, other: Interrupts)
[src]
fn bitand_assign(&mut self, other: Interrupts)
[src]Disables all flags disabled in the set.
impl BitOr<Interrupts> for Interrupts
[src]
impl BitOr<Interrupts> for Interrupts
[src]fn bitor(self, other: Interrupts) -> Interrupts
[src]
fn bitor(self, other: Interrupts) -> Interrupts
[src]Returns the union of the two sets of flags.
type Output = Interrupts
type Output = Interrupts
The resulting type after applying the |
operator.
impl BitOrAssign<Interrupt> for Interrupts
[src]
impl BitOrAssign<Interrupt> for Interrupts
[src]Adds an interrupt to the interrupt set.
fn bitor_assign(&mut self, rhs: Interrupt)
[src]
fn bitor_assign(&mut self, rhs: Interrupt)
[src]Performs the |=
operation. Read more
impl BitOrAssign<Interrupts> for Interrupts
[src]
impl BitOrAssign<Interrupts> for Interrupts
[src]fn bitor_assign(&mut self, other: Interrupts)
[src]
fn bitor_assign(&mut self, other: Interrupts)
[src]Adds the set of flags.
impl BitXor<Interrupts> for Interrupts
[src]
impl BitXor<Interrupts> for Interrupts
[src]fn bitxor(self, other: Interrupts) -> Interrupts
[src]
fn bitxor(self, other: Interrupts) -> Interrupts
[src]Returns the left flags, but with all the right flags toggled.
type Output = Interrupts
type Output = Interrupts
The resulting type after applying the ^
operator.
impl BitXorAssign<Interrupts> for Interrupts
[src]
impl BitXorAssign<Interrupts> for Interrupts
[src]fn bitxor_assign(&mut self, other: Interrupts)
[src]
fn bitxor_assign(&mut self, other: Interrupts)
[src]Toggles the set of flags.
impl Clone for Interrupts
[src]
impl Clone for Interrupts
[src]fn clone(&self) -> Interrupts
[src]
fn clone(&self) -> Interrupts
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Interrupts
[src]
impl Debug for Interrupts
[src]impl Extend<Interrupts> for Interrupts
[src]
impl Extend<Interrupts> for Interrupts
[src]fn extend<T: IntoIterator<Item = Interrupts>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = Interrupts>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<Interrupts> for Interrupts
[src]
impl FromIterator<Interrupts> for Interrupts
[src]fn from_iter<T: IntoIterator<Item = Interrupts>>(iterator: T) -> Interrupts
[src]
fn from_iter<T: IntoIterator<Item = Interrupts>>(iterator: T) -> Interrupts
[src]Creates a value from an iterator. Read more
impl Hash for Interrupts
[src]
impl Hash for Interrupts
[src]impl LowerHex for Interrupts
[src]
impl LowerHex for Interrupts
[src]impl Not for Interrupts
[src]
impl Not for Interrupts
[src]fn not(self) -> Interrupts
[src]
fn not(self) -> Interrupts
[src]Returns the complement of this set of flags.
type Output = Interrupts
type Output = Interrupts
The resulting type after applying the !
operator.
impl Octal for Interrupts
[src]
impl Octal for Interrupts
[src]impl Ord for Interrupts
[src]
impl Ord for Interrupts
[src]impl PartialEq<Interrupts> for Interrupts
[src]
impl PartialEq<Interrupts> for Interrupts
[src]fn eq(&self, other: &Interrupts) -> bool
[src]
fn eq(&self, other: &Interrupts) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Interrupts) -> bool
[src]
fn ne(&self, other: &Interrupts) -> bool
[src]This method tests for !=
.
impl PartialOrd<Interrupts> for Interrupts
[src]
impl PartialOrd<Interrupts> for Interrupts
[src]fn partial_cmp(&self, other: &Interrupts) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Interrupts) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Sub<Interrupts> for Interrupts
[src]
impl Sub<Interrupts> for Interrupts
[src]fn sub(self, other: Interrupts) -> Interrupts
[src]
fn sub(self, other: Interrupts) -> Interrupts
[src]Returns the set difference of the two sets of flags.
type Output = Interrupts
type Output = Interrupts
The resulting type after applying the -
operator.
impl SubAssign<Interrupts> for Interrupts
[src]
impl SubAssign<Interrupts> for Interrupts
[src]fn sub_assign(&mut self, other: Interrupts)
[src]
fn sub_assign(&mut self, other: Interrupts)
[src]Disables all flags enabled in the set.
impl UpperHex for Interrupts
[src]
impl UpperHex for Interrupts
[src]