Struct esp32c2_hal::peripherals::Peripherals
source · pub struct Peripherals {Show 27 fields
pub APB_CTRL: APB_CTRL,
pub APB_SARADC: APB_SARADC,
pub ASSIST_DEBUG: ASSIST_DEBUG,
pub DMA: DMA,
pub ECC: ECC,
pub EFUSE: EFUSE,
pub EXTMEM: EXTMEM,
pub GPIO: GPIO,
pub I2C0: I2C0,
pub INTERRUPT_CORE0: INTERRUPT_CORE0,
pub IO_MUX: IO_MUX,
pub LEDC: LEDC,
pub RNG: RNG,
pub RTC_CNTL: RTC_CNTL,
pub SENSITIVE: SENSITIVE,
pub SHA: SHA,
pub SPI0: SPI0,
pub SPI1: SPI1,
pub SPI2: SPI2,
pub SYSTEM: SYSTEM,
pub SYSTIMER: SYSTIMER,
pub TIMG0: TIMG0,
pub UART0: UART0,
pub UART1: UART1,
pub XTS_AES: XTS_AES,
pub BT: BT,
pub WIFI: WIFI,
}
Fields§
§APB_CTRL: APB_CTRL
§APB_SARADC: APB_SARADC
§ASSIST_DEBUG: ASSIST_DEBUG
§DMA: DMA
§ECC: ECC
§EFUSE: EFUSE
§EXTMEM: EXTMEM
§GPIO: GPIO
§I2C0: I2C0
§INTERRUPT_CORE0: INTERRUPT_CORE0
§IO_MUX: IO_MUX
§LEDC: LEDC
§RNG: RNG
§RTC_CNTL: RTC_CNTL
§SENSITIVE: SENSITIVE
§SHA: SHA
§SPI0: SPI0
§SPI1: SPI1
§SPI2: SPI2
§SYSTEM: SYSTEM
§SYSTIMER: SYSTIMER
§TIMG0: TIMG0
§UART0: UART0
§UART1: UART1
§XTS_AES: XTS_AES
§BT: BT
§WIFI: WIFI
Implementations§
source§impl Peripherals
impl Peripherals
sourcepub fn take() -> Peripherals
pub fn take() -> Peripherals
Returns all the peripherals once
source§impl Peripherals
impl Peripherals
sourcepub unsafe fn steal() -> Peripherals
pub unsafe fn steal() -> Peripherals
Unsafely create an instance of this peripheral out of thin air.
Safety
You must ensure that you’re only using one instance of this type at a time.
Auto Trait Implementations§
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