更新记录链接:QCC51XX---逻辑链路控制和适配协议( L2CAP)_嵌入式学习_force的博客-CSDN博客
目录
1.SecondaryRules_Init
appInitTable
{SecondaryRules_Init, 0, NULL},
/*! \brief Initialise the secondary rules module. */
bool SecondaryRules_Init(Task init_task)
{
SecondaryRulesTaskData *secondary_rules = SecondaryRulesGetTaskData();
rule_set_init_params_t rule_params;
UNUSED(init_task);
memset(&rule_params, 0, sizeof(rule_params));
rule_params.rules = secondary_rules_set;
rule_params.rules_count = ARRAY_DIM(secondary_rules_set);
rule_params.nop_message_id = CONN_RULES_NOP;
rule_params.event_task = SmGetTask();event task处理rules中对应secondary_rules_set的message
secondary_rules->rule_set = RulesEngine_CreateRuleSet(&rule_param