Lines Matching +full:command +full:- +full:length
5 * SPDX-License-Identifier: Apache-2.0
41 /* HCI Command packet from Host to Controller */
44 /* Length of UPDATE BAUD RATE command */
62 * This function executes vendor-specific commands sequence to
64 * bt_h4_vnd_setup function must be implemented in vendor-specific HCI
81 /* Re-configure UART */ in bt_hci_uart_set_baudrate()
98 * - To speed up application downloading, the MCU host commands the CYWxxx device in bt_update_controller_baudrate()
100 * UPDATE_BAUDRATE command: in bt_update_controller_baudrate()
102 * In the above command, the xx xx xx xx bytes specify the 32-bit little-endian in bt_update_controller_baudrate()
105 * The following response to the UPDATE_BAUDRATE command is expected within 100 ms: in bt_update_controller_baudrate()
107 * - The host switches to the new baud rate after receiving the response at the old in bt_update_controller_baudrate()
122 /* Allocate buffer for update uart baudrate command. in bt_update_controller_baudrate()
128 LOG_ERR("Unable to allocate command buffer"); in bt_update_controller_baudrate()
129 return -ENOMEM; in bt_update_controller_baudrate()
135 /* Send update uart baudrate command. */ in bt_update_controller_baudrate()
141 /* Re-configure Uart baudrate */ in bt_update_controller_baudrate()
159 /* Send hci_download_minidriver command */ in bt_firmware_download()
166 * command + a block of the image, followed by a hci_write_ram image at the end. in bt_firmware_download()
167 * Parse and send each individual command and wait for the response. This is to in bt_firmware_download()
171 size_t data_length = data[2]; /* data length from firmware image block */ in bt_firmware_download()
174 /* Allocate buffer for hci_write_ram/hci_launch_ram command. */ in bt_firmware_download()
177 LOG_ERR("Unable to allocate command buffer"); in bt_firmware_download()
184 /* Send hci_write_ram command. */ in bt_firmware_download()
192 /* Update remaining length and data pointer: in bt_firmware_download()
193 * content of data length + 2 bytes of opcode and 1 byte of data length. in bt_firmware_download()
196 remaining_length -= data_length + 3; in bt_firmware_download()
204 return -ENOMEM; in bt_firmware_download()
221 return -EINVAL; in bt_h4_vnd_setup()
230 bt_reg_on.port->name, bt_reg_on.pin); in bt_h4_vnd_setup()
231 return -EIO; in bt_h4_vnd_setup()
238 err, bt_reg_on.port->name, bt_reg_on.pin); in bt_h4_vnd_setup()
260 /* Re-configure baudrate for BT Controller */ in bt_h4_vnd_setup()