pub type mcpwm_capture_event_cb_t = Option<unsafe extern "C" fn(cap_channel: mcpwm_cap_channel_handle_t, edata: *const mcpwm_capture_event_data_t, user_ctx: *mut c_void) -> bool>;
Expand description
@brief MCPWM capture event callback function
@param cap_channel MCPWM capture channel handle
@param edata MCPWM capture event data, fed by driver
@param user_ctx User data, set in mcpwm_capture_channel_register_event_callbacks()
@return Whether a high priority task has been waken up by this function
Aliased Type§
enum mcpwm_capture_event_cb_t {
None,
Some(unsafe extern "C" fn(_: *mut mcpwm_cap_channel_t, _: *const mcpwm_capture_event_data_t, _: *mut c_void) -> bool),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut mcpwm_cap_channel_t, _: *const mcpwm_capture_event_data_t, _: *mut c_void) -> bool)
Some value of type T
.