Function esp_idf_hal::sys::esp_wifi_set_tx_done_cb

source ยท
pub unsafe extern "C" fn esp_wifi_set_tx_done_cb(
    cb: Option<unsafe extern "C" fn(_: u8, _: *mut u8, _: *mut u16, _: bool)>,
) -> i32
Expand description

@brief Register the txDone callback function of type wifi_tx_done_cb_t

@param cb The callback function

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
  • ESP_ERR_WIFI_NOT_STARTED: WiFi is not started by esp_wifi_start