Earbud 系统状态定义<system_state_state_t>:
名称 | 代码(Hex) | 功能 |
system_state_powered_off | 0x2 | 系统关机状态 |
system_state_initialisation | 0x4 | 系统初始化 |
system_state_initialised | 0x8 | 初始化完成 |
system_state_starting_up | 0x10 | 正在启动 |
system_state_limbo | 0x20 |
|
system_state_powering_on | 0x40 |
|
system_state_active | 0x80 |
|
system_state_powering_off | 0x100 |
|
system_state_going_to_sleep | 0x200 |
|
system_state_sleeping | 0x400 |
|
system_state_shutting_down_promptly | 0x800 |
|
Earbud 物理状态<phyState>:
名称 | 代码(Hex) | 功能 |
PHY_STATE_UNKNOWN | 0x00 | The earbud physical state is unknown. This state value will not be reported to clients. |
PHY_STATE_IN_CASE | 0x01 | The earbud is in the case |
PHY_STATE_OUT_OF_EAR | 0x02 |
|
PHY_STATE_OUT_OF_EAR_AT_REST | 0x03 |
|
PHY_STATE_IN_EAR | 0x04 |
|
TWS 主端Goal的定义<tws_topology_primary_goals>文件tws_topoloty_primary_rules.h中,
打印所在函数< TwsTopology_HandleGoalDecision()>
名称 | 代码(Hex) | 功能 |
TWSTOP_PRIMARY_GOAL_FIND_ROLE | 0x0100 |
|
TWSTOP_PRIMARY_GOAL_PAIR_PEER | 0x0101 |
|
TWSTOP_PRIMARY_GOAL_CONNECT_PEER_PROFILES | 0x0102 |
|
TWSTOP_PRIMARY_GOAL_CONNECTABLE_PEER | 0x0103 |
|
TWSTOP_PRIMARY_GOAL_DISCONNECT_PEER_PROFILES | 0x0104 |
|
TWSTOP_PRIMARY_GOAL_RELEASE_PEER | 0x0105 |
|
TWSTOP_PRIMARY_GOAL_NO_ROLE_IDLE | 0x0106 |
|
TWSTOP_PRIMARY_GOAL_CONNECTABLE_HANDSET | 0x0107 |
|
TWSTOP_PRIMARY_GOAL_LE_CONNECTABLE_HANDSET | 0x0108 |
|
TWSTOP_PRIMARY_GOAL_CONNECT_HANDSET | 0x0109 |
|
TWSTOP_PRIMARY_GOAL_DISCONNECT_HANDSET | 0x010A |
|
TWSTOP_PRIMARY_GOAL_BECOME_PRIMARY | 0x010B |
|
TWSTOP_PRIMARY_GOAL_BECOME_ACTING_PRIMARY | 0x010C |
|
TWSTOP_PRIMARY_GOAL_BECOME_SECONDARY | 0x010D |
|
TWSTOP_PRIMARY_GOAL_SET_PRIMARY_ADDRESS | 0x010E |
|
TWSTOP_PRIMARY_GOAL_SET_PRIMARY_ADDRESS_FIND_ROLE | 0x010F |
|
TWSTOP_PRIMARY_GOAL_ROLE_SWITCH_TO_SECONDARY | 0x0110 |
|
TWSTOP_PRIMARY_GOAL_CANCEL_FIND_ROLE | 0x0111 |
|
TWSTOP_PRIMARY_GOAL_PRIMARY_FIND_ROLE | 0x0112 |
|
TWSTOP_PRIMARY_GOAL_DISCONNECT_PEER_FIND_ROLE | 0x0113 |
|
TWSTOP_PRIMARY_GOAL_HANDOVER_START | 0x0114 |
|
TWSTOP_PRIMARY_GOAL_STATIC_HANDOVER_IN_CASE | 0x0115 |
|
TWSTOP_PRIMARY_GOAL_ALLOW_HANDSET_CONNECT | 0x0116 |
|
TWSTOP_PRIMARY_GOAL_SYSTEM_STOP | 0x0117 |
|
TWSTOP_PRIMARY_START_WATCHDOG | 0x0118 |
|
TWSTOP_PRIMARY_STOP_WATCHDOG | 0x0119 |
|
TWSTOP_PRIMARY_GOAL_NOP | 0x011A |
|
Ble 广播状态<le_adv_mgr_state_t>, 由函数LeAdvertisingManagerSm_SetState()改变,
名称 | 代码(Hex) | 功能 |
le_adv_mgr_state_uninitialised | 0x00 |
|
le_adv_mgr_state_initialised | 0x01 |
|
le_adv_mgr_state_starting | 0x02 |
|
le_adv_mgr_state_started | 0x03 |
|
le_adv_mgr_state_suspending | 0x04 |
|
le_adv_mgr_state_suspended | 0x05 |
|
Ble扫描状态<scanState>,由函数leScanManager_SetState()改变,
名称 | 代码(Hex) | 功能 |
LE_SCAN_MANAGER_STATE_UNINITIALIZED | 0x00 |
|
LE_SCAN_MANAGER_STATE_INITIALIZED | 0x01 |
|
LE_SCAN_MANAGER_STATE_DISABLED | 0x02 |
|
LE_SCAN_MANAGER_STATE_ENABLED | 0x03 |
|
LE_SCAN_MANAGER_STATE_SCANNING | 0x04 |
|
LE_SCAN_MANAGER_STATE_PAUSED | 0x05 |
|
PeerFindRoleState,扫描匹配耳机的状态,<PEER_FIND_ROLE_STATE>,
名称 | 代码(dec) | 说明 |
PEER_FIND_ROLE_STATE_UNINITIALISED | 0 |
|
PEER_FIND_ROLE_STATE_INITIALISED | 1 |
|
PEER_FIND_ROLE_STATE_CHECKING_PEER | 2 |
|
PEER_FIND_ROLE_STATE_DISCOVER | 3 |
|
PEER_FIND_ROLE_STATE_DISCOVER_CONNECTABLE | 4 |
|
PEER_FIND_ROLE_STATE_DISCOVERED_DEVICE | 5 |
|
PEER_FIND_ROLE_STATE_CONNECTING_TO_DISCOVERED | 6 |
|
PEER_FIND_ROLE_STATE_SERVER_AWAITING_ENCRYPTION | 7 |
|
PEER_FIND_ROLE_STATE_SERVER_PREPARING | 8 |
|
PEER_FIND_ROLE_STATE_CLIENT | 9 |
|
PEER_FIND_ROLE_STATE_SERVER | 10 |
|
PEER_FIND_ROLE_STATE_CLIENT_AWAITING_ENCRYPTION | 11 |
|
PEER_FIND_ROLE_STATE_CLIENT_PREPARING | 12 |
|
PEER_FIND_ROLE_STATE_CLIENT_DECIDING | 13 |
|
PEER_FIND_ROLE_STATE_CLIENT_AWAITING_CONFIRM | 14 |
|
PEER_FIND_ROLE_STATE_SERVER_AWAITING_COMPLETION | 15 |
|
PEER_FIND_ROLE_STATE_COMPLETED | 16 |
|
Kymera模块的状态<app_kymera_states>
名称 | 代码 | 说明 |
KYMERA_STATE_IDLE, | 0 | Kymera is idle. |
KYMERA_STATE_A2DP_STARTING_A, | 1 | Starting master A2DP kymera in three steps. |
KYMERA_STATE_A2DP_STARTING_B, | 2 | |
KYMERA_STATE_A2DP_STARTING_C, | 3 | |
KYMERA_STATE_A2DP_STARTING_SLAVE, | 4 | Starting slave A2DP kymera. |
KYMERA_STATE_A2DP_STREAMING, | 5 | Kymera is streaming A2DP locally. |
KYMERA_STATE_A2DP_STREAMING_WITH_FORWARDING, | 6 | Kymera is streaming A2DP locally and forwarding to the slave. |
KYMERA_STATE_SCO_ACTIVE, | 7 | Kymera is streaming SCO locally. |
KYMERA_STATE_SCO_ACTIVE_WITH_FORWARDING, | 8 | Kymera is streaming SCO locally, and may be forwarding |
KYMERA_STATE_SCO_SLAVE_ACTIVE, | 9 | Kymera is receiving forwarded SCO over a link |
KYMERA_STATE_TONE_PLAYING, | 10 | Kymera is playing a tone or a prompt. |
KYMERA_STATE_ANC_TUNING, | 11 | Kymera is performing ANC tuning. |
KYMERA_STATE_ADAPTIVE_ANC_STARTED, | 12 | Kymera is performing Adaptive ANC |
KYMERA_STATE_STANDALONE_LEAKTHROUGH, | 13 | Kymera is running standlone leakthrough Chain |
KYMERA_STATE_MIC_LOOPBACK, | 14 | Kymera is performing a loopback. |
KYMERA_STATE_WIRED_AUDIO_PLAYING, | 15 | Kymera is playing wired audio, could be analog/USB |
KYMERA_STATE_USB_AUDIO_ACTIVE, | 16 | Kymera is performing USB Audio |
KYMERA_STATE_USB_VOICE_ACTIVE | 17 |