#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum BusError {
Stuff,
Form,
Acknowledge,
BitRecessive,
BitDominant,
Crc,
Software,
}
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum BusErrorMode {
ErrorActive,
ErrorPassive,
BusOff,
}
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum FrameCreateError {
NotEnoughData,
InvalidDataLength,
InvalidCanId,
}
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum TryReadError {
BusError(BusError),
Empty,
}
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum RefCountOp {
NotifyReceiverCreated,
NotifyReceiverDestroyed,
NotifySenderCreated,
NotifySenderDestroyed,
}
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum TimingCalcError {
BitrateTooLow {
bitrate: u32,
},
NoSolution {
bs1_bs2_sum: u8,
},
InvalidPrescaler {
prescaler: u32,
},
BSNotInRange {
bs1: u8,
bs2: u8,
},
NoMatch {
requested: u32,
final_calculated: u32,
},
CoreNumNew,
}