PMSIS API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cpi.h File Reference

Data Structures

struct  pi_cpi_conf
 CPI device configuration structure. More...
 

Enumerations

enum  pi_cpi_format_e
 Image format identifier. More...
 

Functions

void pi_cpi_conf_init (struct pi_cpi_conf *conf)
 Initialize a CPI configuration with default values. More...
 
int pi_cpi_open (struct pi_device *device)
 Open a CPI device. More...
 
void pi_cpi_close (struct pi_device *device)
 Close an opened CPI device. More...
 
void pi_cpi_capture (struct pi_device *device, void *buffer, int32_t bufferlen)
 Capture a sequence of samples. More...
 
void pi_cpi_capture_async (struct pi_device *device, void *buffer, int32_t bufferlen, pi_task_t *task)
 Capture a sequence of samples asynchronously. More...
 
static void pi_cpi_control_start (struct pi_device *device)
 Start capturing samples. More...
 
static void pi_cpi_control_stop (struct pi_device *device)
 Stop capturing samples. More...
 
static void pi_cpi_set_format (struct pi_device *device, pi_cpi_format_e format)
 Set frame format. More...
 
static void pi_cpi_set_rowlen (struct pi_device *device, uint16_t rowlen)
 Set frame row length. More...
 
static void pi_cpi_set_frame_drop (struct pi_device *device, uint32_t nb_frame_dropped)
 Configure frame drop. More...
 
static void pi_cpi_set_filter (struct pi_device *device, uint32_t r_coeff, uint32_t g_coeff, uint32_t b_coeff, uint32_t shift)
 Configure frame filtering. (ONLY available in GAP8) More...
 
static void pi_cpi_set_rgb_sequence (struct pi_device *device, uint8_t rgb_seq)
 Configure RGB Sequence. More...
 
static void pi_cpi_set_slice (struct pi_device *device, uint32_t x, uint32_t y, uint32_t w, uint32_t h)
 Configure frame slicing. More...
 
static void pi_cpi_set_sync_polarity (struct pi_device *device, uint8_t vsync_pol_ena, uint8_t hsync_pol_ena)
 Configure vsync/hsync polarity. More...