uart_callback_t

Type Alias uart_callback_t 

Source
pub type uart_callback_t = Option<unsafe extern "C" fn(*const device, *mut uart_event, *mut c_void)>;
Expand description

@brief Define the application callback function signature for uart_callback_set() function.

@param dev UART device instance. @param evt Pointer to uart_event instance. @param user_data Pointer to data specified by user.

Aliased Type§

pub enum uart_callback_t {
    None,
    Some(unsafe extern "C" fn(*const device, *mut uart_event, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const device, *mut uart_event, *mut c_void))

Some value of type T.