Type Alias esp_idf_svc::hal::sys::i2c_master_callback_t
source · pub type i2c_master_callback_t = Option<unsafe extern "C" fn(_: *mut i2c_master_dev_t, _: *const i2c_master_event_data_t, _: *mut c_void) -> bool>;
Expand description
@brief An callback for I2C transaction.
@param[in] i2c_dev Handle for I2C device.
@param[out] evt_data I2C capture event data, fed by driver
@param[in] arg User data, set in i2c_master_register_event_callbacks()
@return Whether a high priority task has been waken up by this function
Aliased Type§
enum i2c_master_callback_t {
None,
Some(unsafe extern "C" fn(_: *mut i2c_master_dev_t, _: *const i2c_master_event_data_t, _: *mut c_void) -> bool),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut i2c_master_dev_t, _: *const i2c_master_event_data_t, _: *mut c_void) -> bool)
Some value of type T
.