hci_cmd: add hci_bcm_pcm2_setup

This commit is contained in:
Matthias Ringwald 2023-09-27 14:23:42 +02:00
parent 29540be075
commit d7ae48d520
2 changed files with 33 additions and 0 deletions

View File

@ -2429,6 +2429,37 @@ const hci_cmd_t hci_bcm_enable_wbs = {
// return: status
};
/**
* @brief Configure PCM2, see Cypress AN214937
* @param action
* @param test_options
* @param op_mode
* @param sync_and_clock_options
* @param pcm_clock_freq
* @param sync_signal_width
* @param slot_width
* @param number_of_slots
* @param bank_0_fill_mode
* @param bank_0_number_of_fill_bits
* @param bank_0_programmable_fill_data
* @param bank_1_fill_mode
* @param bank_1_number_of_fill_bits
* @param bank_1_programmable_fill_data
* @param data_justify_and_bit_order_options
* @param ch_0_slot_number
* @param ch_1_slot_number
* @param ch_2_slot_number
* @param ch_3_slot_number
* @param ch_4_slot_number
* @param ch_0_period
* @param ch_1_period
* @param ch_2_period
*
*/
const hci_cmd_t hci_bcm_pcm2_setup = {
HCI_OPCODE_HCI_BCM_PCM2_SETUP, "11114111111111111111111"
};
/**
* @brief Configure SCO Routing (BCM)
* @param sco_routing is 0 for PCM, 1 for Transport, 2 for Codec and 3 for I2S

View File

@ -341,6 +341,7 @@ typedef enum {
HCI_OPCODE_HCI_BCM_SET_SLEEP_MODE = HCI_OPCODE (0x3f, 0x27),
HCI_OPCODE_HCI_BCM_WRITE_I2SPCM_INTERFACE_PARAM = HCI_OPCODE (0x3f, 0x6d),
HCI_OPCODE_HCI_BCM_ENABLE_WBS = HCI_OPCODE(0x3f, 0x7e),
HCI_OPCODE_HCI_BCM_PCM2_SETUP = HCI_OPCODE (0x3f, 0xae),
HCI_OPCODE_HCI_BCM_WRITE_TX_POWER_TABLE = HCI_OPCODE (0x3f, 0x1C9),
HCI_OPCODE_HCI_BCM_SET_TX_PWR = HCI_OPCODE (0x3f, 0x1A5),
@ -603,6 +604,7 @@ extern const hci_cmd_t hci_opcode_hci_le_read_buffer_size_v2;
// Broadcom / Cypress specific HCI commands
extern const hci_cmd_t hci_bcm_enable_wbs;
extern const hci_cmd_t hci_bcm_pcm2_setup;
extern const hci_cmd_t hci_bcm_write_pcm_data_format_param;
extern const hci_cmd_t hci_bcm_set_sleep_mode;
extern const hci_cmd_t hci_bcm_write_i2spcm_interface_param;