Lines Matching refs:hci_cmd_buffer

90 static void chipset_set_baudrate_command(uint32_t baudrate, uint8_t *hci_cmd_buffer){  in chipset_set_baudrate_command()  argument
91 hci_cmd_buffer[0] = 0x18; in chipset_set_baudrate_command()
92 hci_cmd_buffer[1] = 0xfc; in chipset_set_baudrate_command()
93 hci_cmd_buffer[2] = 0x06; in chipset_set_baudrate_command()
94 hci_cmd_buffer[3] = 0x00; in chipset_set_baudrate_command()
95 hci_cmd_buffer[4] = 0x00; in chipset_set_baudrate_command()
96 little_endian_store_32(hci_cmd_buffer, 5, baudrate); in chipset_set_baudrate_command()
100 static void chipset_set_bd_addr_command(bd_addr_t addr, uint8_t *hci_cmd_buffer){ in chipset_set_bd_addr_command() argument
101 hci_cmd_buffer[0] = 0x01; in chipset_set_bd_addr_command()
102 hci_cmd_buffer[1] = 0xfc; in chipset_set_bd_addr_command()
103 hci_cmd_buffer[2] = 0x06; in chipset_set_bd_addr_command()
104 reverse_bd_addr(addr, &hci_cmd_buffer[3]); in chipset_set_bd_addr_command()
129 static btstack_chipset_result_t chipset_next_command(uint8_t * hci_cmd_buffer){ in chipset_next_command() argument
142 memcpy(hci_cmd_buffer, download_command, sizeof(download_command)); in chipset_next_command()
149 size_t bytes_read = fread(hci_cmd_buffer, 1, 3, hcd_file); in chipset_next_command()
163 size_t param_len = hci_cmd_buffer[2]; in chipset_next_command()
165 bytes_read = fread(&hci_cmd_buffer[3], 1, param_len, hcd_file); in chipset_next_command()
175 } while (memcmp(hci_cmd_buffer, download_command, sizeof(download_command)) == 0); in chipset_next_command()
239 static btstack_chipset_result_t chipset_next_command(uint8_t * hci_cmd_buffer){ in chipset_next_command() argument
246 hci_cmd_buffer[0] = 0x2e; in chipset_next_command()
247 hci_cmd_buffer[1] = 0xfc; in chipset_next_command()
248 hci_cmd_buffer[2] = 0x00; in chipset_next_command()
257 memcpy(&hci_cmd_buffer[0], &brcm_patchram_buf[init_script_offset], cmd_len); in chipset_next_command()