#[repr(C)]pub struct can_instance {
pub hw_reg: *mut CAN_DEVICE,
pub irqn: u8,
pub int_type: u8,
pub basic_can_rx_mb: u8,
pub basic_can_tx_mb: u8,
}Expand description
The structure mss_can_instance_t is used by the driver to manage the configuration and operation of each MSS CAN peripheral. The instance content should only be accessed by using the respective API functions.
Each API function has a pointer to this instance as first argument.
Fields§
§hw_reg: *mut CAN_DEVICE§irqn: u8§int_type: u8< 0 => local, 1 => PLIC
basic_can_rx_mb: u8§basic_can_tx_mb: u8Trait Implementations§
Source§impl Clone for can_instance
impl Clone for can_instance
Source§fn clone(&self) -> can_instance
fn clone(&self) -> can_instance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for can_instance
impl Debug for can_instance
impl Copy for can_instance
Auto Trait Implementations§
impl Freeze for can_instance
impl RefUnwindSafe for can_instance
impl !Send for can_instance
impl !Sync for can_instance
impl Unpin for can_instance
impl UnwindSafe for can_instance
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