Struct msp430f249::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 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.