Type Alias esp_idf_svc::sys::mcpwm_compare_event_cb_t
source · pub type mcpwm_compare_event_cb_t = Option<unsafe extern "C" fn(_: *mut mcpwm_cmpr_t, _: *const mcpwm_compare_event_data_t, _: *mut c_void) -> bool>;
Expand description
@brief MCPWM comparator event callback function
@param comparator MCPWM comparator handle
@param edata MCPWM comparator event data, fed by driver
@param user_ctx User data, set in mcpwm_comparator_register_event_callbacks()
@return Whether a high priority task has been waken up by this function
Aliased Type§
enum mcpwm_compare_event_cb_t {
None,
Some(unsafe extern "C" fn(_: *mut mcpwm_cmpr_t, _: *const mcpwm_compare_event_data_t, _: *mut c_void) -> bool),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut mcpwm_cmpr_t, _: *const mcpwm_compare_event_data_t, _: *mut c_void) -> bool)
Some value of type T
.