pub type mss_uart_instance_t = mss_uart_instance;Expand description
/ /** This is the type definition for MSS UART instance. You need to create and maintain a record of this type. This holds all data regarding the MSS UART instance.
Aliased Type§
#[repr(C)]pub struct mss_uart_instance_t {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: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub rx_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub tx_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub modemsts_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub rto_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub nack_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub pid_pei_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub break_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub sync_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>,
pub local_irq_enabled: u8,
pub padding1: [u8; 7],
pub user_data: *mut c_void,
}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: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< Pointer to user registered line status handler.
rx_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< Pointer to user registered receiver handler.
tx_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< Pointer to user registered transmit handler.
modemsts_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< Pointer to user registered modem status handler.
rto_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< Pointer to user registered receiver timeout handler.
nack_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< Pointer to user registered NACK handler.
pid_pei_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< Pointer to user registered PID parity error handler.
break_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< Pointer to user registered LIN break handler.
sync_handler: Option<unsafe extern "C" fn(*mut mss_uart_instance)>< 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.