| /bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/include/ |
| A D | bflb_mjpeg.h | 99 void bflb_mjpeg_start(struct bflb_device_s *dev); 106 void bflb_mjpeg_stop(struct bflb_device_s *dev); 114 void bflb_mjpeg_sw_run(struct bflb_device_s *dev, uint8_t frame_count); 122 void bflb_mjpeg_kick_run(struct bflb_device_s *dev, uint16_t kick_count); 129 void bflb_mjpeg_kick_stop(struct bflb_device_s *dev); 136 void bflb_mjpeg_kick(struct bflb_device_s *dev); 143 void bflb_mjpeg_tcint_mask(struct bflb_device_s *dev, bool mask); 151 void bflb_mjpeg_errint_mask(struct bflb_device_s *dev, bool mask); 159 uint32_t bflb_mjpeg_get_intstatus(struct bflb_device_s *dev); 175 uint8_t bflb_mjpeg_get_frame_count(struct bflb_device_s *dev); [all …]
|
| A D | bflb_sec_sha.h | 90 void bflb_sha_init(struct bflb_device_s *dev, uint8_t mode); 181 void bflb_sha_link_init(struct bflb_device_s *dev); 188 void bflb_sha_link_deinit(struct bflb_device_s *dev); 226 int bflb_sha1_link_update(struct bflb_device_s *dev, 240 int bflb_sha256_link_update(struct bflb_device_s *dev, 254 int bflb_sha512_link_update(struct bflb_device_s *dev, 266 void bflb_sha1_link_finish(struct bflb_device_s *dev, 277 void bflb_sha256_link_finish(struct bflb_device_s *dev, 288 void bflb_sha512_link_finish(struct bflb_device_s *dev, 297 void bflb_group0_request_sha_access(struct bflb_device_s *dev); [all …]
|
| A D | bflb_ir.h | 224 void bflb_ir_tx_enable(struct bflb_device_s *dev, bool enable); 241 uint32_t bflb_ir_get_txint_status(struct bflb_device_s *dev); 248 void bflb_ir_txint_clear(struct bflb_device_s *dev); 257 void bflb_ir_link_txdma(struct bflb_device_s *dev, bool enable); 265 uint8_t bflb_ir_get_txfifo_cnt(struct bflb_device_s *dev); 272 void bflb_ir_txfifo_clear(struct bflb_device_s *dev); 310 void bflb_ir_rx_enable(struct bflb_device_s *dev, bool enable); 318 uint8_t bflb_ir_get_rxfifo_cnt(struct bflb_device_s *dev); 325 void bflb_ir_rxfifo_clear(struct bflb_device_s *dev); 342 uint32_t bflb_ir_get_rxint_status(struct bflb_device_s *dev); [all …]
|
| A D | bflb_adc.h | 168 void bflb_adc_deinit(struct bflb_device_s *dev); 193 void bflb_adc_start_conversion(struct bflb_device_s *dev); 200 void bflb_adc_stop_conversion(struct bflb_device_s *dev); 208 uint8_t bflb_adc_get_count(struct bflb_device_s *dev); 216 uint32_t bflb_adc_read_raw(struct bflb_device_s *dev); 225 void bflb_adc_rxint_mask(struct bflb_device_s *dev, bool mask); 233 void bflb_adc_errint_mask(struct bflb_device_s *dev, bool mask); 241 uint32_t bflb_adc_get_intstatus(struct bflb_device_s *dev); 275 float bflb_adc_tsen_get_temp(struct bflb_device_s *dev); 282 void bflb_adc_vbat_enable(struct bflb_device_s *dev); [all …]
|
| A D | bflb_uart.h | 216 void bflb_uart_deinit(struct bflb_device_s *dev); 223 void bflb_uart_enable(struct bflb_device_s *dev); 230 void bflb_uart_disable(struct bflb_device_s *dev); 255 int bflb_uart_putchar(struct bflb_device_s *dev, int ch); 263 int bflb_uart_getchar(struct bflb_device_s *dev); 291 bool bflb_uart_txready(struct bflb_device_s *dev); 299 bool bflb_uart_txempty(struct bflb_device_s *dev); 307 bool bflb_uart_rxavailable(struct bflb_device_s *dev); 315 void bflb_uart_txint_mask(struct bflb_device_s *dev, bool mask); 323 void bflb_uart_rxint_mask(struct bflb_device_s *dev, bool mask); [all …]
|
| A D | bflb_pwm_v2.h | 179 void bflb_pwm_v2_deinit(struct bflb_device_s *dev); 186 void bflb_pwm_v2_start(struct bflb_device_s *dev); 193 void bflb_pwm_v2_stop(struct bflb_device_s *dev); 201 void bflb_pwm_v2_set_period(struct bflb_device_s *dev, uint16_t period); 209 float bflb_pwm_v2_get_frequency(struct bflb_device_s *dev); 236 void bflb_pwm_v2_channel_positive_start(struct bflb_device_s *dev, uint8_t ch); 244 void bflb_pwm_v2_channel_negative_start(struct bflb_device_s *dev, uint8_t ch); 252 void bflb_pwm_v2_channel_positive_stop(struct bflb_device_s *dev, uint8_t ch); 260 void bflb_pwm_v2_channel_negative_stop(struct bflb_device_s *dev, uint8_t ch); 277 uint32_t bflb_pwm_v2_get_intstatus(struct bflb_device_s *dev); [all …]
|
| A D | bflb_timer.h | 111 void bflb_timer_deinit(struct bflb_device_s *dev); 118 void bflb_timer_start(struct bflb_device_s *dev); 125 void bflb_timer_stop(struct bflb_device_s *dev); 133 void bflb_timer_set_preloadvalue(struct bflb_device_s *dev, uint32_t val); 142 void bflb_timer_set_compvalue(struct bflb_device_s *dev, uint8_t cmp_no, uint32_t val); 151 uint32_t bflb_timer_get_compvalue(struct bflb_device_s *dev, uint8_t cmp_no); 159 uint32_t bflb_timer_get_countervalue(struct bflb_device_s *dev); 168 void bflb_timer_compint_mask(struct bflb_device_s *dev, uint8_t cmp_no, bool mask); 177 bool bflb_timer_get_compint_status(struct bflb_device_s *dev, uint8_t cmp_no); 185 void bflb_timer_compint_clear(struct bflb_device_s *dev, uint8_t cmp_no); [all …]
|
| A D | bflb_spi.h | 166 void bflb_spi_deinit(struct bflb_device_s *dev); 174 void bflb_spi_link_txdma(struct bflb_device_s *dev, bool enable); 182 void bflb_spi_link_rxdma(struct bflb_device_s *dev, bool enable); 191 uint32_t bflb_spi_poll_send(struct bflb_device_s *dev, uint32_t data); 210 bool bflb_spi_isbusy(struct bflb_device_s *dev); 218 void bflb_spi_txint_mask(struct bflb_device_s *dev, bool mask); 226 void bflb_spi_rxint_mask(struct bflb_device_s *dev, bool mask); 234 void bflb_spi_tcint_mask(struct bflb_device_s *dev, bool mask); 242 void bflb_spi_errint_mask(struct bflb_device_s *dev, bool mask); 250 uint32_t bflb_spi_get_intstatus(struct bflb_device_s *dev); [all …]
|
| A D | bflb_sec_pka.h | 57 void bflb_pka_init(struct bflb_device_s *dev); 60 void bflb_pka_lmod2n(struct bflb_device_s *dev, 68 void bflb_pka_ldiv2n(struct bflb_device_s *dev, 84 void bflb_pka_ldiv(struct bflb_device_s *dev, 93 void bflb_pka_lsqr(struct bflb_device_s *dev, 100 void bflb_pka_lmul(struct bflb_device_s *dev, 109 void bflb_pka_lsub(struct bflb_device_s *dev, 118 void bflb_pka_ladd(struct bflb_device_s *dev, 133 void bflb_pka_minv(struct bflb_device_s *dev, 142 void bflb_pka_mexp(struct bflb_device_s *dev, [all …]
|
| A D | bflb_cam.h | 201 void bflb_cam_init(struct bflb_device_s *dev, const struct bflb_cam_config_s *config); 208 void bflb_cam_start(struct bflb_device_s *dev); 215 void bflb_cam_stop(struct bflb_device_s *dev); 224 void bflb_cam_int_mask(struct bflb_device_s *dev, uint32_t int_type, bool mask); 232 void bflb_cam_int_clear(struct bflb_device_s *dev, uint32_t int_type); 257 void bflb_cam_pop_one_frame(struct bflb_device_s *dev); 266 void bflb_cam_swap_input_yu_order(struct bflb_device_s *dev, bool enable); 284 uint8_t bflb_cam_get_frame_count(struct bflb_device_s *dev); 293 uint32_t bflb_cam_get_frame_info(struct bflb_device_s *dev, uint8_t **pic); 301 uint32_t bflb_cam_get_intstatus(struct bflb_device_s *dev); [all …]
|
| A D | bflb_dbi.h | 171 void bflb_dbi_init(struct bflb_device_s *dev, const struct bflb_dbi_config_s *config); 178 void bflb_dbi_deinit(struct bflb_device_s *dev); 188 void bflb_dbi_qspi_set_addr(struct bflb_device_s *dev, uint8_t addr_byte_size, uint32_t addr_val); 201 int bflb_dbi_send_cmd_data(struct bflb_device_s *dev, uint8_t cmd, uint8_t data_len, uint8_t *data_… 231 void bflb_dbi_link_txdma(struct bflb_device_s *dev, bool enable); 239 void bflb_dbi_txint_mask(struct bflb_device_s *dev, bool mask); 247 void bflb_dbi_tcint_mask(struct bflb_device_s *dev, bool mask); 255 void bflb_dbi_errint_mask(struct bflb_device_s *dev, bool mask); 263 uint32_t bflb_dbi_get_intstatus(struct bflb_device_s *dev); 271 void bflb_dbi_int_clear(struct bflb_device_s *dev, uint32_t int_clear); [all …]
|
| A D | bflb_emac.h | 164 void bflb_emac_stop(struct bflb_device_s *dev); 171 void bflb_emac_start(struct bflb_device_s *dev); 178 void bflb_emac_start_tx(struct bflb_device_s *dev); 185 void bflb_emac_stop_tx(struct bflb_device_s *dev); 192 void bflb_emac_start_rx(struct bflb_device_s *dev); 199 void bflb_emac_stop_rx(struct bflb_device_s *dev); 219 uint32_t bflb_emac_bd_get_cur_active(struct bflb_device_s *dev, uint8_t bdt); 283 void bflb_emac_int_enable(struct bflb_device_s *dev, uint32_t flag, bool enable); 291 void bflb_emac_int_clear(struct bflb_device_s *dev, uint32_t flag); 299 uint32_t bflb_emac_get_int_status(struct bflb_device_s *dev); [all …]
|
| A D | bflb_pwm_v1.h | 96 void bflb_pwm_v1_channel_init(struct bflb_device_s *dev, uint8_t ch, const struct bflb_pwm_v1_chann… 104 void bflb_pwm_v1_channel_deinit(struct bflb_device_s *dev, uint8_t ch); 112 void bflb_pwm_v1_start(struct bflb_device_s *dev, uint8_t ch); 120 void bflb_pwm_v1_stop(struct bflb_device_s *dev, uint8_t ch); 129 void bflb_pwm_v1_set_period(struct bflb_device_s *dev, uint8_t ch, uint16_t period); 139 void bflb_pwm_v1_channel_set_threshold(struct bflb_device_s *dev, uint8_t ch, uint16_t low_threhold… 148 void bflb_pwm_v1_int_enable(struct bflb_device_s *dev, uint8_t ch, bool enable); 156 uint32_t bflb_pwm_v1_get_intstatus(struct bflb_device_s *dev); 164 void bflb_pwm_v1_int_clear(struct bflb_device_s *dev, uint32_t int_clear); 175 int bflb_pwm_v1_feature_control(struct bflb_device_s *dev, uint8_t ch, int cmd, size_t arg);
|
| A D | bflb_i2c.h | 112 void bflb_i2c_init(struct bflb_device_s *dev, uint32_t frequency); 119 void bflb_i2c_deinit(struct bflb_device_s *dev); 127 void bflb_i2c_link_txdma(struct bflb_device_s *dev, bool enable); 135 void bflb_i2c_link_rxdma(struct bflb_device_s *dev, bool enable); 145 int bflb_i2c_transfer(struct bflb_device_s *dev, struct bflb_i2c_msg_s *msgs, int count); 154 void bflb_i2c_int_mask(struct bflb_device_s *dev, uint32_t int_type, bool mask); 162 void bflb_i2c_int_clear(struct bflb_device_s *dev, uint32_t int_clear); 170 uint32_t bflb_i2c_get_intstatus(struct bflb_device_s *dev); 180 int bflb_i2c_feature_control(struct bflb_device_s *dev, int cmd, size_t arg);
|
| A D | bflb_i2s.h | 128 void bflb_i2s_init(struct bflb_device_s *dev, const struct bflb_i2s_config_s *config); 135 void bflb_i2s_deinit(struct bflb_device_s *dev); 143 void bflb_i2s_link_txdma(struct bflb_device_s *dev, bool enable); 151 void bflb_i2s_link_rxdma(struct bflb_device_s *dev, bool enable); 159 void bflb_i2s_txint_mask(struct bflb_device_s *dev, bool mask); 167 void bflb_i2s_rxint_mask(struct bflb_device_s *dev, bool mask); 175 void bflb_i2s_errint_mask(struct bflb_device_s *dev, bool mask); 183 uint32_t bflb_i2s_get_intstatus(struct bflb_device_s *dev); 193 int bflb_i2s_feature_control(struct bflb_device_s *dev, int cmd, size_t arg);
|
| A D | bflb_sec_aes.h | 118 void bflb_aes_init(struct bflb_device_s *dev); 125 void bflb_aes_deinit(struct bflb_device_s *dev); 140 void bflb_aes_set_hwkey_source(struct bflb_device_s *dev, uint8_t source); 148 void bflb_aes_set_mode(struct bflb_device_s *dev, uint8_t mode); 169 int bflb_aes_encrypt(struct bflb_device_s *dev, 185 int bflb_aes_decrypt(struct bflb_device_s *dev, 196 void bflb_aes_link_init(struct bflb_device_s *dev); 203 void bflb_aes_link_deinit(struct bflb_device_s *dev); 215 int bflb_aes_link_update(struct bflb_device_s *dev, 226 void bflb_group0_request_aes_access(struct bflb_device_s *dev); [all …]
|
| A D | bflb_kys.h | 42 void bflb_kys_init(struct bflb_device_s *dev, const struct bflb_kys_config_s *config); 43 void bflb_kys_enable(struct bflb_device_s *dev); 44 void bflb_kys_disable(struct bflb_device_s *dev); 45 void bflb_kys_int_enable(struct bflb_device_s *dev, uint32_t flag, bool enable); 46 void bflb_kys_int_clear(struct bflb_device_s *dev, uint32_t flag); 47 uint32_t bflb_kys_get_int_status(struct bflb_device_s *dev); 49 void bflb_kys_get_fifo_info(struct bflb_device_s *dev, uint8_t *fifo_head, uint8_t *fifo_tail, uint… 51 uint8_t bflb_kys_read_keyvalue(struct bflb_device_s *dev, uint8_t index);
|
| A D | bflb_csi.h | 85 void bflb_csi_init(struct bflb_device_s *dev, const struct bflb_csi_config_s *config); 92 void bflb_csi_start(struct bflb_device_s *dev); 99 void bflb_csi_stop(struct bflb_device_s *dev); 109 void bflb_csi_set_line_threshold(struct bflb_device_s *dev, uint16_t resolution_x, uint32_t pixel_c… 118 void bflb_csi_int_mask(struct bflb_device_s *dev, uint32_t int_type, bool mask); 126 void bflb_csi_int_clear(struct bflb_device_s *dev, uint32_t int_type); 134 uint32_t bflb_csi_get_intstatus(struct bflb_device_s *dev); 144 int bflb_csi_feature_control(struct bflb_device_s *dev, int cmd, size_t arg);
|
| A D | bflb_sdio2.h | 47 struct bflb_device_s { struct 63 int bflb_sdio2_init(struct bflb_device_s *dev); argument 64 int bflb_sdio2_check_host_ready(struct bflb_device_s *dev); 65 uint32_t bflb_sdio2_get_block_size(struct bflb_device_s *dev); 66 int bflb_sdio2_tx_rx_queue_init(struct bflb_device_s *dev); 67 int bflb_sdio2_send_data(struct bflb_device_s *dev, int qos, uintptr_t *buff, int len); 68 int bflb_sdio2_recv_data(struct bflb_device_s *dev, int qos, uintptr_t *buff, int *len);
|
| A D | bflb_wdg.h | 59 void bflb_wdg_init(struct bflb_device_s *dev, const struct bflb_wdg_config_s *config); 66 void bflb_wdg_start(struct bflb_device_s *dev); 73 void bflb_wdg_stop(struct bflb_device_s *dev); 81 uint16_t bflb_wdg_get_countervalue(struct bflb_device_s *dev); 89 void bflb_wdg_set_countervalue(struct bflb_device_s *dev, uint16_t value); 96 void bflb_wdg_reset_countervalue(struct bflb_device_s *dev); 103 void bflb_wdg_compint_clear(struct bflb_device_s *dev);
|
| A D | bflb_gpio.h | 261 void bflb_gpio_deinit(struct bflb_device_s *dev, uint8_t pin); 269 void bflb_gpio_set(struct bflb_device_s *dev, uint8_t pin); 277 void bflb_gpio_reset(struct bflb_device_s *dev, uint8_t pin); 286 bool bflb_gpio_read(struct bflb_device_s *dev, uint8_t pin); 294 void bflb_gpio_pin0_31_write(struct bflb_device_s *dev, uint32_t val); 302 void bflb_gpio_pin32_63_write(struct bflb_device_s *dev, uint32_t val); 310 uint32_t bflb_gpio_pin0_31_read(struct bflb_device_s *dev); 318 uint32_t bflb_gpio_pin32_63_read(struct bflb_device_s *dev); 336 void bflb_gpio_int_mask(struct bflb_device_s *dev, uint8_t pin, bool mask); 345 bool bflb_gpio_get_intstatus(struct bflb_device_s *dev, uint8_t pin); [all …]
|
| A D | bflb_dac.h | 44 void bflb_dac_init(struct bflb_device_s *dev, uint8_t clk_div); 51 void bflb_dac_deinit(struct bflb_device_s *dev); 59 void bflb_dac_link_txdma(struct bflb_device_s *dev, bool enable); 67 void bflb_dac_channel_enable(struct bflb_device_s *dev, uint8_t ch); 75 void bflb_dac_channel_disable(struct bflb_device_s *dev, uint8_t ch); 84 void bflb_dac_set_value(struct bflb_device_s *dev, uint8_t ch, uint16_t value);
|
| A D | bflb_dma.h | 388 void bflb_dma_channel_deinit(struct bflb_device_s *dev); 395 void bflb_dma_channel_start(struct bflb_device_s *dev); 402 void bflb_dma_channel_stop(struct bflb_device_s *dev); 410 bool bflb_dma_channel_isbusy(struct bflb_device_s *dev); 426 void bflb_dma_channel_irq_detach(struct bflb_device_s *dev); 438 int bflb_dma_channel_lli_reload(struct bflb_device_s *dev, 449 void bflb_dma_channel_lli_link_head(struct bflb_device_s *dev, 461 int bflb_dma_feature_control(struct bflb_device_s *dev, int cmd, size_t arg); 469 void bflb_dma_channel_tcint_mask(struct bflb_device_s *dev, bool mask); 477 bool bflb_dma_channel_get_tcint_status(struct bflb_device_s *dev); [all …]
|
| A D | bflb_audac.h | 151 int bflb_audac_init(struct bflb_device_s *dev, const struct bflb_audac_init_config_s *config); 153 int bflb_audac_volume_init(struct bflb_device_s *dev, const struct bflb_audac_volume_config_s *vol_… 155 int bflb_audac_link_rxdma(struct bflb_device_s *dev, bool enable); 157 int bflb_audac_int_mask(struct bflb_device_s *dev, uint32_t mask); 159 int bflb_audac_get_intstatus(struct bflb_device_s *dev); 161 int bflb_audac_int_clear(struct bflb_device_s *dev, uint32_t int_clear); 163 int bflb_audac_feature_control(struct bflb_device_s *dev, int cmd, size_t arg);
|
| /bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/src/ |
| A D | bflb_i2c.c | 106 static inline bool bflb_i2c_isbusy(struct bflb_device_s *dev) in bflb_i2c_isbusy() 122 static inline bool bflb_i2c_isend(struct bflb_device_s *dev) in bflb_i2c_isend() 138 static inline bool bflb_i2c_isnak(struct bflb_device_s *dev) in bflb_i2c_isnak() 154 static inline void bflb_i2c_enable(struct bflb_device_s *dev) in bflb_i2c_enable() 166 static inline void bflb_i2c_disable(struct bflb_device_s *dev) in bflb_i2c_disable() 189 static inline bool bflb_i2c_isenable(struct bflb_device_s *dev) in bflb_i2c_isenable() 309 void bflb_i2c_init(struct bflb_device_s *dev, uint32_t frequency) in bflb_i2c_init() 332 void bflb_i2c_deinit(struct bflb_device_s *dev) in bflb_i2c_deinit() 353 void bflb_i2c_link_txdma(struct bflb_device_s *dev, bool enable) in bflb_i2c_link_txdma() 368 void bflb_i2c_link_rxdma(struct bflb_device_s *dev, bool enable) in bflb_i2c_link_rxdma() [all …]
|