HALExt

Trait HALExt 

Source
pub trait HALExt {
    type T;

    // Required method
    fn split(self) -> Self::T;
}
Expand description

This trait implements split method onto PAC peripheral structs.

Required Associated Types§

Source

type T

The HAL interface struct

Required Methods§

Source

fn split(self) -> Self::T

Consume the PAC struct, split it into reasonable parts, and return them in an interface struct.

Each HAL module implements user friendly interface methods onto the the returned struct(s). See the documentation for the HAL module of interest for more details about the interface.

Implementations on Foreign Types§

Source§

impl HALExt for ADC

Source§

impl HALExt for PMC

Source§

impl HALExt for SIM

Source§

fn split(self) -> Sim

Split the SIM peripheral into useful chunks

Source§

type T = Sim

Source§

impl HALExt for SPI0

Source§

type T = Spi<SPI0, Disabled, DefaultPins>

Source§

fn split(self) -> Self::T

Source§

impl HALExt for SPI1

Source§

impl HALExt for WDOG

Implementors§