Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
![]() |
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... | |
int bflb_csi_feature_control | ( | struct bflb_device_s * | dev, |
int | cmd, | ||
size_t | arg | ||
) |
Control csi feature.
[in] | dev | device handle |
[in] | cmd | feature command |
[in] | arg | user data |
uint32_t bflb_csi_get_intstatus | ( | struct bflb_device_s * | dev | ) |
Get csi interrupt status.
[in] | dev | device handle |
void bflb_csi_init | ( | struct bflb_device_s * | dev, |
const struct bflb_csi_config_s * | config | ||
) |
Initialize csi.
[in] | dev | device handle |
[in] | config | pointer to csi configure structure |
void bflb_csi_int_clear | ( | struct bflb_device_s * | dev, |
uint32_t | int_type | ||
) |
Clear csi interrupt.
[in] | dev | device handle |
[in] | int_type | csi interrupt clear type, use CSI interrupt clear definition |
void bflb_csi_int_mask | ( | struct bflb_device_s * | dev, |
uint32_t | int_type, | ||
bool | mask | ||
) |
Mask or unmask csi interrupt.
[in] | dev | device handle |
[in] | int_type | csi interrupt mask type, use CSI interrupt mask definition |
[in] | mask | mask or unmask |
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.
[in] | dev | device handle |
[in] | resolution_x | number of columns |
[in] | pixel_clock | pixel clock |
[in] | dsp_clock | dsp clock |
void bflb_csi_start | ( | struct bflb_device_s * | dev | ) |
Enable csi.
[in] | dev | device handle |
void bflb_csi_stop | ( | struct bflb_device_s * | dev | ) |
Disable csi.
[in] | dev | device handle |