Type Alias esp_idf_sys::esp_gatts_cb_t
source · pub type esp_gatts_cb_t = Option<unsafe extern "C" fn(event: esp_gatts_cb_event_t, gatts_if: esp_gatt_if_t, param: *mut esp_ble_gatts_cb_param_t)>;
Expand description
@brief GATT Server callback function type @param event : Event type @param gatts_if : GATT server access interface, normally different gatts_if correspond to different profile @param param : Point to callback parameter, currently is union type
Aliased Type§
enum esp_gatts_cb_t {
None,
Some(unsafe extern "C" fn(_: u32, _: u8, _: *mut esp_ble_gatts_cb_param_t)),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: u32, _: u8, _: *mut esp_ble_gatts_cb_param_t))
Some value of type T
.