Skip to content

DBI 显示接口

bflb_dbi_init(dev, config)

初始化 DBI 显示接口。

参数

  • dev:设备句柄
  • config:pointer to save DBI 显示接口 配置

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dbi_deinit(dev)

反初始化 DBI 显示接口。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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 ~ 4
  • addr_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:command
  • data_len:Parameter length (byte), The maximum is DBI_WRITE_DATA_BYTE_MAX
  • data_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:command
  • data_len:Length of 数据 to be read (byte), The maximum is DBI_READ_DATA_BYTE_MAX
  • data_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:command
  • pixel_cnt:Number of pixels,The maximum is DBI_WRITE_PIXEL_CNT_MAX
  • pixel_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_CMD
  • arg:用户数据

📎 设备名速查:支持的设备名(BL616)

返回值:A negated errno 值 on failure.

DSI(仅 Ai-M64 支持)

bflb_dsi_init(dev, cfg)

Initialize DSI controller with 配置

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_deinit(dev)

Deinitialize DSI controller

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_phy_reset(dev)

Reset DSI PHY

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_phy_enable(dev)

Enable DSI PHY

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_phy_config(dev, phy)

Configure DSI PHY timing parameters

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_phy_enable_lanes(dev, lanes_mask)

Enable specified DSI lanes

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_phy_disable_lanes(dev, lanes_mask)

Disable specified DSI lanes

📎 设备名速查:支持的设备名(BL616)

返回值:无

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_get_lanes_state(dev, lane, state)

Get DSI lane state

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_phy_data_lane0_turnaround(dev)

Perform 数据 lane 0 turnaround

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_phy_hs_mode_start(dev)

Start high speed 模式 transmission

📎 设备名速查:支持的设备名(BL616)

返回值:无

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_int_mask(dev, int_mask, mask)

Mask or unmask DSI interrupts

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_int_clear(dev, int_flag)

Clear DSI 中断 标志

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_int_enable(dev, int_type)

Enable DSI interrupts

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dsi_int_get(dev)

Get DSI 中断 状态

📎 设备名速查:支持的设备名(BL616)

返回值:Current 中断 状态 标志 (BFLB_DSI_INT_* values)

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_fifo_config(dev, fifo_cfg)

Configure DSI FIFO settings

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

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_set_vsa_vfp(dev, vsa, vfp)

Set DSI VSA and VFP timing

📎 设备名速查:支持的设备名(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_deinit(dev)

反初始化 dvp raster。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dvp_raster_enable(dev)

使能 dvp raster。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dvp_raster_disable(dev)

关闭 dvp raster。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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_get_intstatus(dev)

获取 dvp raster 中断 状态。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:中断 状态

bflb_dvp_raster_int_clear(dev)

清除 dvp raster 中断 状态。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dvp_raster_crop_vsync(dev, start_line, end_line)

Crop vsync.

参数

  • dev:设备句柄
  • start_line:start line of window
  • end_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 line
  • end_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_CMD
  • arg:用户数据

📎 设备名速查:支持的设备名(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_enable(dev)

使能 osd blend。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_osd_blend_disable(dev)

关闭 osd blend。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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 alpha
  • value:值 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 alpha
  • rv:值 of global R or V
  • gy:值 of global G or Y
  • bu:值 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 color
  • value:值 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 function
  • replace: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 function
  • replace_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_LAYER
  • config: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_LAYER
  • coor: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_get_intstatus(dev)

获取 osd 中断 状态。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:中断 状态

bflb_osd_int_clear(dev)

清除 osd 中断 状态。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_osd_feature_control(dev, cmd, arg)

Control osd feature.

参数

  • dev:设备句柄
  • cmd:feature command, 使用 OSD_CMD
  • arg:用户数据

📎 设备名速查:支持的设备名(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_deinit(dev)

反初始化 dma2d 通道。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dma2d_channel_start(dev)

启动 dma2d 通道 transfer。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dma2d_channel_stop(dev)

停止 dma2d 通道 transfer。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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 information
  • mode: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_MODE
  • value:color 密钥 值
  • mask:color 密钥 mask, 使用 DMA2D_COLOR_KEY_MASK

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_dma2d_feature_control(dev, cmd, arg)

Control dma2d feature.

参数

  • dev:设备句柄
  • cmd:feature command, 使用 DMA2D_CMD
  • arg:用户数据

📎 设备名速查:支持的设备名(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_zag
  • uv: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_start(dev)

Start mjdec dec-compression

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_mjdec_stop(dev)

Stop mjdec dec-compression

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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_get_intstatus(dev)

获取 mjdec 中断 状态。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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 command
  • arg:用户数据

📎 设备名速查:支持的设备名(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_deinit(dev)

Deinitialize 触摸 V2

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_enable(dev)

Enable 触摸 V2 module

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_disable(dev)

Disable 触摸 V2 module

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_scan_start(dev)

Start 触摸 V2 scanning

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_scan_stop(dev)

Stop 触摸 V2 scanning

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_reset(dev)

Perform software reset

📎 设备名速查:支持的设备名(BL616)

返回值:无

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_latch_force_data(dev)

Latch force 数据 to LTA 数据

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_get_channel_data(dev, channel, data)

Get 通道 数据

📎 设备名速查:支持的设备名(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_set_tx_channel(dev, channels)

Set TX 通道 enable mask

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_set_rx_channel(dev, channels)

Set RX 通道 enable mask

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_get_int_status(dev)

Get 中断 状态

📎 设备名速查:支持的设备名(BL616)

返回值:中断 状态 bitmap

bflb_touch_v2_clear_int(dev, int_mask)

Clear 中断 状态

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_touch_v2_set_int_mask(dev, int_mask)

Set 中断 mask

📎 设备名速查:支持的设备名(BL616)

返回值:无

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 头文件

bflb_pec_fifo_get_deepth_tx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_get_deepth_rx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_get_level_tx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_get_level_rx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_clr_tx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_fifo_clr_rx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_fifo_is_rdy_tx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_is_rdy_rx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_get_addr_tx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_get_addr_rx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_write(dev, value)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_fifo_read(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_write_multi_32bits(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_write_multi_16bits(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_write_multi_8bits(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_write_multi_32bits_blocking(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_fifo_write_multi_16bits_blocking(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_fifo_write_multi_8bits_blocking(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_fifo_read_multi_32bits(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_read_multi_16bits(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_read_multi_8bits(dev, data, len)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_fifo_set_threshold_tx(dev, threshold)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_fifo_set_threshold_rx(dev, threshold)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_dma_enable_tx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_dma_enable_rx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_dma_disable_tx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_dma_disable_rx(dev)

low level API

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_pwm_init(dev, pwm)

PWM

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_pwm_deinit(dev)

PWM

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_pwm_start(dev, high_cnt, low_cnt)

PWM

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_pwm_stop(dev)

PWM

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_uart_tx_init(dev, uart)

UART_TX

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_uart_tx_deinit(dev)

UART_TX

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_uart_rx_init(dev, uart)

UART_RX

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_uart_rx_deinit(dev)

UART_RX

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_uart_rx_start(dev)

UART_RX

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_uart_rx_stop(dev)

UART_RX

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_ir_nec_init(dev, ir)

IR_NEC

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_ir_nec_set_timing(dev, nec_timing)

IR_NEC

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_ir_nec_send(dev, data, bits)

IR_NEC

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_ir_nec_is_busy(dev)

IR_NEC

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_ir_rc5_init(dev, ir)

IR_NEC

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_ir_rc5_set_timing(dev, rc5_timing)

IR_NEC

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_ir_rc5_send(dev, data, bits)

IR_NEC

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_ir_rc5_is_busy(dev)

IR_NEC

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_spi_init(dev, spi)

SPI

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_spi_set_bits(dev, bits)

SPI

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_i2c_init(dev, i2c)

I2C

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_i2c_set_timing(dev, timing)

I2C

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_i2c_is_busy(dev)

I2C

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_i2c_get_err(dev)

I2C

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_i2c_clear_err(dev)

I2C

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_i2c_write(dev, data)

I2C

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_i2c_read(dev, data)

I2C

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_dpi_init(dev, dpi)

DPI

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_dpi_deinit(dev)

DPI

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_srgb_init(dev, srgb)

sRGB

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_srgb_deinit(dev)

sRGB

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_dvp_cam_init(dev, cam)

DVP_CAM

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_dvp_cam_start(dev)

DVP_CAM

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_dvp_cam_stop(dev)

DVP_CAM

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_qspi_cam_init(dev, cam)

QSPI_CAM

📎 设备名速查:支持的设备名(BL616)

返回值:见 SDK 头文件

bflb_pec_qspi_cam_start(dev, cam)

QSPI_CAM

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_pec_qspi_cam_stop(dev, cam)

QSPI_CAM

📎 设备名速查:支持的设备名(BL616)

返回值:无

I2S 音频

bflb_i2s_init(dev, config)

初始化 I2S 音频。

参数

  • dev:设备句柄
  • config:pointer to save I2S 音频 配置

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_i2s_deinit(dev)

反初始化 I2S 音频。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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_CMD
  • arg:用户数据

📎 设备名速查:支持的设备名(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_RATE
  • input_mode:音频采集 模式, 使用 AUADC_INPUT_MODE
  • data_format:音频采集 fifo 数据 format, 使用 AUADC_DATA_FORMAT
  • fifo_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 false
  • adc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODE
  • adc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODE
  • adc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3db
  • adc_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 false
  • adc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODE
  • adc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODE
  • adc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3db
  • adc_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 false
  • adc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODE
  • adc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODE
  • adc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3db
  • adc_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 false
  • adc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODE
  • adc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODE
  • adc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3db
  • adc_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 false
  • adc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODE
  • adc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODE
  • adc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3db
  • adc_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 false
  • adc_mode:音频采集 ADC work pattern, 使用 AUADC_ADC_MODE
  • adc_pga_mode:音频采集 ADC PGA 模式, 使用 AUADC_ADC_PGA_MODE
  • adc_pga_posi_ch:音频采集 ADC positive 通道 selection, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_nega_ch:音频采集 ADC negative 通道 selection, This 通道 is valid only when adc_pga_mode is differential, 使用 AUADC_ADC_ANALOG_CH
  • adc_pga_gain:音频采集 ADC PGA Gain control, 6dB ~ 42dB, step by 3db
  • adc_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_RATE
  • output_mode:音频 DAC 模式, 使用 AUDAC_OUTPUT_MODE
  • source_channels_num:音频 DAC source 通道 num, 使用 AUDAC_SOURCE_CHANNEL
  • mixer_mode:音频 DAC mixer 模式, valid only in AUDAC_SOURCE_CHANNEL_DUAL 模式, 使用 AUDAC_MIXER_MODE
  • data_format:音频 DAC 音频 DAC 数据 format, 使用 AUDAC_DATA_FORMAT
  • fifo_threshold:音频 DAC tx fifo threshold, 0 ~ 7
  • dma_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 false
  • mute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • mute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • volume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODE
  • volume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATE
  • volume_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 false
  • mute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • mute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • volume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODE
  • volume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATE
  • volume_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 false
  • mute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • mute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • volume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODE
  • volume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATE
  • volume_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 false
  • mute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • mute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • volume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODE
  • volume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATE
  • volume_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 false
  • mute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • mute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • volume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODE
  • volume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATE
  • volume_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 false
  • mute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • mute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • volume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODE
  • volume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATE
  • volume_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 false
  • mute_up_ramp_rate:音频 DAC mute up ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • mute_down_ramp_rate:音频 DAC mute down ramp rate, valid when mute_ramp_en is true, 使用 AUDAC_RAMP_RATE
  • volume_update_mode:音频 DAC 卷 update 模式, 使用 AUDAC_VOLUME_UPDATE_MODE
  • volume_ramp_rate:音频 DAC 卷 ramp rate, valid when volume_update_mode is not AUDAC_VOLUME_UPDATE_MODE_FORCE, 使用 AUDAC_RAMP_RATE
  • volume_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_start(dev)

使能摄像头。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_cam_stop(dev)

关闭摄像头。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_cam_int_mask(dev, int_type, mask)

Mask or unmask 摄像头 中断.

参数

  • dev:设备句柄
  • int_type:摄像头 中断 mask type, 使用 CAM_INTMASK
  • mask: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 window
  • end_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 line
  • end_pixel:end pixel of each line, not include

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_cam_pop_one_frame(dev)

Pop one frame.

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_cam_get_frame_count(dev)

获取 frame count。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:Frame count

bflb_cam_get_frame_info(dev, pic)

获取 frame information。

参数

  • dev:设备句柄
  • pic:pointer to frame start 地址

📎 设备名速查:支持的设备名(BL616)

返回值:Size of frame

bflb_cam_get_intstatus(dev)

获取中断 状态。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:中断 状态

bflb_cam_feature_control(dev, cmd, arg)

Control 摄像头 feature.

参数

  • dev:设备句柄
  • cmd:feature command
  • arg:用户数据

📎 设备名速查:支持的设备名(BL616)

返回值:A negated errno 值 on failure

MJPEG 编码

bflb_mjpeg_init(dev, config)

初始化 MJPEG。

参数

  • dev:设备句柄
  • config:pointer to save MJPEG 配置

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_mjpeg_start(dev)

启动 MJPEG compression with camera。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_mjpeg_stop(dev)

停止 MJPEG compression with camera。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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_get_intstatus(dev)

获取 MJPEG 中断 状态。

参数

  • dev:设备句柄

📎 设备名速查:支持的设备名(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_pop_swap_block(dev)

Drop swap current block.

参数

  • 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 quality
  • input_table:pointer to save input table
  • output_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 table
  • input_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 header
  • header_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 yy
  • uv:camera id for uv

📎 设备名速查:支持的设备名(BL616)

返回值:无

bflb_mjpeg_feature_control(dev, cmd, arg)

Control MJPEG feature.

参数

  • dev:设备句柄
  • cmd:feature command
  • arg:用户数据

📎 设备名速查:支持的设备名(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 缓冲区 0
  • input_buf1:input 缓冲区 1
  • output_buff:output 缓冲区
  • output_buff_size:size of output 缓冲区

📎 设备名速查:支持的设备名(BL616)

返回值:A negated errno 值 on failure.

遇到问题?

如有其他问题,请到统一的提问与讨论区:Ai-Thinker Discussions

Released under the MIT License. Build Time 2026-09-11 14:52:23