Searched refs:line_buffer (Results 1 – 5 of 5) sorted by relevance
/btstack/src/classic/ |
H A D | hfp.c | 224 uint16_t index = btstack_atoi((char *)&hfp_connection->line_buffer[0]); in hfp_parse_indicator_index() 1250 static hfp_command_t parse_command(const char * line_buffer, int isHandsFree){ in parse_command() argument 1253 … hfp_custom_at_command_t * custom_at_command = hfp_custom_command_lookup(isHandsFree, line_buffer); in parse_command() 1274 int match = strcmp(line_buffer, entry->command); in parse_command() 1290 …if ((isHandsFree == 0) && (strncmp(line_buffer, HFP_CALL_PHONE_NUMBER, strlen(HFP_CALL_PHONE_NUMBE… in parse_command() 1295 if ((isHandsFree == 0) && (strncmp(line_buffer, "AT+", 3) == 0)){ in parse_command() 1299 if ((isHandsFree != 0) && (strncmp(line_buffer, "+", 1) == 0)){ in parse_command() 1308 hfp_connection->line_buffer[hfp_connection->line_size++] = byte; in hfp_parser_store_byte() 1309 hfp_connection->line_buffer[hfp_connection->line_size] = 0; in hfp_parser_store_byte() 1359 …e '%c' - state %u, buffer %s\n", byte, hfp_connection->parser_state, hfp_connection->line_buffer); in hfp_parse_byte() [all …]
|
H A D | hfp_hf.c | 163 uint8_t event[10 + sizeof(hfp_connection->bnip_number) + sizeof(hfp_connection->line_buffer)]; in hfp_hf_emit_type_number_alpha() 164 …fp_connection->clip_have_alpha ? (uint16_t) strlen((const char *) hfp_connection->line_buffer) : 0; in hfp_hf_emit_type_number_alpha() 177 memcpy(&event[pos], hfp_connection->line_buffer, alpha_len); in hfp_hf_emit_type_number_alpha() 270 uint8_t * value = &hfp_connection->line_buffer[0]; in hfp_hf_emit_enhanced_voice_recognition_text() 282 btstack_assert(sizeof(hfp_connection->line_buffer) < (255-5)); in hfp_hf_emit_custom_command_event() 284 uint16_t line_len = (uint16_t) strlen((const char*)hfp_connection->line_buffer) + 1; in hfp_hf_emit_custom_command_event() 285 uint8_t event[7 + sizeof(hfp_connection->line_buffer)]; in hfp_hf_emit_custom_command_event() 291 memcpy(&event[7], hfp_connection->line_buffer, line_len); in hfp_hf_emit_custom_command_event() 1400 …ion, HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS, btstack_atoi((char *)&hfp_connection->line_buffer[0])); in hfp_hf_handle_rfcomm_command() 1408 value = btstack_atoi((char*)hfp_connection->line_buffer); in hfp_hf_handle_rfcomm_command() [all …]
|
H A D | hfp_ag.c | 928 btstack_assert(sizeof(hfp_connection->line_buffer) < (255-5)); in hfp_ag_emit_custom_command_event() 930 uint16_t line_len = (uint16_t) strlen((const char*)hfp_connection->line_buffer) + 1; in hfp_ag_emit_custom_command_event() 931 uint8_t event[7 + sizeof(hfp_connection->line_buffer)]; in hfp_ag_emit_custom_command_event() 937 memcpy(&event[7], hfp_connection->line_buffer, line_len); in hfp_ag_emit_custom_command_event() 1885 …andler(HFP_AG_OUTGOING_CALL_INITIATED_BY_HF, 0, 0, (const char *) &hfp_connection->line_buffer[3]); in hfp_ag_call_sm() 1889 …p_connection, HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER, (const char *) &hfp_connection->line_buffer[3]); in hfp_ag_call_sm()
|
H A D | hfp.h | 582 uint8_t line_buffer[HFP_MAX_VR_TEXT_SIZE]; member
|
/btstack/test/hfp/ |
H A D | hfp_at_parser_test.cpp | 73 uint16_t line_len = strlen(reinterpret_cast<const char *>(context.line_buffer)); in hfp_at_parser_test_dump_line_buffer() 74 printf("\nLine buffer: %s\n", context.line_buffer); in hfp_at_parser_test_dump_line_buffer() 75 printf_hexdump(context.line_buffer, line_len); in hfp_at_parser_test_dump_line_buffer() 516 STRCMP_EQUAL("00123456789", (const char *) &context.line_buffer[3]); in TEST() 570 STRCMP_EQUAL("BlueKitchen GmbH", (const char *)context.line_buffer); in TEST() 580 STRCMP_EQUAL("BlueKitchen GmbH", (const char *)context.line_buffer); in TEST() 590 STRCMP_EQUAL("BlueKitchen GmbH", (const char *)context.line_buffer); in TEST() 599 STRCMP_EQUAL("BlueKitchen GmbH", (const char *)context.line_buffer); in TEST() 611 STRCMP_EQUAL("+FOO:1,2,3", (const char *)context.line_buffer); in TEST() 624 STRCMP_EQUAL("AT+FOO:1,2,3", (const char *)context.line_buffer); in TEST() [all …]
|