Function esp_idf_sys::esp_lcd_panel_io_tx_param
source ยท pub unsafe extern "C" fn esp_lcd_panel_io_tx_param(
io: esp_lcd_panel_io_handle_t,
lcd_cmd: c_int,
param: *const c_void,
param_size: usize,
) -> esp_err_t
Expand description
@brief Transmit LCD command and 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[in] param Buffer that holds the command specific parameters, set to NULL if no parameter is needed for the command
@param[in] param_size Size of param
in memory, in bytes, set to zero if no parameter is needed for the command
@return
- ESP_ERR_INVALID_ARG if parameter is invalid
- ESP_OK on success