Struct teensy4_bsp::Peripherals[][src]

pub struct Peripherals {
Show 17 fields pub adc: Unclocked, pub iomuxc: Pads, pub ccm: CCM, pub pit: UnclockedPIT, pub dcdc: DCDC, pub pwm1: Unclocked<UInt<UTerm, B1>>, pub pwm2: Unclocked<UInt<UInt<UTerm, B1>, B0>>, pub pwm3: Unclocked<UInt<UInt<UTerm, B1>, B1>>, pub pwm4: Unclocked<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, pub i2c: Unclocked, pub uart: Unclocked, pub spi: Unclocked, pub gpt1: Unclocked, pub gpt2: Unclocked, pub dma: Unclocked, pub srtc: Unclocked, pub trng: Unclocked,
}

Fields

adc: Unclockediomuxc: Padsccm: CCMpit: UnclockedPITdcdc: DCDCpwm1: Unclocked<UInt<UTerm, B1>>pwm2: Unclocked<UInt<UInt<UTerm, B1>, B0>>pwm3: Unclocked<UInt<UInt<UTerm, B1>, B1>>pwm4: Unclocked<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>i2c: Unclockeduart: Unclockedspi: Unclockedgpt1: Unclockedgpt2: Unclockeddma: Unclockedsrtc: Unclockedtrng: Unclocked

Implementations

Steal all of the HAL’s peripherals

Safety

The peripherals may be mutably aliased elsewhere in the code. Consider using take() to safely acquire the HAL’s peripherals.

Take the HAL’s peripherals

If the peripherals were already taken, take() returns None. Consider calling take() near the start of your program.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.