Enum Interrupt

Source
#[repr(u16)]
pub enum Interrupt {
Show 22 variants RTC = 41, PORT2 = 42, TIMER2_A1 = 43, TIMER2_A0 = 44, USCI_B1 = 45, USCI_A1 = 46, PORT1 = 47, TIMER1_A1 = 48, TIMER1_A0 = 49, DMA = 50, USB_UBM = 51, TIMER0_A1 = 52, TIMER0_A0 = 53, ADC12 = 54, USCI_B0 = 55, USCI_A0 = 56, WDT = 57, TIMER0_B1 = 58, TIMER0_B0 = 59, COMP_B = 60, UNMI = 61, SYSNMI = 62,
}
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§

§

RTC = 41

41 - 0xFFD2 RTC

§

PORT2 = 42

42 - 0xFFD4 Port 2

§

TIMER2_A1 = 43

43 - 0xFFD6 Timer2_A5 CC1-4, TA

§

TIMER2_A0 = 44

44 - 0xFFD8 Timer2_A5 CC0

§

USCI_B1 = 45

45 - 0xFFDA USCI B1 Receive/Transmit

§

USCI_A1 = 46

46 - 0xFFDC USCI A1 Receive/Transmit

§

PORT1 = 47

47 - 0xFFDE Port 1

§

TIMER1_A1 = 48

48 - 0xFFE0 Timer1_A3 CC1-2, TA1

§

TIMER1_A0 = 49

49 - 0xFFE2 Timer1_A3 CC0

§

DMA = 50

50 - 0xFFE4 DMA

§

USB_UBM = 51

51 - 0xFFE6 USB Timer / cable event / USB reset

§

TIMER0_A1 = 52

52 - 0xFFE8 Timer0_A5 CC1-4, TA

§

TIMER0_A0 = 53

53 - 0xFFEA Timer0_A5 CC0

§

ADC12 = 54

54 - 0xFFEC ADC

§

USCI_B0 = 55

55 - 0xFFEE USCI B0 Receive/Transmit

§

USCI_A0 = 56

56 - 0xFFF0 USCI A0 Receive/Transmit

§

WDT = 57

57 - 0xFFF2 Watchdog Timer

§

TIMER0_B1 = 58

58 - 0xFFF4 Timer0_B7 CC1-6, TB

§

TIMER0_B0 = 59

59 - 0xFFF6 Timer0_B7 CC0

§

COMP_B = 60

60 - 0xFFF8 Comparator B

§

UNMI = 61

61 - 0xFFFA User Non-maskable

§

SYSNMI = 62

62 - 0xFFFC System 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 for Interrupt

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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 StructuralPartialEq for Interrupt

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.