pub struct Peripherals {Show 37 fields
pub adc: Adc,
pub anactrl: Anactrl,
pub casper: Casper,
pub ctimer: Ctimers,
pub dma: Dma,
pub flash: Flash,
pub flexcomm: Flexcomm,
pub gint: Gint,
pub gpio: Gpio,
pub hashcrypt: Hashcrypt,
pub inputmux: InputMux,
pub iocon: Iocon,
pub pint: Pint,
pub pfr: Pfr,
pub pmc: Pmc,
pub prince: Prince,
pub puf: Puf,
pub rng: Rng,
pub rtc: Rtc,
pub syscon: Syscon,
pub usbfs: Usbfs,
pub usbhs: Usbhs,
pub utick: Utick,
pub CRC_ENGINE: CRC_ENGINE,
pub FLASH_CMPA: FLASH_CMPA,
pub FLASH_CFPA0: FLASH_CFPA0,
pub SCT0: SCT0,
pub SAU: SAU,
pub AHB_SECURE_CTRL: AHB_SECURE_CTRL,
pub CPUID: CPUID,
pub DCB: DCB,
pub DWT: DWT,
pub MPU: MPU,
pub NVIC: NVIC,
pub SCB: SCB,
pub wwdt: WWDT,
pub SYST: SYST,
}Expand description
This is the entry point to the HAL API.
Before you can do anything else, you need to get an instance of this struct,
via hal::new or hal::steal.
Fields§
§adc: AdcAnalog-to-Digital Converter (ADC)
anactrl: AnactrlAnalog control
casper: CasperCryptographic Accelerator and Signal Processing Engine with RAM sharing
ctimer: CtimersStandard counter/timer (CTIMER)
dma: DmaDirect memory access
flash: FlashFlash
flexcomm: FlexcommFlexcomm Interface Serial Communication
gint: GintGroup GPIO Input Interrupt
gpio: GpioGeneral-purpose I/O (GPIO)
hashcrypt: HashcryptSHA and AES Engine
inputmux: InputMuxInput multiplexer
iocon: IoconI/O configuration
pint: PintPin Interrupt and Pattern Match
pfr: PfrProtect flash region controller
pmc: PmcPower configuration
prince: Prince§puf: Puf§rng: RngRandom number generator
rtc: RtcReal time clock
syscon: SysconSystem configuration
usbfs: UsbfsUSB full-speed device or, not implemented, host
usbhs: UsbhsUSB high-speed device or, not implemented, host
utick: UtickMicro-Tick Timer
CRC_ENGINE: CRC_ENGINECRC engine - not HAL-ified.
FLASH_CMPA: FLASH_CMPA§FLASH_CFPA0: FLASH_CFPA0§SCT0: SCT0Stateful counter/timer (SCTIMER) - not HAL-ified.
SAU: SAUSAU - not HAL-ified.
AHB_SECURE_CTRL: AHB_SECURE_CTRLAHB_SECURE_CTRL - not HAL-ified.
CPUID: CPUIDCPUID - core peripheral
DCB: DCBDebug Control Block (DCB) - core peripheral
DWT: DWTData Watchpoint and Trace unit (DWT) - core peripheral
MPU: MPUMemory Protection Unit (MPU) - core peripheral
NVIC: NVICNested Vector Interrupt Controller (NVIC) - core peripheral
SCB: SCBSystem Control Block (SCB) - core peripheral
wwdt: WWDTWatchdog
SYST: SYSTSysTick: System Timer - core peripheral