#[repr(C)]pub struct mss_uart_instance {Show 20 fields
pub hw_reg: *mut MSS_UART_TypeDef,
pub baudrate: u32,
pub lineconfig: u8,
pub status: u8,
pub padding0: [u8; 2],
pub tx_buffer: *const u8,
pub tx_buff_size: u32,
pub tx_idx: u32,
pub linests_handler: mss_uart_irq_handler_t,
pub rx_handler: mss_uart_irq_handler_t,
pub tx_handler: mss_uart_irq_handler_t,
pub modemsts_handler: mss_uart_irq_handler_t,
pub rto_handler: mss_uart_irq_handler_t,
pub nack_handler: mss_uart_irq_handler_t,
pub pid_pei_handler: mss_uart_irq_handler_t,
pub break_handler: mss_uart_irq_handler_t,
pub sync_handler: mss_uart_irq_handler_t,
pub local_irq_enabled: u8,
pub padding1: [u8; 7],
pub user_data: *mut c_void,
}
Expand description
/ /** mss_uart_instance. There is one instance of this structure for each instance of the microprocessor subsystem’s UARTs. Instances of this structure are used to identify a specific UART. A pointer to an initialized instance of the mss_uart_instance_t structure is passed as the first parameter to MSS UART driver functions to identify which UART should perform the requested operation.
Fields§
§hw_reg: *mut MSS_UART_TypeDef
< Pointer to UART registers.
baudrate: u32
< Operating baud rate.
lineconfig: u8
< Line configuration parameters.
status: u8
< Sticky line status.
padding0: [u8; 2]
< Padding bytes for data alignment.
tx_buffer: *const u8
< Pointer to transmit buffer.
tx_buff_size: u32
< Transmit buffer size.
tx_idx: u32
< Index within transmit buffer of next byte to transmit.
linests_handler: mss_uart_irq_handler_t
< Pointer to user registered line status handler.
rx_handler: mss_uart_irq_handler_t
< Pointer to user registered receiver handler.
tx_handler: mss_uart_irq_handler_t
< Pointer to user registered transmit handler.
modemsts_handler: mss_uart_irq_handler_t
< Pointer to user registered modem status handler.
rto_handler: mss_uart_irq_handler_t
< Pointer to user registered receiver timeout handler.
nack_handler: mss_uart_irq_handler_t
< Pointer to user registered NACK handler.
pid_pei_handler: mss_uart_irq_handler_t
< Pointer to user registered PID parity error handler.
break_handler: mss_uart_irq_handler_t
< Pointer to user registered LIN break handler.
sync_handler: mss_uart_irq_handler_t
< Pointer to user registered LIN sync detection handler.
local_irq_enabled: u8
< Check if local interrupt were enabled on this instance.
padding1: [u8; 7]
< Padding bytes for data alignment.
user_data: *mut c_void
< Pointer to user provided pointer for user specific use.
Trait Implementations§
Source§impl Clone for mss_uart_instance
impl Clone for mss_uart_instance
Source§fn clone(&self) -> mss_uart_instance
fn clone(&self) -> mss_uart_instance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more