[][src]Struct lpc55s6x_hal::Peripherals

pub struct Peripherals {
    pub anactrl: Anactrl,
    pub casper: Casper,
    pub flash: Flash,
    pub flexcomm: Flexcomm,
    pub gpio: Gpio,
    pub iocon: Iocon,
    pub pmc: Pmc,
    pub syscon: Syscon,
    pub usbfs: Usbfs,
    pub utick: Utick,
    pub ADC0: ADC0,
    pub CRC_ENGINE: CRC_ENGINE,
    pub CTIMER0: CTIMER0,
    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

anactrl: Anactrl

Analog control

casper: Casper

Cryptographic Accelerator and Signal Processing Engine with RAM sharing

flash: Flash

Flash

flexcomm: Flexcomm

Flexcomm Interface Serial Communication

gpio: Gpio

General-purpose I/O (GPIO)

iocon: Iocon

I/O configuration

pmc: Pmc

Power configuration

syscon: Syscon

System configuration

usbfs: Usbfs

USB full-speed device or, not implemented, host

utick: Utick

Micro-Tick Timer

ADC0: ADC0

Analog-to-Digital Converter (ADC) - not HAL-ified.

CRC_ENGINE: CRC_ENGINE

CRC engine - not HAL-ified.

CTIMER0: CTIMER0

Standard counter/timer (CTIMER) - not HAL-ified.

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

Methods

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 Unpin for Peripherals

impl Send for Peripherals

impl !Sync for Peripherals

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self