Struct esp_idf_svc::hal::prelude::Peripherals
source · pub struct Peripherals {}
Fields§
§pins: Pins
§uart0: UART0
§uart1: UART1
§i2c0: I2C0
§i2s0: I2S0
§spi1: SPI1
§spi2: SPI2
§adc1: ADC1
§adc2: ADC2
§can: CAN
§ledc: LEDC
§rmt: RMT
§modem: Modem
§timer00: TIMER00
§timer10: TIMER10
§twdt: TWDT
Implementations§
source§impl Peripherals
impl Peripherals
pub fn take() -> Result<Peripherals, EspError>
sourcepub unsafe fn new() -> Peripherals
pub unsafe fn new() -> Peripherals
§Safety
Care should be taken not to instantiate the Peripherals structure, if it is already instantiated and used elsewhere