DBI 显示接口
bflb_dbi_init(dev, config)
初始化 DBI 显示接口。
参数:
dev:设备句柄config:pointer to save DBI 显示接口 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dbi_qspi_set_addr(dev, addr_byte_size, addr_val)
Set the 地址 值 and 地址 length of the QSPI
参数:
dev:设备句柄addr_byte_size:地址 size(byte), range 1 ~ 4addr_val:地址 值: [0:7]->addr[0], [8:15]->addr[1], [16:23]->addr[2], [24:31]->addr[3].
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dbi_send_cmd_data(dev, cmd, data_len, data_buff)
发送 cmd with pixel 数据, send cmd -> send 地址(only QSPI 模式) -> send parameter_data。
参数:
dev:设备句柄cmd:commanddata_len:Parameter length (byte), The maximum is DBI_WRITE_DATA_BYTE_MAXdata_buff:Parameter 缓冲区, Cannot be null
📎 设备名速查:支持的设备名(BL616)
返回值:见 SDK 头文件
bflb_dbi_send_cmd_read_data(dev, cmd, data_len, data_buff)
To read the 数据 after sending the command, send cmd -> send 地址(only QSPI 模式) -> read parameter_data.
参数:
dev:设备句柄cmd:commanddata_len:Length of 数据 to be read (byte), The maximum is DBI_READ_DATA_BYTE_MAXdata_buff:Buff of 数据 to be read, discard 数据 if null
📎 设备名速查:支持的设备名(BL616)
返回值:见 SDK 头文件
bflb_dbi_send_cmd_pixel(dev, cmd, pixel_cnt, pixel_buff)
Send cmd with pixel 数据, send cmd -> send 地址(only QSPI 模式) -> send pixel_data,
参数:
dev:设备句柄cmd:commandpixel_cnt:Number of pixels,The maximum is DBI_WRITE_PIXEL_CNT_MAXpixel_buff:Pixels 缓冲区, NULL when using DMA, in which case 数据 needs to be transferred by DMA later, and wait for the transfer to complete
📎 设备名速查:支持的设备名(BL616)
返回值:见 SDK 头文件
bflb_dbi_link_txdma(dev, enable)
使能 DBI 显示接口 tx DMA。
参数:
dev:设备句柄enable:true means enable, otherwise disable.
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dbi_txint_mask(dev, mask)
使能 or disable DBI 显示接口 rx fifo threhold 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dbi_tcint_mask(dev, mask)
使能 or disable DBI 显示接口 transfer completion 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dbi_errint_mask(dev, mask)
使能 or disable DBI 显示接口 error 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dbi_get_intstatus(dev)
获取 DBI 显示接口 中断 状态。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:中断 状态, use @ref DBI_INTSTS
bflb_dbi_int_clear(dev, int_clear)
清除 DBI 显示接口 中断 状态。
参数:
dev:设备句柄int_clear:clear 值, 使用 DBI_INTCLR
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dbi_feature_control(dev, cmd, arg)
Control DBI 显示接口 feature.
参数:
dev:设备句柄cmd:feature command, 使用 DBI_CMDarg:用户数据
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure.
DSI(仅 Ai-M64 支持)
bflb_dsi_phy_set_clock_lane(dev, operations)
Control DSI clock lane operations
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on failure
bflb_dsi_phy_hs_mode_stop(dev)
Stop high speed 模式 transmission
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on 超时
bflb_dsi_lpdt_send_short_packet(dev, msg)
Send LPDT short packet (0-2 bytes payload)
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on failure
bflb_dsi_lpdt_send_long_packet(dev, msg)
Send LPDT long packet (variable length payload)
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on failure
bflb_dsi_lpdt_recv(dev, msg)
Receive LPDT packet
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on failure
bflb_dsi_lpdt_config_short_packet(dev, msg)
Configure short packet for LPDT transmission
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on failure
bflb_dsi_lpdt_config_long_packet(dev, msg)
Configure long packet for LPDT transmission
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on failure
bflb_dsi_lpdt_start_tx(dev)
Start LPDT transmission
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on failure
bflb_dsi_lpdt_start_rx(dev)
Start LPDT reception
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on failure
bflb_dsi_wait_tx_done(dev)
Wait for LPDT transmission to complete
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code on 超时
bflb_dsi_lpdt_get_rx_length(dev)
Get received LPDT packet length
📎 设备名速查:支持的设备名(BL616)
返回值:Length of received packet in bytes
bflb_dsi_read_fifo(dev, data, maxlen)
Read 数据 from RX FIFO
📎 设备名速查:支持的设备名(BL616)
返回值:Number of bytes actually read, or negative error code
bflb_dsi_full_fill_fifo(dev, data, len)
Fill TX FIFO completely with 数据
📎 设备名速查:支持的设备名(BL616)
返回值:Number of bytes actually written
bflb_dsi_feed_fifo(dev, data, len)
Feed 数据 to TX FIFO (partial fill allowed)
📎 设备名速查:支持的设备名(BL616)
返回值:Number of bytes actually written
bflb_dsi_get_tx_fifo_count(dev)
Get current TX FIFO count
📎 设备名速查:支持的设备名(BL616)
返回值:Current number of bytes in TX FIFO
bflb_dsi_get_rx_fifo_count(dev)
Get current RX FIFO count
📎 设备名速查:支持的设备名(BL616)
返回值:Current number of bytes in RX FIFO
bflb_dsi_send_trigger_command(dev, cmd)
Send DSI trigger command
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code otherwise
bflb_dsi_send_ulps_command(dev)
Send DSI ULPS command
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code otherwise
bflb_dsi_exit_ulps(dev)
Exit DSI ULPS 模式
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code otherwise
bflb_dsi_set_line_buffer_threshold(dev, frame_width, dvp_tsrc_clock, dsi_clock, data_type, lane_number)
Set DSI line 缓冲区 threshold
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dsi_phy_reinit_data_lanes(dev, lanes_mask)
Reinitialize DSI 数据 lanes (force RX 模式)
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dsi_phy_stop_data_lanes(dev, lanes_mask)
Stop DSI 数据 lanes (force TX stop 模式)
📎 设备名速查:支持的设备名(BL616)
返回值:无
DVP Raster(仅 Ai-M64 支持)
bflb_dvp_raster_init(dev, config)
初始化 dvp raster。
参数:
dev:设备句柄config:pointer to save dvp raster 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dvp_raster_sw_mode(dev, enable)
使能 or disable dvp raster software 模式。
参数:
dev:设备句柄enable:true means enable, false means disable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dvp_raster_sw_mode_kick(dev)
Trigger dvp raster software 模式 to process one frame.
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dvp_raster_sw_mode_output_rgb(dev, enable)
使能 or disable dvp raster software 模式 to output rgb 数据。
参数:
dev:设备句柄enable:true means enable, false means disable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dvp_raster_int_mask(dev, mask)
使能 or disable dvp raster 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dvp_raster_crop_vsync(dev, start_line, end_line)
Crop vsync.
参数:
dev:设备句柄start_line:start line of windowend_line:end line of window, not include
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dvp_raster_crop_hsync(dev, start_pixel, end_pixel)
Crop hsync.
参数:
dev:设备句柄start_pixel:start pixel of each lineend_pixel:end pixel of each line, not include
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dvp_raster_feature_control(dev, cmd, arg)
Control dvp raster feature.
参数:
dev:设备句柄cmd:feature command, 使用 DVP_RASTER_CMDarg:用户数据
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure.
OSD 叠加(仅 Ai-M64 支持)
bflb_osd_blend_init(dev, config)
初始化 osd blend。
参数:
dev:设备句柄config:pointer to save osd blend 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_blend_set_coordinate(dev, coor)
设置 osd blend coordinate。
参数:
dev:设备句柄coor:pointer to osd coordinate
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_blend_set_layer_buffer(dev, addr)
设置 osd blend layer 缓冲区。
参数:
dev:设备句柄addr:start 地址 of layer 缓冲区
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_blend_get_layer_buffer(dev)
获取 osd blend layer 缓冲区。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:Start 地址 of the layer 缓冲区
bflb_osd_blend_set_global_a(dev, enable, value)
设置 osd blend global alpha。
参数:
dev:设备句柄enable:enable or disable global alphavalue:值 of global alpha
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_blend_set_global_rgb_yuv(dev, enable, rv, gy, bu)
设置 osd blend global RGB or YUV。
参数:
dev:设备句柄enable:enable or disable global alpharv:值 of global R or Vgy:值 of global G or Ybu:值 of global B or U
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_blend_set_palette_color(dev, index, value)
设置 osd blend palette index and color。
参数:
dev:设备句柄index:index of colorvalue:值 of color
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_blend_replace_palette_index(dev, enable, replace)
Replace osd blend palette index with target index.
参数:
dev:设备句柄enable:enable or disable replace functionreplace:pointer to save osd blend palette index replace 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_blend_replace_color_value(dev, enable, replace_a, replace_rv, replace_gy, replace_bu)
Replace osd blend color 值 with target 值 only when its A, R, G, and B values all match the range.
参数:
dev:设备句柄enable:enable or disable replace functionreplace_a:pointer to save osd blend 值 of alpha replace 配置replace_rv:pointer to save osd blend 值 of R/V replace 配置replace_gy:pointer to save osd blend 值 of G/Y replace 配置replace_bu:pointer to save osd blend 值 of B/U replace 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_draw_init(dev, layer, config)
初始化 osd draw rectangle。
参数:
dev:设备句柄layer:draw layer, 使用 OSD_DRAW_LAYERconfig:pointer to save osd draw 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_draw_enable(dev, layer)
使能 osd draw rectangle。
参数:
dev:设备句柄layer:draw layer, 使用 OSD_DRAW_LAYER
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_draw_disable(dev, layer)
关闭 osd draw rectangle。
参数:
dev:设备句柄layer:draw layer, 使用 OSD_DRAW_LAYER
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_draw_set_coordinate(dev, layer, coor)
设置 osd draw rectangle coordinate。
参数:
dev:设备句柄layer:draw layer, 使用 OSD_DRAW_LAYERcoor:pointer to osd coordinate
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_int_mask(dev, mask)
使能 or disable osd 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_osd_feature_control(dev, cmd, arg)
Control osd feature.
参数:
dev:设备句柄cmd:feature command, 使用 OSD_CMDarg:用户数据
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure.
2D DMA(仅 Ai-M64 支持)
bflb_dma2d_channel_init(dev, config)
初始化 dma2d 通道。
参数:
dev:设备句柄config:pointer to save dma2d 通道 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dma2d_channel_isbusy(dev)
检查 if dma2d 通道 is in busy。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:true means dma2d 通道 is enable, otherwise means disable.
bflb_dma2d_channel_irq_detach(dev)
注销 dma2d 通道 transmission completion 中断 回调。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dma2d_channel_tcint_mask(dev, mask)
使能 or disable dma2d 通道 transmission completion 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dma2d_channel_get_tcint_status(dev)
检查 if dma2d 通道 transfers completely。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:true means yes, false means no.
bflb_dma2d_channel_tcint_clear(dev)
清除 dma2d 通道 transmission completion 中断 状态。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dma2d_image_geometric_transfor_calculate(dev, config, image, mode)
Calculate dma2d 配置 according to image geometric transfor 模式.
参数:
dev:设备句柄config:pointer to save dma2d 通道 配置image:pointer to dma2d image informationmode:image geometric transfor 模式, 使用 DMA2D_IMAGE_GEOMETRIC_TRANSFOR
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dma2d_channel_enable_color_key(dev)
使能 dma2d 通道 color 密钥 function。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dma2d_channel_disable_color_key(dev)
关闭 dma2d 通道 color 密钥 function。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dma2d_channel_set_color_key(dev, mode, value, mask)
设置 dma2d 通道 color 密钥 模式 and 值。
参数:
dev:设备句柄mode:color 密钥 模式, 使用 DMA2D_COLOR_KEY_MODEvalue:color 密钥 值mask:color 密钥 mask, 使用 DMA2D_COLOR_KEY_MASK
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_dma2d_feature_control(dev, cmd, arg)
Control dma2d feature.
参数:
dev:设备句柄cmd:feature command, 使用 DMA2D_CMDarg:用户数据
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure.
JPEG 解码(仅 Ai-M64 支持)
bflb_mjdec_set_dqt_from_zigzag(dev, yy, uv)
Set DQT from ZIGZAG
参数:
dev:设备句柄yy:pointer of YY component DQT ordered by zig_zaguv:pointer of UV component DQT ordered by zig_zag
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjdec_set_dqt_from_header(dev, header)
Set DQT from JPEG header
参数:
dev:设备句柄header:pointer of JPEG header
📎 设备名速查:支持的设备名(BL616)
返回值:error 状态
bflb_mjdec_set_dht_from_spec(dev, pointer)
Set DHT from JPEG specification
参数:
dev:设备句柄pointer:of DHT
📎 设备名速查:支持的设备名(BL616)
返回值:error 状态
bflb_mjdec_set_dht_from_header(dev, header)
Set DHT from JPEG header
参数:
dev:设备句柄header:pointer of JPEG header
📎 设备名速查:支持的设备名(BL616)
返回值:error 状态
bflb_mjdec_set_dqt_from_quality(dev, quality)
Set DQT from quality 值
参数:
dev:设备句柄quality:JPEG quality
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjdec_init(dev, config)
初始化 mjdec。
参数:
dev:设备句柄config:pointer to save mjdec 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjdec_push_jpeg(dev, frame)
Push one frame of jpeg to mjdec for dec-compression
参数:
dev:设备句柄frame:jpeg frame start 地址, must be align 8 bytes
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjdec_tcint_mask(dev, mask)
使能 or disable mjdec one frame dec-compression completion 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjdec_int_clear(dev, int_clear)
清除 mjdec 中断 状态。
参数:
dev:设备句柄int_clear:clear 值
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjdec_get_frame_count(dev)
获取 number of frame count that has dec-compressed。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:dec-compressed frame count
bflb_mjdec_pop_one_frame(dev)
Drop one frame that has dec-compressed.
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjdec_feature_control(dev, cmd, arg)
Control mjdec feature.
参数:
dev:设备句柄cmd:feature commandarg:用户数据
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure.
touch v2(仅 Ai-M64 支持)
bflb_touch_v2_init(dev, config)
Initialize 触摸 V2 with 配置
📎 设备名速查:支持的设备名(BL616)
返回值:0 on success, negative error code otherwise
bflb_touch_v2_set_channel_threshold(dev, channel, threshold)
Set 通道 threshold 数据
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_touch_v2_set_channel_hysteresis(dev, channel, hys)
Set 通道 hysteresis 数据
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_touch_v2_set_channel_force_data(dev, channel, force_data)
Set 通道 force 数据
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_touch_v2_get_raw_data(dev, channel)
Get raw 数据 for a specific 通道
📎 设备名速查:支持的设备名(BL616)
返回值:raw 数据 值
bflb_touch_v2_get_flt_data(dev, channel)
Get filtered 数据 for a specific 通道
📎 设备名速查:支持的设备名(BL616)
返回值:filtered 数据 值
bflb_touch_v2_get_lta_data(dev, channel)
Get LTA 数据 for a specific 通道
📎 设备名速查:支持的设备名(BL616)
返回值:LTA 数据 值
bflb_touch_v2_config_freq_hopping(dev, enable, threshold, div0, div1, div2)
Configure frequency hopping
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_touch_v2_set_detection_duration(dev, duration)
Set 触摸 detection duration
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_touch_v2_set_sleep_cycle(dev, sleep_cycle)
Configure sleep cycle for non-continuous 模式
📎 设备名速查:支持的设备名(BL616)
返回值:无
PEC v2(仅 Ai-M64 支持)
bflb_pec_memory_size_check(dev, start, size, actual_start)
COMMON API
📎 设备名速查:支持的设备名(BL616)
返回值:见 SDK 头文件
I2S 音频
bflb_i2s_init(dev, config)
初始化 I2S 音频。
参数:
dev:设备句柄config:pointer to save I2S 音频 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_i2s_link_txdma(dev, enable)
使能 I2S 音频 tx DMA。
参数:
dev:设备句柄enable:true means enable, otherwise disable.
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_i2s_link_rxdma(dev, enable)
使能 I2S 音频 rx DMA。
参数:
dev:设备句柄enable:true means enable, otherwise disable.
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_i2s_txint_mask(dev, mask)
使能 or disable I2S 音频 rx fifo threhold 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_i2s_rxint_mask(dev, mask)
使能 or disable I2S 音频 rx fifo threhold 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_i2s_errint_mask(dev, mask)
使能 or disable I2S 音频 error 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_i2s_get_intstatus(dev)
获取 I2S 音频 中断 状态。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:中断 状态, use @ref I2S_INTSTS
bflb_i2s_feature_control(dev, cmd, arg)
Control I2S 音频 feature.
参数:
dev:设备句柄cmd:feature command, 使用 I2S_CMDarg:用户数据
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure.
音频采集 AUADC
bflb_auadc_init(sampling_rate, input_mode, data_format, fifo_threshold)
音频采集 ADC analog initialization 配置 structure
参数:
sampling_rate:音频采集 sampling rate, 使用 AUADC_SAMPLING_RATEinput_mode:音频采集 模式, 使用 AUADC_INPUT_MODEdata_format:音频采集 fifo 数据 format, 使用 AUADC_DATA_FORMATfifo_threshold:音频采集 tx fifo threshold, 0 ~ 7
返回值:见 SDK 头文件
bflb_auadc_adc_init(analog_adc_en, adc_mode, adc_pga_mode, adc_pga_posi_ch, adc_pga_nega_ch, adc_pga_gain, adc_measure_rate)
音频采集 ADC analog initialization 配置 structure
参数:
analog_adc_en:音频采集 sampling rate, use true or falseadc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODEadc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODEadc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CHadc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CHadc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3dbadc_measure_rate:音频采集 ADC sampling rate in measurement 模式 @ AUADC_SAMPLING_RATE_MEASURE_256K, 使用 AUADC_ADC_MEASURE_RATE
返回值:见 SDK 头文件
bflb_auadc_link_rxdma(analog_adc_en, adc_mode, adc_pga_mode, adc_pga_posi_ch, adc_pga_nega_ch, adc_pga_gain, adc_measure_rate)
音频采集 ADC analog initialization 配置 structure
参数:
analog_adc_en:音频采集 sampling rate, use true or falseadc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODEadc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODEadc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CHadc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CHadc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3dbadc_measure_rate:音频采集 ADC sampling rate in measurement 模式 @ AUADC_SAMPLING_RATE_MEASURE_256K, 使用 AUADC_ADC_MEASURE_RATE
返回值:见 SDK 头文件
bflb_auadc_int_mask(analog_adc_en, adc_mode, adc_pga_mode, adc_pga_posi_ch, adc_pga_nega_ch, adc_pga_gain, adc_measure_rate)
音频采集 ADC analog initialization 配置 structure
参数:
analog_adc_en:音频采集 sampling rate, use true or falseadc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODEadc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODEadc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CHadc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CHadc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3dbadc_measure_rate:音频采集 ADC sampling rate in measurement 模式 @ AUADC_SAMPLING_RATE_MEASURE_256K, 使用 AUADC_ADC_MEASURE_RATE
返回值:见 SDK 头文件
bflb_auadc_int_unmask(analog_adc_en, adc_mode, adc_pga_mode, adc_pga_posi_ch, adc_pga_nega_ch, adc_pga_gain, adc_measure_rate)
音频采集 ADC analog initialization 配置 structure
参数:
analog_adc_en:音频采集 sampling rate, use true or falseadc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODEadc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODEadc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CHadc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CHadc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3dbadc_measure_rate:音频采集 ADC sampling rate in measurement 模式 @ AUADC_SAMPLING_RATE_MEASURE_256K, 使用 AUADC_ADC_MEASURE_RATE
返回值:见 SDK 头文件
bflb_auadc_get_intstatus(analog_adc_en, adc_mode, adc_pga_mode, adc_pga_posi_ch, adc_pga_nega_ch, adc_pga_gain, adc_measure_rate)
音频采集 ADC analog initialization 配置 structure
参数:
analog_adc_en:音频采集 sampling rate, use true or falseadc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODEadc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODEadc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CHadc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CHadc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3dbadc_measure_rate:音频采集 ADC sampling rate in measurement 模式 @ AUADC_SAMPLING_RATE_MEASURE_256K, 使用 AUADC_ADC_MEASURE_RATE
返回值:见 SDK 头文件
bflb_auadc_feature_control(analog_adc_en, adc_mode, adc_pga_mode, adc_pga_posi_ch, adc_pga_nega_ch, adc_pga_gain, adc_measure_rate)
音频采集 ADC analog initialization 配置 structure
参数:
analog_adc_en:音频采集 sampling rate, use true or falseadc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODEadc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODEadc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CHadc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CHadc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3dbadc_measure_rate:音频采集 ADC sampling rate in measurement 模式 @ AUADC_SAMPLING_RATE_MEASURE_256K, 使用 AUADC_ADC_MEASURE_RATE
返回值:见 SDK 头文件
音频 DAC
bflb_audac_init(sampling_rate, output_mode, source_channels_num, mixer_mode, data_format, fifo_threshold, dma_enable)
音频 DAC 卷 配置 structure
参数:
sampling_rate:音频 DAC sampling rate, 使用 AUDAC_SAMPLING_RATEoutput_mode:音频 DAC 模式, 使用 AUDAC_OUTPUT_MODEsource_channels_num:音频 DAC source 通道 num, 使用 AUDAC_SOURCE_CHANNELmixer_mode:音频 DAC mixer 模式, valid only in AUDAC_SOURCE_CHANNEL_DUAL 模式, 使用 AUDAC_MIXER_MODEdata_format:音频 DAC 音频 DAC 数据 format, 使用 AUDAC_DATA_FORMATfifo_threshold:音频 DAC tx fifo threshold, 0 ~ 7dma_enable:音频 DAC DMA 模式 enable, use true or false
返回值:见 SDK 头文件
bflb_audac_volume_init(mute_ramp_en, mute_up_ramp_rate, mute_down_ramp_rate, volume_update_mode, volume_ramp_rate, volume_zero_cross_timeout)
音频 DAC 卷 配置 structure
参数:
mute_ramp_en:音频 DAC mute 模式 en, use true or falsemute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEmute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEvolume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODEvolume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATEvolume_zero_cross_timeout:音频 DAC 卷 update zero cross 超时 period, valid only in AUDAC_VOLUME_UPDATE_MODE_RAMP_ZERO_CROSSING 模式
返回值:见 SDK 头文件
bflb_audac_link_rxdma(mute_ramp_en, mute_up_ramp_rate, mute_down_ramp_rate, volume_update_mode, volume_ramp_rate, volume_zero_cross_timeout)
音频 DAC 卷 配置 structure
参数:
mute_ramp_en:音频 DAC mute 模式 en, use true or falsemute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEmute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEvolume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODEvolume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATEvolume_zero_cross_timeout:音频 DAC 卷 update zero cross 超时 period, valid only in AUDAC_VOLUME_UPDATE_MODE_RAMP_ZERO_CROSSING 模式
返回值:见 SDK 头文件
bflb_audac_int_mask(mute_ramp_en, mute_up_ramp_rate, mute_down_ramp_rate, volume_update_mode, volume_ramp_rate, volume_zero_cross_timeout)
音频 DAC 卷 配置 structure
参数:
mute_ramp_en:音频 DAC mute 模式 en, use true or falsemute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEmute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEvolume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODEvolume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATEvolume_zero_cross_timeout:音频 DAC 卷 update zero cross 超时 period, valid only in AUDAC_VOLUME_UPDATE_MODE_RAMP_ZERO_CROSSING 模式
返回值:见 SDK 头文件
bflb_audac_int_unmask(mute_ramp_en, mute_up_ramp_rate, mute_down_ramp_rate, volume_update_mode, volume_ramp_rate, volume_zero_cross_timeout)
音频 DAC 卷 配置 structure
参数:
mute_ramp_en:音频 DAC mute 模式 en, use true or falsemute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEmute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEvolume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODEvolume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATEvolume_zero_cross_timeout:音频 DAC 卷 update zero cross 超时 period, valid only in AUDAC_VOLUME_UPDATE_MODE_RAMP_ZERO_CROSSING 模式
返回值:见 SDK 头文件
bflb_audac_get_intstatus(mute_ramp_en, mute_up_ramp_rate, mute_down_ramp_rate, volume_update_mode, volume_ramp_rate, volume_zero_cross_timeout)
音频 DAC 卷 配置 structure
参数:
mute_ramp_en:音频 DAC mute 模式 en, use true or falsemute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEmute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEvolume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODEvolume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATEvolume_zero_cross_timeout:音频 DAC 卷 update zero cross 超时 period, valid only in AUDAC_VOLUME_UPDATE_MODE_RAMP_ZERO_CROSSING 模式
返回值:见 SDK 头文件
bflb_audac_int_clear(mute_ramp_en, mute_up_ramp_rate, mute_down_ramp_rate, volume_update_mode, volume_ramp_rate, volume_zero_cross_timeout)
音频 DAC 卷 配置 structure
参数:
mute_ramp_en:音频 DAC mute 模式 en, use true or falsemute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEmute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEvolume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODEvolume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATEvolume_zero_cross_timeout:音频 DAC 卷 update zero cross 超时 period, valid only in AUDAC_VOLUME_UPDATE_MODE_RAMP_ZERO_CROSSING 模式
返回值:见 SDK 头文件
bflb_audac_feature_control(mute_ramp_en, mute_up_ramp_rate, mute_down_ramp_rate, volume_update_mode, volume_ramp_rate, volume_zero_cross_timeout)
音频 DAC 卷 配置 structure
参数:
mute_ramp_en:音频 DAC mute 模式 en, use true or falsemute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEmute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATEvolume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODEvolume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATEvolume_zero_cross_timeout:音频 DAC 卷 update zero cross 超时 period, valid only in AUDAC_VOLUME_UPDATE_MODE_RAMP_ZERO_CROSSING 模式
返回值:见 SDK 头文件
摄像头 CAM
bflb_cam_init(dev, config)
初始化摄像头。
参数:
dev:设备句柄config:pointer to 摄像头 configure structure
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_cam_int_mask(dev, int_type, mask)
Mask or unmask 摄像头 中断.
参数:
dev:设备句柄int_type:摄像头 中断 mask type, 使用 CAM_INTMASKmask:mask or unmask
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_cam_int_clear(dev, int_type)
清除摄像头 中断。
参数:
dev:设备句柄int_type:int_type 摄像头 中断 clear type, 使用 CAM_INTCLR
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_cam_crop_vsync(dev, start_line, end_line)
Crop vsync.
参数:
dev:设备句柄start_line:start line of windowend_line:end line of window, not include
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_cam_crop_hsync(dev, start_pixel, end_pixel)
Crop hsync.
参数:
dev:设备句柄start_pixel:start pixel of each lineend_pixel:end pixel of each line, not include
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_cam_get_frame_info(dev, pic)
获取 frame information。
参数:
dev:设备句柄pic:pointer to frame start 地址
📎 设备名速查:支持的设备名(BL616)
返回值:Size of frame
bflb_cam_feature_control(dev, cmd, arg)
Control 摄像头 feature.
参数:
dev:设备句柄cmd:feature commandarg:用户数据
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure
MJPEG 编码
bflb_mjpeg_init(dev, config)
初始化 MJPEG。
参数:
dev:设备句柄config:pointer to save MJPEG 配置
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_sw_run(dev, frame_count)
启动 MJPEG compression without camera。
参数:
dev:设备句柄frame_count:frame count to compress
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_kick_run(dev, kick_count)
启动 MJPEG kick 模式 compression without camera。
参数:
dev:设备句柄kick_count:kick block horizontal count to compress
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_kick_stop(dev)
停止 MJPEG kick 模式 compression without camera。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_kick(dev, kick_count)
kick one times compression without camera.
参数:
dev:设备句柄kick_count:kick block horizontal count to compress
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_tcint_mask(dev, mask)
使能 or disable MJPEG one frame compression completion 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_kickint_mask(dev, mask)
使能 or disable MJPEG kick done 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_swapint_mask(dev, mask)
使能 or disable MJPEG swap 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_errint_mask(dev, mask)
使能 or disable MJPEG error 中断。
参数:
dev:设备句柄mask:true means disable, false means enable
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_int_clear(dev, int_clear)
清除 MJPEG 中断 状态。
参数:
dev:设备句柄int_clear:clear 值
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_get_frame_count(dev)
获取 number of frame count that has compressed。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:compressed frame count
bflb_mjpeg_pop_one_frame(dev)
Drop one frame that has compressed.
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_get_swap_bit_count(dev)
获取 bit count remained in swap 模式。
参数:
dev:设备句柄
📎 设备名速查:支持的设备名(BL616)
返回值:remained bit count
bflb_mjpeg_get_frame_info(dev, pic)
获取 one frame information。
参数:
dev:设备句柄pic:pointer to save frame 地址.
📎 设备名速查:支持的设备名(BL616)
返回值:frame length
bflb_mjpeg_get_swap_block_info(dev, idx)
获取 swap block information。
参数:
dev:设备句柄idx:index of current swap block.
📎 设备名速查:支持的设备名(BL616)
返回值:swap block is end or not
bflb_mjpeg_swap_is_block_full(dev, idx)
检查 is block full in swap 模式。
参数:
dev:设备句柄idx:index of the block to be checked.
📎 设备名速查:支持的设备名(BL616)
返回值:block is full or not
bflb_mjpeg_calculate_quantize_table(quality, input_table, output_table)
Calculate jpeg quantize table.
参数:
quality:image qualityinput_table:pointer to save input tableoutput_table:pointer to save output table
返回值:无
bflb_mjpeg_fill_quantize_table(dev, input_yy, input_uv)
Fill quantize table into MJPEG register.
参数:
dev:设备句柄input_yy:yy quantize tableinput_uv:uv quantize table
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_fill_jpeg_header_tail(dev, header, header_len)
Fill jpeg header into MJPEG register and enable hardware auto adding jpeg tail.
参数:
dev:设备句柄header:pointer to jpeg headerheader_len:jpeg header length
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_set_yuv420sp_cam_input(dev, yy, uv)
设置 MJPEG input when uses camera with yuv402sp。
参数:
dev:设备句柄yy:camera id for yyuv:camera id for uv
📎 设备名速查:支持的设备名(BL616)
返回值:无
bflb_mjpeg_feature_control(dev, cmd, arg)
Control MJPEG feature.
参数:
dev:设备句柄cmd:feature commandarg:用户数据
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure.
bflb_mjpeg_update_input_output_buff(dev, input_buf0, input_buf1, output_buff, output_buff_size)
Control MJPEG feature.
参数:
dev:设备句柄input_buf0:input 缓冲区 0input_buf1:input 缓冲区 1output_buff:output 缓冲区output_buff_size:size of output 缓冲区
📎 设备名速查:支持的设备名(BL616)
返回值:A negated errno 值 on failure.
遇到问题?
如有其他问题,请到统一的提问与讨论区:Ai-Thinker Discussions

