Bouffalo SDK  1.0
Bouffalolab Software Development Kit
CSI
Collaboration diagram for CSI:

Modules

 CSI lane number definition
 
 CSI interrupt status definition
 
 CSI interrupt mask definition
 
 CSI interrupt clear definition
 

Data Structures

struct  bflb_csi_config_s
 CSI configuration structure. More...
 

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...
 

Detailed Description

Function Documentation

◆ bflb_csi_feature_control()

int bflb_csi_feature_control ( struct bflb_device_s dev,
int  cmd,
size_t  arg 
)

Control csi feature.

Parameters
[in]devdevice handle
[in]cmdfeature command
[in]arguser data
Returns
A negated errno value on failure

◆ bflb_csi_get_intstatus()

uint32_t bflb_csi_get_intstatus ( struct bflb_device_s dev)

Get csi interrupt status.

Parameters
[in]devdevice handle
Returns
Interrupt status

◆ bflb_csi_init()

void bflb_csi_init ( struct bflb_device_s dev,
const struct bflb_csi_config_s config 
)

Initialize csi.

Parameters
[in]devdevice handle
[in]configpointer to csi configure structure

◆ bflb_csi_int_clear()

void bflb_csi_int_clear ( struct bflb_device_s dev,
uint32_t  int_type 
)

Clear csi interrupt.

Parameters
[in]devdevice handle
[in]int_typecsi interrupt clear type, use CSI interrupt clear definition

◆ bflb_csi_int_mask()

void bflb_csi_int_mask ( struct bflb_device_s dev,
uint32_t  int_type,
bool  mask 
)

Mask or unmask csi interrupt.

Parameters
[in]devdevice handle
[in]int_typecsi interrupt mask type, use CSI interrupt mask definition
[in]maskmask or unmask

◆ bflb_csi_set_line_threshold()

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.

Parameters
[in]devdevice handle
[in]resolution_xnumber of columns
[in]pixel_clockpixel clock
[in]dsp_clockdsp clock

◆ bflb_csi_start()

void bflb_csi_start ( struct bflb_device_s dev)

Enable csi.

Parameters
[in]devdevice handle

◆ bflb_csi_stop()

void bflb_csi_stop ( struct bflb_device_s dev)

Disable csi.

Parameters
[in]devdevice handle