Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 49) sorted by relevance

12

/btstack/src/classic/
H A Davrcp_browsing_controller.c55 uint8_t command[100]; in avrcp_browsing_controller_send_get_folder_items_cmd() local
59command[pos++] = (connection->transaction_label << 4) | (AVRCP_SINGLE_PACKET << 2) | (AVRCP_COMMAN… in avrcp_browsing_controller_send_get_folder_items_cmd()
61 command[pos++] = BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL >> 8; in avrcp_browsing_controller_send_get_folder_items_cmd()
62 command[pos++] = BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL & 0x00FF; in avrcp_browsing_controller_send_get_folder_items_cmd()
63 command[pos++] = AVRCP_PDU_ID_GET_FOLDER_ITEMS; in avrcp_browsing_controller_send_get_folder_items_cmd()
80 big_endian_store_16(command, pos, 9 + 1 + (attribute_count*4)); in avrcp_browsing_controller_send_get_folder_items_cmd()
83 command[pos++] = connection->scope; in avrcp_browsing_controller_send_get_folder_items_cmd()
84 big_endian_store_32(command, pos, connection->start_item); in avrcp_browsing_controller_send_get_folder_items_cmd()
86 big_endian_store_32(command, pos, connection->end_item); in avrcp_browsing_controller_send_get_folder_items_cmd()
88 command[pos++] = attribute_count; in avrcp_browsing_controller_send_get_folder_items_cmd()
[all …]
H A Davdtp_acceptor.c52 uint8_t command[2]; in avdtp_acceptor_send_accept_response() local
53 command[0] = avdtp_header(transaction_label, AVDTP_SINGLE_PACKET, AVDTP_RESPONSE_ACCEPT_MSG); in avdtp_acceptor_send_accept_response()
54 command[1] = (uint8_t)identifier; in avdtp_acceptor_send_accept_response()
55 return l2cap_send(cid, command, sizeof(command)); in avdtp_acceptor_send_accept_response()
60 if ((signaling_packet->size + size) >= sizeof(signaling_packet->command)) { in avdtp_acceptor_process_chunk()
66 (void)memcpy(signaling_packet->command + signaling_packet->size, packet, size); in avdtp_acceptor_process_chunk()
109 sep.seid = connection->acceptor_signaling_packet.command[offset++] >> 2; in avdtp_acceptor_handle_configuration_command()
110 …al_identifier, &sep.configuration, connection->acceptor_signaling_packet.command+offset, packet_si… in avdtp_acceptor_handle_configuration_command()
344 …al_identifier, &sep.configuration, connection->acceptor_signaling_packet.command+offset, packet_si… in avdtp_acceptor_stream_config_subsm()
479 uint8_t command[2+2*AVDTP_MAX_NUM_SEPS]; in avdtp_acceptor_send_seps_response() local
[all …]
H A Davdtp_initiator.c53 uint8_t command[2]; in avdtp_initiator_send_signaling_cmd() local
54 command[0] = avdtp_header(transaction_label, AVDTP_SINGLE_PACKET, AVDTP_CMD_MSG); in avdtp_initiator_send_signaling_cmd()
55 command[1] = (uint8_t)identifier; in avdtp_initiator_send_signaling_cmd()
56 return l2cap_send(cid, command, sizeof(command)); in avdtp_initiator_send_signaling_cmd()
60 uint8_t command[3]; in avdtp_initiator_send_signaling_cmd_with_seid() local
61 command[0] = avdtp_header(transaction_label, AVDTP_SINGLE_PACKET, AVDTP_CMD_MSG); in avdtp_initiator_send_signaling_cmd_with_seid()
62 command[1] = (uint8_t)identifier; in avdtp_initiator_send_signaling_cmd_with_seid()
63 command[2] = sep_id << 2; in avdtp_initiator_send_signaling_cmd_with_seid()
64 return l2cap_send(cid, command, sizeof(command)); in avdtp_initiator_send_signaling_cmd_with_seid()
68 uint8_t command[5]; in avdtp_initiator_send_signaling_cmd_delay_report() local
[all …]
H A Dhfp_ag.c593 if (hfp_connection->command == HFP_CMD_AVAILABLE_CODECS){ in codecs_exchange_state_machine()
615 switch (hfp_connection->command){ in codecs_exchange_state_machine()
697 switch(hfp_connection->command){ in hfp_ag_run_for_context_service_level_connection()
790 …_CMD_RETRIEVE_AG_INDICATORS more. command %u, next seg %u", hfp_connection->command, next_segment); in hfp_ag_run_for_context_service_level_connection()
1118 switch(hfp_connection->command){ in hfp_ag_run_for_context_service_level_connection_queries()
2142 hfp_connection->command = HFP_CMD_NONE; in hfp_ag_send_commands()
2166 hfp_connection->command = HFP_CMD_NONE; in hfp_ag_send_commands()
2191 hfp_connection->command = HFP_CMD_NONE; in hfp_ag_send_commands()
2206 hfp_connection->command = HFP_CMD_NONE; in hfp_ag_send_commands()
2212 hfp_connection->command = HFP_CMD_NONE; in hfp_ag_send_commands()
[all …]
H A Dhfp.c279 int send_str_over_rfcomm(uint16_t cid, const char * command){ in send_str_over_rfcomm() argument
281 log_info("HFP_TX %s", command); in send_str_over_rfcomm()
282 int err = rfcomm_send(cid, (uint8_t*) command, (uint16_t) strlen(command)); in send_str_over_rfcomm()
288 hfp_emit_string_event(hfp_connection, HFP_SUBEVENT_AT_MESSAGE_SENT, command); in send_str_over_rfcomm()
626 hfp_connection->command = HFP_CMD_NONE; in hfp_reset_context_flags()
1166 const char * command; member
1242 int match = strcmp(text, at_command->command); in hfp_custom_command_lookup()
1274 int match = strcmp(line_buffer, entry->command); in parse_command()
1413 … hfp_connection->command = parse_command((char *)hfp_connection->line_buffer, isHandsFree); in hfp_parse_byte()
1416 if (hfp_connection->command == HFP_CMD_RETRIEVE_AG_INDICATORS_GENERIC){ in hfp_parse_byte()
[all …]
H A Dhfp_hf.c561 if (hfp_connection->command == HFP_CMD_AG_ACTIVATE_VOICE_RECOGNITION){ in hfp_hf_voice_recognition_state_machine()
599 hfp_connection->command = HFP_CMD_NONE; in hfp_hf_voice_recognition_state_machine()
1215 hfp_connection->command = HFP_CMD_NONE; in hfp_hf_switch_on_ok_pending()
1393 switch (hfp_connection->command){ in hfp_hf_handle_rfcomm_command()
1395 hfp_connection->command = HFP_CMD_NONE; in hfp_hf_handle_rfcomm_command()
1399 hfp_connection->command = HFP_CMD_NONE; in hfp_hf_handle_rfcomm_command()
1403 hfp_connection->command = HFP_CMD_NONE; in hfp_hf_handle_rfcomm_command()
1407 hfp_connection->command = HFP_CMD_NONE; in hfp_hf_handle_rfcomm_command()
1413 hfp_connection->command = HFP_CMD_NONE; in hfp_hf_handle_rfcomm_command()
1419 hfp_connection->command = HFP_CMD_NONE; in hfp_hf_handle_rfcomm_command()
[all …]
H A Davrcp_controller.c645 uint8_t command[18]; in avrcp_send_register_notification() local
649command[pos++] = (connection->transaction_id << 4) | (AVRCP_SINGLE_PACKET << 2) | (AVRCP_COMMAND_F… in avrcp_send_register_notification()
651 command[pos++] = BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL >> 8; in avrcp_send_register_notification()
652 command[pos++] = BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL & 0x00FF; in avrcp_send_register_notification()
653 command[pos++] = AVRCP_CTYPE_NOTIFY; in avrcp_send_register_notification()
654 command[pos++] = (AVRCP_SUBUNIT_TYPE_PANEL << 3) | AVRCP_SUBUNIT_ID; in avrcp_send_register_notification()
655 command[pos++] = AVRCP_CMD_OPCODE_VENDOR_DEPENDENT; in avrcp_send_register_notification()
657 big_endian_store_24(command, pos, BT_SIG_COMPANY_ID); in avrcp_send_register_notification()
659 command[pos++] = AVRCP_PDU_ID_REGISTER_NOTIFICATION; in avrcp_send_register_notification()
660 command[pos++] = 0; // reserved(upper 6) | packet_type -> 0 in avrcp_send_register_notification()
[all …]
H A Davdtp_util.c215 memset(signaling_header->command, 0, sizeof(signaling_header->command)); in avdtp_read_signaling_header()
458 memset(signaling_packet->command, 0 , sizeof(signaling_packet->command)); in avdtp_prepare_capabilities()
467 signaling_packet->command[signaling_packet->size++] = signaling_packet->acp_seid << 2; in avdtp_prepare_capabilities()
468 signaling_packet->command[signaling_packet->size++] = signaling_packet->int_seid << 2; in avdtp_prepare_capabilities()
472 signaling_packet->command[signaling_packet->size++] = signaling_packet->acp_seid << 2; in avdtp_prepare_capabilities()
495 signaling_packet->command[signaling_packet->size++] = i; in avdtp_prepare_capabilities()
496 …signaling_packet->size += avdtp_pack_service_capabilities(signaling_packet->command + signaling_pa… in avdtp_prepare_capabilities()
497 …sizeof(signaling_packet->command) - signaling_packet->size, capabilities, (avdtp_service_category_… in avdtp_prepare_capabilities()
536 (void)memcpy(out_buffer + pos, signaling_packet->command + offset, in avdtp_signaling_create_fragment()
H A Dhsp_hs.c203 static int hsp_hs_send_str_over_rfcomm(uint16_t cid, const char * command){ in hsp_hs_send_str_over_rfcomm() argument
205 int err = rfcomm_send(cid, (uint8_t*) command, (uint16_t) strlen(command)); in hsp_hs_send_str_over_rfcomm()
H A Dhsp_ag.c269 static int hsp_ag_send_str_over_rfcomm(const uint16_t cid, const char * command){ in hsp_ag_send_str_over_rfcomm() argument
270 int err = rfcomm_send(cid, (uint8_t*) command, (uint16_t) strlen(command)); in hsp_ag_send_str_over_rfcomm()
H A Dhfp.h574 hfp_command_t command; member
784 const char * command; member
789 int send_str_over_rfcomm(uint16_t cid, const char * command);
/btstack/test/hfp/
H A Dhfp_at_parser_test.cpp117 CHECK_EQUAL(HFP_CMD_OK, context.command); in TEST()
123 CHECK_EQUAL(HFP_CMD_OK, context.command); in TEST()
130 CHECK_EQUAL(HFP_CMD_RETRIEVE_AG_INDICATORS_STATUS, context.command); in TEST()
136 CHECK_EQUAL(HFP_CMD_RETRIEVE_AG_INDICATORS, context.command); in TEST()
152 CHECK_EQUAL(HFP_CMD_OK, context.command); in TEST()
175 CHECK_EQUAL(HFP_CMD_OK, context.command); in TEST()
198 CHECK_EQUAL(HFP_CMD_OK, context.command); in TEST()
207 CHECK_EQUAL(HFP_CMD_SUPPORT_CALL_HOLD_AND_MULTIPARTY_SERVICES, context.command); in TEST()
215 CHECK_EQUAL(HFP_CMD_CALL_HOLD, context.command); in TEST()
223 CHECK_EQUAL(HFP_CMD_OK, context.command); in TEST()
[all …]
/btstack/src/
H A Dl2cap.c188 …dit_based_handle_credit_indication(hci_con_handle_t handle, const uint8_t * command, uint16_t len);
208 …ndler_dispatch(hci_con_handle_t handle, uint16_t signaling_cid, uint8_t * command, uint8_t sig_id);
3227 static void l2cap_signaling_handle_configure_request(l2cap_channel_t *channel, uint8_t *command){ in l2cap_signaling_handle_configure_request() argument
3233 channel->remote_sig_id = command[L2CAP_SIGNALING_COMMAND_SIGID_OFFSET]; in l2cap_signaling_handle_configure_request()
3235 uint16_t flags = little_endian_read_16(command, 6); in l2cap_signaling_handle_configure_request()
3241 uint16_t end_pos = 4 + little_endian_read_16(command, L2CAP_SIGNALING_COMMAND_LENGTH_OFFSET); in l2cap_signaling_handle_configure_request()
3244 uint8_t option_hint = command[pos] >> 7; in l2cap_signaling_handle_configure_request()
3245 uint8_t option_type = command[pos] & 0x7f; in l2cap_signaling_handle_configure_request()
3248 uint8_t length = command[pos++]; in l2cap_signaling_handle_configure_request()
3251 channel->remote_mtu = little_endian_read_16(command, pos); in l2cap_signaling_handle_configure_request()
[all …]
H A Dhci_transport_h4.c599 static void hci_transport_h4_ehcill_schedule_ehcill_command(uint8_t command){ in hci_transport_h4_ehcill_schedule_ehcill_command() argument
601 log_info("eHCILL: schedule eHCILL command %02x", command); in hci_transport_h4_ehcill_schedule_ehcill_command()
603 ehcill_command_to_send = command; in hci_transport_h4_ehcill_schedule_ehcill_command()
718 int command = ehcill_command_to_send; in hci_transport_h4_ehcill_handle_ehcill_command_sent() local
722 log_info("eHCILL: handle eHCILL sent, command was %02x", command); in hci_transport_h4_ehcill_handle_ehcill_command_sent()
725 if (command == EHCILL_GO_TO_SLEEP_ACK) { in hci_transport_h4_ehcill_handle_ehcill_command_sent()
741 if (command != EHCILL_WAKE_UP_IND){ in hci_transport_h4_ehcill_handle_ehcill_command_sent()
/btstack/platform/daemon/binding/python/btstack/
H A Dbtstack_client.py48 def send_hci_command(self, command): argument
51 length = len(command)
53 self.btstack_server_socket.sendall(header + command)
/btstack/chipset/sx128x/SMTC_Drivers/sx1280-driver-c/
H A Dsx1280-hal.c330 void SX1280HalWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX1280HalWriteCommand() argument
337 halTxBuffer[0] = command; in SX1280HalWriteCommand()
344 if( command != RADIO_SET_SLEEP ) in SX1280HalWriteCommand()
350 void SX1280HalReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX1280HalReadCommand() argument
352 halTxBuffer[0] = command; in SX1280HalReadCommand()
/btstack/chipset/
H A DREADME.md37 …throughput, a higher baud rate is necessary, but there's no standard HCI command to change it. Ins…
39 … address. On start, the MAC address needs to be set, but there's no standard HCI command to set it.
41 … to be delivered to the host MCU. Newer Bluetooth standards define a HCI command to configure the …
108 **BD Addr** can be set with vendor-specific command although all chipsets have an official address …
110 **Baud rate** can be set with a custom command.
141command complete event for the last command from the init script was sent. BTstack waits for 10 ms…
143 **BD Addr** can be set with a custom command. A fixed address is provided on some modules, e.g. the…
145 **SCO data** can be configured with a custom command found in the bluez sources. It works with USB …
147command. The baud rate resets during the warm start after uploading the init script. So, the overa…
192 **BD Addr** fixed to 80:EA:CA:00:00:01. No command in HCI firmware to set it differently. Random ad…
[all …]
/btstack/port/max32630-fthr/
H A DREADME.md20 … .bin file to the DAPLINK mass storage drive, or by using OpenOCD on the command line, or from Ecl…
25 Then, go to the port/max32630-fthr folder and run "make" command in terminal to generate example pr…
29 For flashing via the virtual USB drive, the "make release" command will generate .bin file in the b…
/btstack/port/renesas-tb-s1ja-cc256x/template/btstack_example/synergy/ssp/src/driver/r_flash_lp/hw/target/flash_lp_core/
H A Dhw_codeflash_extra.c308 r_flash_command_t command) in HW_FLASH_LP_extra_operation() argument
319 if (FLASH_COMMAND_ACCESSWINDOW == command) in HW_FLASH_LP_extra_operation()
H A Dhw_codeflash_extra.h82 r_flash_command_t command) PLACE_IN_RAM_SECTION;
/btstack/doc/manual/docs-template/
H A Dprotocols.md18 command interface to the Bluetooth chipset.
48 The HCI protocol provides a command interface to the Bluetooth chipset.
59 custom HCI command is explained in the following section.
61 ### Defining custom HCI command templates
63 Each HCI command is assigned a 2-byte OpCode used to uniquely identify
86 In a HCI command packet, the OpCode is followed by parameter total
87 length, and the actual parameters. The OpCode of a command can be
89 struct as a compact format to define HCI command packets, see
93 ~~~~ {#lst:HCIcmdTemplate .c caption="{HCI command struct.}"}
106 command template from library:
[all …]
/btstack/tool/
H A Djava_binding.py254 for command in commands:
255 (command_name, ogf, ocf, format, params) = command
H A Dpython_generator.py232 for command in commands:
233 (command_name, ogf, ocf, format, params) = command
H A Dbtstack_parser.py195 for command in commands:
196 (name, ogf, ocf, format, params) = command
/btstack/port/archive/pic32-harmony/
H A DREADME.md23 The examples can be opened and compiled in Microchip MPLAB X IDE or from the command line using the…

12