Skip to main content

Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 36 fields pub sys_ctl1: SysCtl1, pub io_config: IoConfig, pub gpio0: Gpio0, pub gpio1: Gpio1, pub gpio2: Gpio2, pub uart0: Uart0, pub uart1: Uart1, pub uart2: Uart2, pub i2c0: I2c0, pub i2c1: I2c1, pub pwm: Pwm, pub dma: Dma, pub sfc_cfg: SfcCfg, pub spi0: Spi0, pub spi1: Spi1, pub i2s: I2s, pub lsadc: Lsadc, pub tsensor: Tsensor, pub timer: Timer, pub wdt: Wdt, pub rtc: Rtc, pub efuse: Efuse, pub sys_ctl0: SysCtl0, pub cmu: Cmu, pub glb_ctl_m: GlbCtlM, pub spacc: Spacc, pub pke: Pke, pub km: Km, pub trng: Trng, pub tcxo: Tcxo, pub cldo_crg: CldoCrg, pub sdma: Sdma, pub ulp_gpio: UlpGpio, pub rf_wb_ctl: RfWbCtl, pub share_mem_ctl: ShareMemCtl, pub fama_remap: FamaRemap,
}
Expand description

All the peripherals.

Fields§

§sys_ctl1: SysCtl1

SYS_CTL1

§io_config: IoConfig

IO_CONFIG

§gpio0: Gpio0

GPIO0

§gpio1: Gpio1

GPIO1

§gpio2: Gpio2

GPIO2

§uart0: Uart0

UART0

§uart1: Uart1

UART1

§uart2: Uart2

UART2

§i2c0: I2c0

I2C0

§i2c1: I2c1

I2C1

§pwm: Pwm

PWM

§dma: Dma

DMA

§sfc_cfg: SfcCfg

SFC_CFG

§spi0: Spi0

SPI0

§spi1: Spi1

SPI1

§i2s: I2s

I2S

§lsadc: Lsadc

LSADC

§tsensor: Tsensor

TSENSOR

§timer: Timer

TIMER

§wdt: Wdt

WDT

§rtc: Rtc

RTC

§efuse: Efuse

EFUSE

§sys_ctl0: SysCtl0

SYS_CTL0

§cmu: Cmu

CMU

§glb_ctl_m: GlbCtlM

GLB_CTL_M

§spacc: Spacc

SPACC

§pke: Pke

PKE

§km: Km

KM

§trng: Trng

TRNG

§tcxo: Tcxo

TCXO

§cldo_crg: CldoCrg

CLDO_CRG

§sdma: Sdma

SDMA

§ulp_gpio: UlpGpio

ULP_GPIO

§rf_wb_ctl: RfWbCtl

RF_WB_CTL

§share_mem_ctl: ShareMemCtl

SHARE_MEM_CTL

§fama_remap: FamaRemap

FAMA_REMAP

Implementations§

Source§

impl Peripherals

Source

pub fn take() -> Option<Self>

Available on crate feature critical-section only.

Returns all the peripherals once.

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.