Function esp_idf_hal::sys::esp_eth_transmit
source ยท pub unsafe extern "C" fn esp_eth_transmit(
hdl: *mut c_void,
buf: *mut c_void,
length: usize,
) -> i32
Expand description
@brief General Transmit
@param[in] hdl: handle of Ethernet driver @param[in] buf: buffer of the packet to transfer @param[in] length: length of the buffer to transfer
@return - ESP_OK: transmit frame buffer successfully - ESP_ERR_INVALID_ARG: transmit frame buffer failed because of some invalid argument - ESP_ERR_INVALID_STATE: invalid driver state (e.i. driver is not started) - ESP_ERR_TIMEOUT: transmit frame buffer failed because HW was not get available in predefined period - ESP_FAIL: transmit frame buffer failed because some other error occurred