mss_i2c_instance

Struct mss_i2c_instance 

Source
#[repr(C)]
pub struct mss_i2c_instance {
Show 31 fields pub ser_address: uint_fast8_t, pub target_addr: uint_fast8_t, pub transaction: u8, pub random_read_addr: uint_fast16_t, pub options: u8, pub irqn: PLIC_IRQn_Type, pub hw_reg: *mut I2C_TypeDef, pub master_tx_buffer: *const u8, pub master_tx_size: uint_fast16_t, pub master_tx_idx: uint_fast16_t, pub dir: uint_fast8_t, pub master_rx_buffer: *mut u8, pub master_rx_size: uint_fast16_t, pub master_rx_idx: uint_fast16_t, pub master_status: mss_i2c_status_t, pub master_timeout_ms: u32, pub slave_tx_buffer: *const u8, pub slave_tx_size: uint_fast16_t, pub slave_tx_idx: uint_fast16_t, pub slave_rx_buffer: *mut u8, pub slave_rx_size: uint_fast16_t, pub slave_rx_idx: uint_fast16_t, pub slave_status: mss_i2c_status_t, pub slave_mem_offset_length: uint_fast8_t, pub slave_write_handler: mss_i2c_slave_wr_handler_t, pub is_slave_enabled: u8, pub transfer_completion_handler: mss_i2c_transfer_completion_t, pub p_user_data: *mut c_void, pub bus_status: u8, pub is_transaction_pending: u8, pub pending_transaction: u8,
}
Expand description

§mss_i2c_instance_t

There is one instance of this structure for each of the MSS I2Cs. Instances of this structure are used to identify a specific MSS I2C. A pointer to an instance of the mss_i2c_instance_t structure is passed as the first parameter to MSS I2C driver functions to identify which MSS I2C should perform the requested operation.

Fields§

§ser_address: uint_fast8_t§target_addr: uint_fast8_t§transaction: u8§random_read_addr: uint_fast16_t§options: u8§irqn: PLIC_IRQn_Type§hw_reg: *mut I2C_TypeDef§master_tx_buffer: *const u8§master_tx_size: uint_fast16_t§master_tx_idx: uint_fast16_t§dir: uint_fast8_t§master_rx_buffer: *mut u8§master_rx_size: uint_fast16_t§master_rx_idx: uint_fast16_t§master_status: mss_i2c_status_t§master_timeout_ms: u32§slave_tx_buffer: *const u8§slave_tx_size: uint_fast16_t§slave_tx_idx: uint_fast16_t§slave_rx_buffer: *mut u8§slave_rx_size: uint_fast16_t§slave_rx_idx: uint_fast16_t§slave_status: mss_i2c_status_t§slave_mem_offset_length: uint_fast8_t§slave_write_handler: mss_i2c_slave_wr_handler_t§is_slave_enabled: u8§transfer_completion_handler: mss_i2c_transfer_completion_t§p_user_data: *mut c_void§bus_status: u8§is_transaction_pending: u8§pending_transaction: u8

Trait Implementations§

Source§

impl Clone for mss_i2c_instance

Source§

fn clone(&self) -> mss_i2c_instance

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for mss_i2c_instance

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for mss_i2c_instance

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.