[][src]Module lpc82x_hal::prelude

Re-exports various traits that are required to use lpc82x-hal

The purpose of this module is to improve convenience, by not requiring the user to import traits separately. Just add the following to your code, and you should be good to go:

use lpc82x_hal::prelude::*;

The traits in this module have been renamed, to avoid collisions with other imports.

Re-exports

pub use crate::clock::Enabled as _lpc82x_hal_clock_Enabled;
pub use crate::clock::Frequency as _lpc82x_hal_clock_Frequency;
pub use crate::sleep::Sleep as _lpc82x_hal_sleep_Sleep;

Traits

_embedded_hal_Capture

Input capture

_embedded_hal_Pwm

Pulse Width Modulation

_embedded_hal_PwmPin

A single PWM channel / pin

_embedded_hal_Qei

Quadrature encoder interface

_embedded_hal_blocking_delay_DelayMs

Millisecond delay

_embedded_hal_blocking_delay_DelayUs

Microsecond delay

_embedded_hal_blocking_i2c_WriteRead

Blocking write + read

_embedded_hal_blocking_i2c_Write

Blocking write

_embedded_hal_blocking_i2c_Read

Blocking read

_embedded_hal_blocking_rng_Read

Blocking read

_embedded_hal_blocking_serial_Write

Write half of a serial interface (blocking variant)

_embedded_hal_blocking_spi_Transfer

Blocking transfer

_embedded_hal_blocking_spi_Write

Blocking write

_embedded_hal_digital_InputPin

Single digital input pin

_embedded_hal_digital_OutputPin

Single digital push-pull output pin

_embedded_hal_digital_ToggleableOutputPin

Output pin that can be toggled

_embedded_hal_serial_Read

Read half of a serial interface

_embedded_hal_serial_Write

Write half of a serial interface

_embedded_hal_spi_FullDuplex

Full duplex (master mode)

_embedded_hal_timer_CountDown

A count down timer