Function esp_idf_svc::sys::esp_lcd_panel_io_tx_param
source ยท pub unsafe extern "C" fn esp_lcd_panel_io_tx_param(
io: *mut esp_lcd_panel_io_t,
lcd_cmd: i32,
param: *const c_void,
param_size: usize,
) -> i32
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