Struct Peripherals

Source
pub struct Peripherals {
Show 23 fields pub SPECIAL_FUNCTION: SPECIAL_FUNCTION, pub PORT_3_4: PORT_3_4, pub PORT_5_6: PORT_5_6, pub PORT_1_2: PORT_1_2, pub SYSTEM_CLOCK: SYSTEM_CLOCK, pub SUPPLY_VOLTAGE_SUPERVISOR: SUPPLY_VOLTAGE_SUPERVISOR, pub COMPARATOR_A: COMPARATOR_A, pub USCI_A0_UART_MODE: USCI_A0_UART_MODE, pub USCI_A0_SPI_MODE: USCI_A0_SPI_MODE, pub USCI_B0_I2C_MODE: USCI_B0_I2C_MODE, pub USCI_B0_SPI_MODE: USCI_B0_SPI_MODE, pub ADC12: ADC12, pub USCI_A1_UART_MODE: USCI_A1_UART_MODE, pub USCI_A1_SPI_MODE: USCI_A1_SPI_MODE, pub USCI_B1_I2C_MODE: USCI_B1_I2C_MODE, pub USCI_B1_SPI_MODE: USCI_B1_SPI_MODE, pub TLV_CALIBRATION_DATA: TLV_CALIBRATION_DATA, pub CALIBRATION_DATA: CALIBRATION_DATA, pub TIMER_B7: TIMER_B7, pub WATCHDOG_TIMER: WATCHDOG_TIMER, pub FLASH: FLASH, pub TIMER_A3: TIMER_A3, pub MULTIPLIER: MULTIPLIER,
}
Expand description

All the peripherals.

Fields§

§SPECIAL_FUNCTION: SPECIAL_FUNCTION

SPECIAL_FUNCTION

§PORT_3_4: PORT_3_4

PORT_3_4

§PORT_5_6: PORT_5_6

PORT_5_6

§PORT_1_2: PORT_1_2

PORT_1_2

§SYSTEM_CLOCK: SYSTEM_CLOCK

SYSTEM_CLOCK

§SUPPLY_VOLTAGE_SUPERVISOR: SUPPLY_VOLTAGE_SUPERVISOR

SUPPLY_VOLTAGE_SUPERVISOR

§COMPARATOR_A: COMPARATOR_A

COMPARATOR_A

§USCI_A0_UART_MODE: USCI_A0_UART_MODE

USCI_A0_UART_MODE

§USCI_A0_SPI_MODE: USCI_A0_SPI_MODE

USCI_A0_SPI_MODE

§USCI_B0_I2C_MODE: USCI_B0_I2C_MODE

USCI_B0_I2C_MODE

§USCI_B0_SPI_MODE: USCI_B0_SPI_MODE

USCI_B0_SPI_MODE

§ADC12: ADC12

ADC12

§USCI_A1_UART_MODE: USCI_A1_UART_MODE

USCI_A1_UART_MODE

§USCI_A1_SPI_MODE: USCI_A1_SPI_MODE

USCI_A1_SPI_MODE

§USCI_B1_I2C_MODE: USCI_B1_I2C_MODE

USCI_B1_I2C_MODE

§USCI_B1_SPI_MODE: USCI_B1_SPI_MODE

USCI_B1_SPI_MODE

§TLV_CALIBRATION_DATA: TLV_CALIBRATION_DATA

TLV_CALIBRATION_DATA

§CALIBRATION_DATA: CALIBRATION_DATA

CALIBRATION_DATA

§TIMER_B7: TIMER_B7

TIMER_B7

§WATCHDOG_TIMER: WATCHDOG_TIMER

WATCHDOG_TIMER

§FLASH: FLASH

FLASH

§TIMER_A3: TIMER_A3

TIMER_A3

§MULTIPLIER: MULTIPLIER

MULTIPLIER

Implementations§

Source§

impl Peripherals

Source

pub unsafe fn steal() -> Self

Unchecked version of Peripherals::take.

§Safety

Each of the returned peripherals must be used at most once.

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