Bouffalo SDK  1.0
Bouffalolab Software Development Kit
bflb_csi.h File Reference
#include "bflb_core.h"
Include dependency graph for bflb_csi.h:

Go to the source code of this file.

Data Structures

struct  bflb_csi_config_s
 CSI configuration structure. More...
 

Macros

#define CSI_LANE_NUMBER_1   0
 
#define CSI_LANE_NUMBER_2   1
 
#define CSI_INTSTS_GENERIC_PACKET   (1 << 0)
 
#define CSI_INTSTS_LANE_MERGE_ERROR   (1 << 1)
 
#define CSI_INTSTS_ECC_ERROR   (1 << 2)
 
#define CSI_INTSTS_CRC_ERROR   (1 << 3)
 
#define CSI_INTSTS_PHY_HS_SOT_ERROR   (1 << 4)
 
#define CSI_INTSTS_PHY_HS_SOT_SYNC_ERROR   (1 << 5)
 
#define CSI_INTMASK_GENERIC_PACKET   (1 << 0)
 
#define CSI_INTMASK_LANE_MERGE_ERROR   (1 << 1)
 
#define CSI_INTMASK_ECC_ERROR   (1 << 2)
 
#define CSI_INTMASK_CRC_ERROR   (1 << 3)
 
#define CSI_INTMASK_PHY_HS_SOT_ERROR   (1 << 4)
 
#define CSI_INTMASK_PHY_HS_SOT_SYNC_ERROR   (1 << 5)
 
#define CSI_INTCLR_GENERIC_PACKET   (1 << 0)
 
#define CSI_INTCLR_LANE_MERGE_ERROR   (1 << 1)
 
#define CSI_INTCLR_ECC_ERROR   (1 << 2)
 
#define CSI_INTCLR_CRC_ERROR   (1 << 3)
 
#define CSI_INTCLR_PHY_HS_SOT_ERROR   (1 << 4)
 
#define CSI_INTCLR_PHY_HS_SOT_SYNC_ERROR   (1 << 5)
 

Functions

void bflb_csi_init (struct bflb_device_s *dev, const struct bflb_csi_config_s *config)
 Initialize csi. More...
 
void bflb_csi_start (struct bflb_device_s *dev)
 Enable csi. More...
 
void bflb_csi_stop (struct bflb_device_s *dev)
 Disable csi. More...
 
void bflb_csi_set_line_threshold (struct bflb_device_s *dev, uint16_t resolution_x, uint32_t pixel_clock, uint32_t dsp_clock)
 Set threshold of line buffer, data will be sent to following module when threshold reached. More...
 
void bflb_csi_int_mask (struct bflb_device_s *dev, uint32_t int_type, bool mask)
 Mask or unmask csi interrupt. More...
 
void bflb_csi_int_clear (struct bflb_device_s *dev, uint32_t int_type)
 Clear csi interrupt. More...
 
uint32_t bflb_csi_get_intstatus (struct bflb_device_s *dev)
 Get csi interrupt status. More...
 
int bflb_csi_feature_control (struct bflb_device_s *dev, int cmd, size_t arg)
 Control csi feature. More...