Type Alias esp_idf_svc::hal::sys::i2c_slave_received_callback_t
source · pub type i2c_slave_received_callback_t = Option<unsafe extern "C" fn(_: *mut i2c_slave_dev_t, _: *const i2c_slave_rx_done_event_data_t, _: *mut c_void) -> bool>;
Expand description
@brief Callback signature for I2C slave.
@param[in] i2c_slave Handle for I2C slave.
@param[out] evt_data I2C capture event data, fed by driver
@param[in] arg 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_received_callback_t {
None,
Some(unsafe extern "C" fn(_: *mut i2c_slave_dev_t, _: *const i2c_slave_rx_done_event_data_t, _: *mut c_void) -> bool),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut i2c_slave_dev_t, _: *const i2c_slave_rx_done_event_data_t, _: *mut c_void) -> bool)
Some value of type T
.