pub enum ConcentratorError<E> {
Show 15 variants
Spi(E),
Pin(ErrorKind),
NotAnswering {
version: u8,
},
UnknownModel {
byte: u8,
},
Firmware(LoadError),
Overrun {
waiting: u16,
},
FrontEndMode {
wanted: u8,
read: u8,
},
ImageCalibration,
UnsupportedBand {
hertz: u32,
},
ChannelOutOfReach {
offset_hz: i32,
},
ServiceRate {
spreading_factor: u8,
bandwidth_hz: u32,
},
FskChannel {
bitrate: u32,
sync_word_len: u8,
},
Transmit(TransmitError),
Stalled {
wanted: u8,
reading: u8,
},
WrongFirmware {
wanted: u8,
running: u8,
},
}Expand description
Why the concentrator could not be driven.
Variants§
Spi(E)
The SPI device failed.
Pin(ErrorKind)
The reset line could not be driven.
NotAnswering
The version register answered with something else, so nothing is on the bus, or the board is unpowered, or it is wired to the wrong device.
UnknownModel
The part number is one this crate does not drive.
Firmware(LoadError)
The firmware did not load.
Overrun
The receive buffer holds more than the caller left room for.
FrontEndMode
A front end did not settle into the mode it was put in.
ImageCalibration
A front end refused its own image calibration.
UnsupportedBand
A carrier outside every band a front end calibrates over.
ChannelOutOfReach
A channel too far from the carrier for the radio to hear, however the register that carries the offset holds it.
ServiceRate
A rate the fixed-rate receiver cannot be set to.
Fields
FskChannel
A channel the frequency shift keying receiver cannot be set to.
Fields
Transmit(TransmitError)
A packet the transmit chain cannot be told to send.
Stalled
A microcontroller never reached the state it was waited for.
WrongFirmware
A microcontroller is running firmware this crate does not drive.
Trait Implementations§
Source§impl<E: Debug> Debug for ConcentratorError<E>
impl<E: Debug> Debug for ConcentratorError<E>
Source§impl<E: Debug> Display for ConcentratorError<E>
impl<E: Debug> Display for ConcentratorError<E>
Source§impl<E: Debug> Error for ConcentratorError<E>
impl<E: Debug> Error for ConcentratorError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()