pub type gpio_callback_handler_t = Option<unsafe extern "C" fn(_: *const device, _: *mut gpio_callback, _: u32)>;
Expand description
@typedef gpio_callback_handler_t @brief Define the application callback handler function signature
@param port Device struct for the GPIO device. @param cb Original struct gpio_callback owning this handler @param pins Mask of pins that triggers the callback handler
Note: cb pointer can be used to retrieve private data through CONTAINER_OF() if original struct gpio_callback is stored in another private structure.
Aliased Type§
enum gpio_callback_handler_t {
None,
Some(unsafe extern "C" fn(_: *const device, _: *mut gpio_callback, _: u32)),
}