2. SDK分析

19 篇文章 2 订阅 ¥9.90 ¥99.00

1. 概述

恒玄bes2700 sdk属于恒玄面向耳机市场的sdk,主要参考《BES_TWS_Software_Development_User_Manual_v1.2.pdf》

SDK由恒玄提供,版本《best1603_ibrt_anc_20240124_207ba3fb90.tar》

2. 文件树结构

- “apps” mainly stores upper-layer application-related software.

- “config” indicates the basic differentiated configuration.

- “Documentations” contains SDK related basic documents.

- “include” mainly contains RTOS header files.

- “lib” indicates BES owned libraries.

- “mbed” indicates mbed configuration files.

- “out” stores the compiled output file, select the “.bin” file when programming.

- “platform” mainly contains Driver codes and CMSIS codes.

- “rtos” indicates RTOS source files.

- “scripts” contains building framework scripts.

- “services” indicates service codes.

- “tests” contains test programs.

- “thirdparty” indicates third-party libraries.

- “utils” contains common utility codes.

- “Makefile” indicates the entry of the Makefile

3. 软件框架

核心

内核

性能

Main MCU

STAR-MC1

32-bit 内核 Armv8-M, Mainline 4.02 CoreMark/MHz

Co-processor

Hifi4 DSP

Co-processor

M55

Cortex-M55内核,基于Armv8.1-M架构

Sensor hub

STAR-MC1

Bluetooth controller

STAR-MC1

4. 数据流

Task name

Description

app_audio_thread

Manages different types of audio streams.

app_thread

Mainly used for the processing messages from the application modules.

af_thread

Processes the audio flinger dma irq events, covering internal codec, i2s, tdm, spdif, bt pcm functionalities. This is audio thread where the audio algorithms are running.

BesbtThread

Used for running all of the classic BT and BLE host layers.

main_thread

The main thread of the SDK.

a2dp_decoder_cc_processor_thread

Communicates with M55 for A2DP music decoding

app_custom_ux_thread

Distributes the TWS UI owned bluetooth events to the custom project for implementing the custom UI.

app_dsp_m55_bridge_rx_thread

Processes the core bridge message between main MCU and m55

app_prompt_handler_thread

Processes the pending prompt playing requests in the queue one by one.

app_core_bridge_rx_thread

Processes the core bridge message between main MCU and sensor hub.

4.1 电话数据流

4.2 音频数据流

  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个页面主要是用来检测用户设备是否支持WebRTC功能,同时展示了一个视频预览的效果。以下是该页面的CSS样式分析: 1. 整体布局: ```css body { margin: 0; padding: 0; } #main { display: flex; justify-content: center; align-items: center; height: 100vh; } ``` 这段CSS代码主要用于设置整个页面的布局。其中,`body`元素的`margin`和`padding`都被设置为`0`,以去除浏览器默认的外边距和内边距。`#main`元素被设置为`display: flex;`,以便使用Flex布局,展示居中的视频预览区域。 2. 视频预览区域: ```css #preview { width: 640px; height: 480px; border: 2px solid #ccc; border-radius: 4px; background-color: #000; } ``` 这段CSS代码用于设置视频预览区域的大小、边框、圆角和背景颜色。其中`width`和`height`属性分别设置为`640px`和`480px`,以展示一个标准的视频预览画面。`border`属性被设置为`2px`的实线边框,`border-radius`属性被设置为`4px`,以使视频预览区域看起来更加圆润。`background-color`属性被设置为黑色,以便在视频预览区域没有内容时显示一个黑色背景。 3. 检测结果区域: ```css #info { margin-top: 20px; font-size: 18px; color: #333; } ``` 这段CSS代码用于设置检测结果区域的样式。其中`margin-top`属性被设置为`20px`,以使检测结果区域与视频预览区域之间留出一定的空隙。`font-size`属性被设置为`18px`,以使文字显示的大小适中。`color`属性被设置为`#333`,以使文字颜色更加清晰易读。 4. 按钮样式: ```css .button { display: inline-block; padding: 10px 20px; margin-top: 20px; font-size: 16px; font-weight: bold; color: #fff; background-color: #1e90ff; border: none; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; } .button:hover { background-color: #187bcd; } ``` 这段CSS代码用于设置按钮的样式。其中`display`属性被设置为`inline-block`,以便让按钮水平排列,同时具有块级元素的特性。`padding`属性被设置为`10px 20px`,以使按钮的内边距适中。`margin-top`属性被设置为`20px`,以使按钮与检测结果区域之间留出一定的空隙。`font-size`属性被设置为`16px`,以使按钮文字显示的大小适中。`font-weight`属性被设置为`bold`,以使按钮文字显示的粗细适中。`color`属性被设置为白色,以使按钮文字颜色与背景色形成对比。`background-color`属性被设置为蓝色,以使按钮颜色鲜明。`border`属性被设置为无边框,以使按钮看起来更加简洁。`border-radius`属性被设置为`4px`,以使按钮的边角更加圆润。`cursor`属性被设置为`pointer`,以使鼠标在按钮上悬停时显示手型光标。`transition`属性被设置为`all 0.2s ease`,以使按钮在鼠标悬停时有一个平滑的过渡效果。`button:hover`选择器用于设置鼠标悬停时按钮的样式,其中`background-color`属性被设置为更深的蓝色,以使按钮看起来更加醒目。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值