[−][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 |
DeviceConfig | Generic device configuration structure for SPI drivers |
LogConfig | |
Pindev | Newtype around |
Spidev | Newtype around |
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. |
InputPin | Single digital input pin |
OutputPin | Single digital push-pull output pin |
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 |