Function esp_idf_svc::sys::esp_wifi_internal_reg_netstack_buf_cb

source ยท
pub unsafe extern "C" fn esp_wifi_internal_reg_netstack_buf_cb(
    ref_: Option<unsafe extern "C" fn(_: *mut c_void)>,
    free: Option<unsafe extern "C" fn(_: *mut c_void)>,
) -> i32
Expand description

@brief register the net stack buffer reference increasing and free callback

@param ref : net stack buffer reference callback @param free: net stack buffer free callback

@return

  • ESP_OK : Successfully transmit the buffer to wifi driver
  • others : failed to register the callback