[][src]Struct lpc55_hal::Peripherals

pub struct Peripherals {
    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 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 CPUID: CPUID,
    pub DCB: DCB,
    pub DWT: DWT,
    pub MPU: MPU,
    pub NVIC: NVIC,
    pub SCB: SCB,
    pub SYST: SYST,
}

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: Adc

Analog-to-Digital Converter (ADC)

anactrl: Anactrl

Analog control

casper: Casper

Cryptographic Accelerator and Signal Processing Engine with RAM sharing

ctimer: Ctimers

Standard counter/timer (CTIMER)

dma: Dma

Direct memory access

flash: Flash

Flash

flexcomm: Flexcomm

Flexcomm Interface Serial Communication

gint: Gint

Group GPIO Input Interrupt

gpio: Gpio

General-purpose I/O (GPIO)

hashcrypt: Hashcrypt

SHA and AES Engine

inputmux: InputMux

Input multiplexer

iocon: Iocon

I/O configuration

pint: Pint

Pin Interrupt and Pattern Match

pfr: Pfr

Protect flash region controller

pmc: Pmc

Power configuration

rng: Rng

Random number generator

rtc: Rtc

Real time clock

syscon: Syscon

System configuration

usbfs: Usbfs

USB full-speed device or, not implemented, host

usbhs: Usbhs

USB high-speed device or, not implemented, host

utick: Utick

Micro-Tick Timer

CRC_ENGINE: CRC_ENGINE

CRC engine - not HAL-ified.

FLASH_CMPA: FLASH_CMPAFLASH_CFPA0: FLASH_CFPA0SCT0: SCT0

Stateful counter/timer (SCTIMER) - not HAL-ified.

CPUID: CPUID

CPUID - core peripheral

DCB: DCB

Debug Control Block (DCB) - core peripheral

DWT: DWT

Data Watchpoint and Trace unit (DWT) - core peripheral

MPU: MPU

Memory Protection Unit (MPU) - core peripheral

NVIC: NVIC

Nested Vector Interrupt Controller (NVIC) - core peripheral

SCB: SCB

System Control Block (SCB) - core peripheral

SYST: SYST

SysTick: System Timer - core peripheral

Implementations

impl Peripherals[src]

pub fn take() -> Option<Self>[src]

pub unsafe fn steal() -> Self[src]

Trait Implementations

impl From<(Peripherals, Peripherals)> for Peripherals[src]

Auto Trait Implementations

impl Send for Peripherals

impl !Sync for Peripherals

impl Unpin for Peripherals

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.