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,
}Expand description
Error returned when calculating the can timing fails
Variants§
BitrateTooLow
Bitrate is lower than 1000
NoSolution
No solution possible
InvalidPrescaler
Prescaler is not 1 < prescaler < 1024
BSNotInRange
BS1 or BS2 are not in the range 0 < BSx < BSx_MAX
NoMatch
Final bitrate doesn’t match the requested bitrate
CoreNumNew
core::num::NonZeroUxx::new error
Trait Implementations§
Source§impl Debug for TimingCalcError
impl Debug for TimingCalcError
Auto Trait Implementations§
impl Freeze for TimingCalcError
impl RefUnwindSafe for TimingCalcError
impl Send for TimingCalcError
impl Sync for TimingCalcError
impl Unpin for TimingCalcError
impl UnwindSafe for TimingCalcError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more