pub struct Peripherals {Show 31 fields
pub ADC0: Peri<'static, ADC0>,
pub CRC: Peri<'static, CRC>,
pub DEBUGSS: Peri<'static, DEBUGSS>,
pub DMA_CH0: Peri<'static, DMA_CH0>,
pub EVENT: Peri<'static, EVENT>,
pub FLASHCTL: Peri<'static, FLASHCTL>,
pub I2C0: Peri<'static, I2C0>,
pub PA0: Peri<'static, PA0>,
pub PA11: Peri<'static, PA11>,
pub PA16: Peri<'static, PA16>,
pub PA17: Peri<'static, PA17>,
pub PA18: Peri<'static, PA18>,
pub PA2: Peri<'static, PA2>,
pub PA22: Peri<'static, PA22>,
pub PA23: Peri<'static, PA23>,
pub PA24: Peri<'static, PA24>,
pub PA25: Peri<'static, PA25>,
pub PA26: Peri<'static, PA26>,
pub PA27: Peri<'static, PA27>,
pub PA28: Peri<'static, PA28>,
pub PA4: Peri<'static, PA4>,
pub PA6: Peri<'static, PA6>,
pub SPI0: Peri<'static, SPI0>,
pub SYSCTL: Peri<'static, SYSCTL>,
pub TIMA0: Peri<'static, TIMA0>,
pub TIMG14: Peri<'static, TIMG14>,
pub TIMG8: Peri<'static, TIMG8>,
pub UART0: Peri<'static, UART0>,
pub VREF: Peri<'static, VREF>,
pub WUC: Peri<'static, WUC>,
pub WWDT0: Peri<'static, WWDT0>,
}Expand description
Struct containing all the peripheral singletons.
To obtain the peripherals, you must initialize the HAL, by calling crate::init.
Fields§
§ADC0: Peri<'static, ADC0>ADC0 peripheral
CRC: Peri<'static, CRC>CRC peripheral
DEBUGSS: Peri<'static, DEBUGSS>DEBUGSS peripheral
DMA_CH0: Peri<'static, DMA_CH0>DMA_CH0 peripheral
EVENT: Peri<'static, EVENT>EVENT peripheral
FLASHCTL: Peri<'static, FLASHCTL>FLASHCTL peripheral
I2C0: Peri<'static, I2C0>I2C0 peripheral
PA0: Peri<'static, PA0>PA0 peripheral
PA11: Peri<'static, PA11>PA11 peripheral
PA16: Peri<'static, PA16>PA16 peripheral
PA17: Peri<'static, PA17>PA17 peripheral
PA18: Peri<'static, PA18>PA18 peripheral
PA2: Peri<'static, PA2>PA2 peripheral
PA22: Peri<'static, PA22>PA22 peripheral
PA23: Peri<'static, PA23>PA23 peripheral
PA24: Peri<'static, PA24>PA24 peripheral
PA25: Peri<'static, PA25>PA25 peripheral
PA26: Peri<'static, PA26>PA26 peripheral
PA27: Peri<'static, PA27>PA27 peripheral
PA28: Peri<'static, PA28>PA28 peripheral
PA4: Peri<'static, PA4>PA4 peripheral
PA6: Peri<'static, PA6>PA6 peripheral
SPI0: Peri<'static, SPI0>SPI0 peripheral
SYSCTL: Peri<'static, SYSCTL>SYSCTL peripheral
TIMA0: Peri<'static, TIMA0>TIMA0 peripheral
TIMG14: Peri<'static, TIMG14>TIMG14 peripheral
TIMG8: Peri<'static, TIMG8>TIMG8 peripheral
UART0: Peri<'static, UART0>UART0 peripheral
VREF: Peri<'static, VREF>VREF peripheral
WUC: Peri<'static, WUC>WUC peripheral
WWDT0: Peri<'static, WWDT0>WWDT0 peripheral
Implementations§
Auto Trait Implementations§
impl Freeze for Peripherals
impl RefUnwindSafe for Peripherals
impl Send for Peripherals
impl Sync for Peripherals
impl Unpin for Peripherals
impl !UnwindSafe for Peripherals
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.