Struct d1_pac::Peripherals

source ·
pub struct Peripherals {
Show 53 fields pub CCU: CCU, pub SYS_CFG: SYS_CFG, pub RISCV_CFG: RISCV_CFG, pub CLINT: CLINT, pub TIMER: TIMER, pub HS_TIMER: HS_TIMER, pub PLIC: PLIC, pub DMAC: DMAC, pub THS: THS, pub IOMMU: IOMMU, pub DSP_MSGBOX: DSP_MSGBOX, pub RV_MSGBOX: RV_MSGBOX, pub SPINLOCK: SPINLOCK, pub RTC: RTC, pub TCON_LCD0: TCON_LCD0, pub TCON_TV0: TCON_TV0, pub TVE_TOP: TVE_TOP, pub TVE: TVE, pub CSIC: CSIC, pub TVD_TOP: TVD_TOP, pub TVD0: TVD0, pub SMHC0: SMHC0, pub SMHC1: SMHC1, pub SMHC2: SMHC2, pub I2S_PCM0: I2S_PCM0, pub I2S_PCM1: I2S_PCM1, pub I2S_PCM2: I2S_PCM2, pub DMIC: DMIC, pub OWA: OWA, pub AUDIO_CODEC: AUDIO_CODEC, pub TWI0: TWI0, pub TWI1: TWI1, pub TWI2: TWI2, pub TWI3: TWI3, pub UART0: UART0, pub UART1: UART1, pub UART2: UART2, pub UART3: UART3, pub UART4: UART4, pub UART5: UART5, pub SPI0: SPI0, pub SPI_DBI: SPI_DBI, pub USB1: USB1, pub GPIO: GPIO, pub GPADC: GPADC, pub TPADC: TPADC, pub LRADC: LRADC, pub PWM: PWM, pub LEDC: LEDC, pub EMAC: EMAC, pub CIR_RX: CIR_RX, pub CIR_TX: CIR_TX, pub CE_NS: CE_NS,
}
Expand description

All the peripherals.

Fields§

§CCU: CCU

CCU

§SYS_CFG: SYS_CFG

SYS_CFG

§RISCV_CFG: RISCV_CFG

RISCV_CFG

§CLINT: CLINT

CLINT

§TIMER: TIMER

TIMER

§HS_TIMER: HS_TIMER

HS_TIMER

§PLIC: PLIC

PLIC

§DMAC: DMAC

DMAC

§THS: THS

THS

§IOMMU: IOMMU

IOMMU

§DSP_MSGBOX: DSP_MSGBOX

DSP_MSGBOX

§RV_MSGBOX: RV_MSGBOX

RV_MSGBOX

§SPINLOCK: SPINLOCK

SPINLOCK

§RTC: RTC

RTC

§TCON_LCD0: TCON_LCD0

TCON_LCD0

§TCON_TV0: TCON_TV0

TCON_TV0

§TVE_TOP: TVE_TOP

TVE_TOP

§TVE: TVE

TVE

§CSIC: CSIC

CSIC

§TVD_TOP: TVD_TOP

TVD_TOP

§TVD0: TVD0

TVD0

§SMHC0: SMHC0

SMHC0

§SMHC1: SMHC1

SMHC1

§SMHC2: SMHC2

SMHC2

§I2S_PCM0: I2S_PCM0

I2S_PCM0

§I2S_PCM1: I2S_PCM1

I2S_PCM1

§I2S_PCM2: I2S_PCM2

I2S_PCM2

§DMIC: DMIC

DMIC

§OWA: OWA

OWA

§AUDIO_CODEC: AUDIO_CODEC

AUDIO_CODEC

§TWI0: TWI0

TWI0

§TWI1: TWI1

TWI1

§TWI2: TWI2

TWI2

§TWI3: TWI3

TWI3

§UART0: UART0

UART0

§UART1: UART1

UART1

§UART2: UART2

UART2

§UART3: UART3

UART3

§UART4: UART4

UART4

§UART5: UART5

UART5

§SPI0: SPI0

SPI0

§SPI_DBI: SPI_DBI

SPI_DBI

§USB1: USB1

USB1

§GPIO: GPIO

GPIO

§GPADC: GPADC

GPADC

§TPADC: TPADC

TPADC

§LRADC: LRADC

LRADC

§PWM: PWM

PWM

§LEDC: LEDC

LEDC

§EMAC: EMAC

EMAC

§CIR_RX: CIR_RX

CIR_RX

§CIR_TX: CIR_TX

CIR_TX

§CE_NS: CE_NS

CE_NS

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

§

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

§

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.