zephyr::raw

Function gpio_init_callback

source
pub unsafe extern "C" fn gpio_init_callback(
    callback: *mut gpio_callback,
    handler: Option<unsafe extern "C" fn(_: *const device, _: *mut gpio_callback, _: u32)>,
    pin_mask: u32,
)
Expand description

@brief Helper to initialize a struct gpio_callback properly @param callback A valid Application’s callback structure pointer. @param handler A valid handler function pointer. @param pin_mask A bit mask of relevant pins for the handler