Type Alias esp_idf_svc::hal::sys::i2c_slave_stretch_callback_t
source · pub type i2c_slave_stretch_callback_t = Option<unsafe extern "C" fn(_: *mut i2c_slave_dev_t, _: *const i2c_slave_stretch_event_data_t, _: *mut c_void) -> bool>;
Expand description
@brief Callback signature for I2C slave stretch.
@param[in] i2c_slave Handle for I2C slave.
@param[out] evt_cause I2C capture event cause, fed by driver
@param[in] user_ctx User data, set in i2c_slave_register_event_callbacks()
@return Whether a high priority task has been waken up by this function
Aliased Type§
enum i2c_slave_stretch_callback_t {
None,
Some(unsafe extern "C" fn(_: *mut i2c_slave_dev_t, _: *const i2c_slave_stretch_event_data_t, _: *mut c_void) -> bool),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut i2c_slave_dev_t, _: *const i2c_slave_stretch_event_data_t, _: *mut c_void) -> bool)
Some value of type T
.