#[repr(u16)]
pub enum Interrupt {
Show 31 variants RESERVED0, RESERVED1, RESERVED2, RESERVED3, RESERVED4, RESERVED5, RESERVED6, RESERVED7, RESERVED8, RESERVED9, RESERVED10, RESERVED11, RESERVED12, RESERVED13, RESERVED14, RESERVED15, USCIAB1TX, USCIAB1RX, PORT1, PORT2, RESERVED20, ADC12, USCIAB0TX, USCIAB0RX, TIMERA1, TIMERA0, WDT, COMPARATORA, TIMERB1, TIMERB0, NMI,
}
Expand description

Enumeration of all the interrupts. This enum is seldom used in application or library crates. It is present primarily for documenting the device’s implemented interrupts.

Variants§

§

RESERVED0

0 - 0xFFC0 Reserved Int. Vector 0

§

RESERVED1

1 - 0xFFC2 Reserved Int. Vector 1

§

RESERVED2

2 - 0xFFC4 Reserved Int. Vector 2

§

RESERVED3

3 - 0xFFC6 Reserved Int. Vector 3

§

RESERVED4

4 - 0xFFC8 Reserved Int. Vector 4

§

RESERVED5

5 - 0xFFCA Reserved Int. Vector 5

§

RESERVED6

6 - 0xFFCC Reserved Int. Vector 6

§

RESERVED7

7 - 0xFFCE Reserved Int. Vector 7

§

RESERVED8

8 - 0xFFD0 Reserved Int. Vector 8

§

RESERVED9

9 - 0xFFD2 Reserved Int. Vector 9

§

RESERVED10

10 - 0xFFD4 Reserved Int. Vector 10

§

RESERVED11

11 - 0xFFD6 Reserved Int. Vector 11

§

RESERVED12

12 - 0xFFD8 Reserved Int. Vector 12

§

RESERVED13

13 - 0xFFDA Reserved Int. Vector 13

§

RESERVED14

14 - 0xFFDC Reserved Int. Vector 14

§

RESERVED15

15 - 0xFFDE Reserved Int. Vector 15

§

USCIAB1TX

16 - 0xFFE0 USCI A1/B1 Transmit

§

USCIAB1RX

17 - 0xFFE2 USCI A1/B1 Receive

§

PORT1

18 - 0xFFE4 Port 1

§

PORT2

19 - 0xFFE6 Port 2

§

RESERVED20

20 - 0xFFE8 Reserved Int. Vector 20

§

ADC12

21 - 0xFFEA ADC

§

USCIAB0TX

22 - 0xFFEC USCI A0/B0 Transmit

§

USCIAB0RX

23 - 0xFFEE USCI A0/B0 Receive

§

TIMERA1

24 - 0xFFF0 Timer A CC1-2, TA

§

TIMERA0

25 - 0xFFF2 Timer A CC0

§

WDT

26 - 0xFFF4 Watchdog Timer

§

COMPARATORA

27 - 0xFFF6 Comparator A

§

TIMERB1

28 - 0xFFF8 Timer B CC1-6, TB

§

TIMERB0

29 - 0xFFFA Timer B CC0

§

NMI

30 - 0xFFFC Non-maskable

Trait Implementations§

source§

impl Clone for Interrupt

source§

fn clone(&self) -> Interrupt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Interrupt

source§

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

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

impl PartialEq<Interrupt> for Interrupt

source§

fn eq(&self, other: &Interrupt) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Interrupt

source§

impl Eq for Interrupt

source§

impl StructuralEq for Interrupt

source§

impl StructuralPartialEq for Interrupt

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.