pub struct Peripherals {Show 18 fields
    pub pins: Pins,
    pub uart0: UART0,
    pub uart1: UART1,
    pub i2c0: I2C0,
    pub i2s0: I2S0,
    pub spi1: SPI1,
    pub spi2: SPI2,
    pub adc1: ADC1,
    pub adc2: ADC2,
    pub can: CAN,
    pub ledc: LEDC,
    pub rmt: RMT,
    pub modem: Modem,
    pub temp_sensor: TempSensor,
    pub timer00: TIMER00,
    pub timer10: TIMER10,
    pub twdt: TWDT,
    pub usb_serial: USB_SERIAL,
}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§temp_sensor: TempSensor§timer00: TIMER00§timer10: TIMER10§twdt: TWDT§usb_serial: USB_SERIALImplementations§
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