Type Alias esp_idf_sys::i2c_master_callback_t

source ·
pub type i2c_master_callback_t = Option<unsafe extern "C" fn(i2c_dev: i2c_master_dev_handle_t, evt_data: *const i2c_master_event_data_t, arg: *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§

§1.0.0

None

No value.

§1.0.0

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.