pub struct ConfigurationFile {
pub interface: Option<String>,
pub includes: Vec<String>,
pub provides: HashMap<String, String>,
pub requires: HashMap<String, String>,
pub reset_delay: Option<Duration>,
pub pins: Vec<PinConfiguration>,
pub strappings: Vec<StrappingConfiguration>,
pub spi: Vec<SpiConfiguration>,
pub i2c: Vec<I2cConfiguration>,
pub uarts: Vec<UartConfiguration>,
pub io_expanders: Vec<IoExpander>,
pub gpios: Vec<String>,
}Expand description
Representation of the complete and unresolved content of a single confguration file.
Fields§
§interface: Option<String>Optional specification of transport backend, for which this configuration applies (to be implemented).
includes: Vec<String>List of names of other configuration files to include recursively.
provides: HashMap<String, String>List of user-defined features “provided” by the testing setup using this file.
requires: HashMap<String, String>List of user-defined features which must be “provided” by the testing setup (through other configuration files), in order for it to make sense to use this file.
reset_delay: Option<Duration>Duration of time to assert reset and wait after de-asserting reset.
pins: Vec<PinConfiguration>List of GPIO pin configurations.
strappings: Vec<StrappingConfiguration>List of named sets of additional GPIO pin configurations (pullup/pulldown).
spi: Vec<SpiConfiguration>List of SPI port configurations.
i2c: Vec<I2cConfiguration>List of I2C port configurations.
uarts: Vec<UartConfiguration>List of UART port configurations.
io_expanders: Vec<IoExpander>List of IO expander chips.
gpios: Vec<String>List of GPIO pins.
Trait Implementations§
Source§impl Clone for ConfigurationFile
impl Clone for ConfigurationFile
Source§fn clone(&self) -> ConfigurationFile
fn clone(&self) -> ConfigurationFile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more