pub struct TimeOfDay {
pub milliseconds: u32,
pub days: u16,
}Expand description
A CANopen TIME_OF_DAY: milliseconds after midnight and days since the
CANopen epoch (1 January 1984).
Fields§
§milliseconds: u32Milliseconds after midnight. The wire field is 28 bits, so only the low
28 bits are transmitted (values up to MS_PER_DAY).
days: u16Days since 1 January 1984.
Implementations§
Trait Implementations§
impl Copy for TimeOfDay
impl Eq for TimeOfDay
impl StructuralPartialEq for TimeOfDay
Auto Trait Implementations§
impl Freeze for TimeOfDay
impl RefUnwindSafe for TimeOfDay
impl Send for TimeOfDay
impl Sync for TimeOfDay
impl Unpin for TimeOfDay
impl UnsafeUnpin for TimeOfDay
impl UnwindSafe for TimeOfDay
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