常见的一些参数配置在app_ibrt_customif_ui.cpp中,比如双耳使用相同地址,是否根据rssi信号切换主从,主从回连周期,超距回连等等基本设定。
services\app_ibrt\src\app_ibrt_customif_ui.cpp
services\app_ibrt\inc\app_ibrt_customif_ui.h
/*
* custom config main function
*/
int app_ibrt_customif_ui_start(void)
{
ibrt_ui_config_t config;
// zero init the config
memset(&config, 0, sizeof(ibrt_ui_config_t));
//freeman mode config, default should be false
config.freeman_enable = false;
//tws earphone set the same addr, UI will be flexible, default should be true
config.tws_use_same_addr = true;
//ibrt slave will reconnect to mobile if tws connect failed, default should be true
config.slave_reconnect_enable = true;
//do tws switch when wearup or weardown, must be true because MIC will be with IBRT master
config.wear_updown_tws_switch_enable = true;