[][src]Module embedded_spi::utils

Re-exports

pub use serde::Deserialize;
pub use structopt::StructOpt;
pub use linux_embedded_hal::spidev;

Structs

Delay

Empty struct that provides delay functionality on top of thread::sleep

DeviceConfig

Generic device configuration structure for SPI drivers

LogConfig
Pindev

Newtype around sysfs_gpio::Pin that implements the embedded-hal traits

Spidev

Newtype around spidev::Spidev that implements the embedded-hal traits

TermLogger

The TermLogger struct. Provides a stderr/out based Logger implementation

Enums

Direction
LevelFilter

An enum representing the available verbosity level filters of the logger.

Traits

Deserialize

A data structure that can be deserialized from any data format supported by Serde.

DeserializeOwned

A data structure that can be deserialized without borrowing any data from the deserializer.

StructOpt

A struct that is converted from command line arguments.

Functions

delay
init_logging

Initialise logging

load_config

Load a configuration file

load_pin

Load a Pin using the provided configuration

load_spi

Load an SPI device using the provided configuration