连续签到天数:1天 签到总天数:1天 签到总奖励:5金币
马上注册,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 江边的浪花 于 2020-3-18 00:10 编辑
小弟采用ADK_CSR867x.WIN4.3.1.5 做了个Source端,在读取电压的时候遇到了问题:
1. 按我的理解,执行下面的代码:
void power_init(void)
{
uint16 size = 0;
power_config config;
source_power_readonly_values_config_def_t *ps_config = NULL;
/* initialize the power table*/
power_read_tables_entries();
/* Read configuration data */
size = configManagerGetReadOnlyConfig(SOURCE_POWER_READONLY_VALUES_CONFIG_BLK_ID, (const void **)&ps_config);
power_update_power_settings(&config, ps_config);
theSource->powerTask.handler = power_msg_handler;
PowerInit(&theSource->powerTask, &config,NULL);
configManagerReleaseConfig(SOURCE_POWER_READONLY_VALUES_CONFIG_BLK_ID);
}
就会得到 POWER_INIT_CFM 的消息。现在程序通过debug发现没有得到这个消息,仿佛没有执行power_init 函数一样。 求大神指点迷津。
通过debug调试,Source_Power这个文件debug只有一个字符串返回,后面都没有了。
求大神指点迷津。debug输出数据:
STATE: new state [Initialising]
STATE:+++++++++
Power: No sniff
STATE: new state [Idle]
STATE: IDLE delay before next connection:[0 secs]
STATE: new state [Inquiring]
另求大神解答:SOURCE_POWER_READONLY_VALUES_CONFIG_BLK_ID 这个值得数据存在哪里?可以通过pstool看见吗?
#define SOURCE_POWER_READONLY_VALUES_CONFIG_BLK_ID 210
楼主热帖