D | btp.c | 56 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index, 58 static void tester_rsp_with_index(uint8_t service, uint8_t opcode, uint8_t index, 61 void tester_register_command_handlers(uint8_t service, in tester_register_command_handlers() argument 65 __ASSERT_NO_MSG(service <= BTP_SERVICE_ID_MAX); in tester_register_command_handlers() 66 __ASSERT_NO_MSG(service_handler[service].handlers == NULL); in tester_register_command_handlers() 68 service_handler[service].handlers = handlers; in tester_register_command_handlers() 69 service_handler[service].num = num; in tester_register_command_handlers() 72 static const struct btp_handler *find_btp_handler(uint8_t service, uint8_t opcode) in find_btp_handler() argument 74 if ((service > BTP_SERVICE_ID_MAX) || in find_btp_handler() 75 (service_handler[service].handlers == NULL)) { in find_btp_handler() [all …]
|