Function esp_idf_svc::hal::sys::esp_lcd_panel_io_rx_param
source ยท pub unsafe extern "C" fn esp_lcd_panel_io_rx_param(
io: *mut esp_lcd_panel_io_t,
lcd_cmd: i32,
param: *mut c_void,
param_size: usize,
) -> i32
Expand description
@brief Transmit LCD command and receive corresponding parameters
@note Commands sent by this function are short, so they are sent using polling transactions.
The function does not return before the command transfer is completed.
If any queued transactions sent by esp_lcd_panel_io_tx_color()
are still pending when this function is called,
this function will wait until they are finished and the queue is empty before sending the command(s).
@param[in] io LCD panel IO handle, which is created by other factory API like esp_lcd_new_panel_io_spi()
@param[in] lcd_cmd The specific LCD command, set to -1 if no command needed
@param[out] param Buffer for the command data
@param[in] param_size Size of param
buffer
@return
- ESP_ERR_INVALID_ARG if parameter is invalid
- ESP_ERR_NOT_SUPPORTED if read is not supported by transport
- ESP_OK on success