pub struct Identity {
pub device_id: u16,
pub version_major: u8,
pub version_minor: u8,
}Expand description
Identity of a CAN FD controller, read out of the hardware.
Fields§
§device_id: u16Device ID. Reads 0xCAFD on a working core.
version_major: u8IP core major version.
version_minor: u8IP core minor version.
Implementations§
Source§impl Identity
impl Identity
Sourcepub fn is_ctu_can_fd(&self) -> bool
pub fn is_ctu_can_fd(&self) -> bool
Returns whether the device ID is the one a CTU CAN FD core reports.
Trait Implementations§
impl Copy for Identity
Available on crate feature
unstable only.impl Eq for Identity
Available on crate feature
unstable only.impl StructuralPartialEq for Identity
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)