Name

mipi_dsi_generic_read — receive data using a generic read packet

Synopsis

ssize_t mipi_dsi_generic_read (struct mipi_dsi_device * dsi,
 const void * params,
 size_t num_params,
 void * data,
 size_t size);
 

Arguments

dsi

DSI peripheral device

params

buffer containing the request parameters

num_params

number of request parameters

data

buffer in which to return the received data

size

size of receive buffer

Description

This function will automatically choose the right data type depending on the number of parameters passed in.

Return

The number of bytes successfully read or a negative error code on failure.