SWRA751 September   2022

 

  1.   Introduction
  2.   Trademarks
  3. 1Command Packet
  4. 2Event Packet
  5. 3HCI Commands
    1. 3.1 HCI Commands List Format
    2. 3.2 Support HCI Commands Detailed Description
      1. 3.2.1  HCI_VS_Write_BD_Addr (0xFC06)
      2. 3.2.2  HCI_VS_Write_CODEC_Config (0xFD06)
      3. 3.2.3  HCI_VS_Write_CODEC_Config_Enhanced (0xFD07)
      4. 3.2.4  HCI_VS_DRP_Read_BER_Meter_Result (0xFD13)
      5. 3.2.5  HCI_VS_DRPb_Tester_Con_RX (0xFD17)
      6. 3.2.6  HCI_VS_LE_Enable (0xFD5B)
      7. 3.2.7  HCI_VS_Set_LE_Test_Mode_Parameters (0xFD77)
      8. 3.2.8  HCI_VS_DRPb_Enable_RF_Calibration (0xFD80)
      9. 3.2.9  HCI_VS_DRPb_Tester_Con_TX (0xFD84)
      10. 3.2.10 HCI_VS_DRPb_Tester_Packet_TX_RX (0xFD85)
      11. 3.2.11 HCI_VS_DRPb_Reset (0xFD88)
      12. 3.2.12 HCI_VS_DRPb_BER_Meter_Start (0xFD8B)
      13. 3.2.13 HCI VS LE Read Ber Test Results (0xFDAE)
      14. 3.2.14 HCI_VS_Read_RSSI (0xFDFC)
      15. 3.2.15 HCI_VS_Write_SCO_Configuration (0xFE10)
      16. 3.2.16 HCI_VS_Set_Pcm_Loopback_Enable (0xFE28)
      17. 3.2.17 HCI_VS_Read_Hardware_Register (0xFF00)
      18. 3.2.18 HCI_VS_Write_Hardware_Register (0xFF01)
      19. 3.2.19 HCI_VS_Update_UART_HCI_Baudrate (0xFF36)
      20. 3.2.20 HCI_VS_Set_Supported_Features (0xFF26)
      21. 3.2.21 HCI_VS_HCILL_Parameters (0xFD2B)
      22. 3.2.22 HCI_VS_Sleep_Mode_Configurations (0xFD0C)
      23. 3.2.23 HCI_VS_Get_System_Status (0xFE1F)
      24. 3.2.24 HCI_VS_Read_Patch_Version (0xFF22)
      25. 3.2.25 HCI_VS_DRPb_Set_Power_Vector (0xFD82)
      26. 3.2.26 HCI_VS_DRPb_Set_Class2_Single_Power (0xFD87)
      27. 3.2.27 HCI_VS_LE_Output_Power (0xFDDD)
      28. 3.2.28 HCI_VS_A3DP_Codec_Configuration (0xFD8E)
      29. 3.2.29 HCI_VS_AVPR_Enable (0xFD92)
      30. 3.2.30 HCI_VS_A3DP_Open_Stream (0xFD8C)
      31. 3.2.31 HCI_VS_A3DP_Close_Stream (0xFD8D)
      32. 3.2.32 HCI_VS_A3DP_Start_Stream (0xFD8F)
      33. 3.2.33 HCI_VS_A3DP_Stop_Stream (0xFD90)
      34. 3.2.34 HCI_VS_A3DP_Sink_Codec_Configuration (0xFD9C)
      35. 3.2.35 HCI_VS_A3DP_Sink_Open_Stream (0xFD9A)
      36. 3.2.36 HCI_VS_A3DP_Sink_Close_Stream (0xFD9B)
      37. 3.2.37 HCI_VS_A3DP_Sink_Start_Stream (0xFD9D)
      38. 3.2.38 HCI_VS_A3DP_Sink_Stop_Stream (0xFD9E)
      39. 3.2.39 HCI_VS_WBS_Associate (0xFD78)
      40. 3.2.40 HCI_VS_WBS_Disassociate (0xFD79)
  6. 4General Hardware Errors
  7. 5Revision History

HCI_VS_Write_CODEC_Config_Enhanced (0xFD07)

Description:

This command configures enhanced configuration of the codec interface. This command is optional and cannot be used when all default parameters are acceptable. When this command is used, it must come after HCI_VS_Write_CODEC_Config.

Table 3-7 Command Parameters HCI_VS_Write_CODEC_Config_Enhanced (0xFD07) Clock shutdown, Clock start, Clock stop, Reserved, Channel 1 data in order, Channel 1 data out order, Channel 1 data out mode, Channel 1 data out duplication, Channel 1 TX_dup_value, Channel 1 data quant, Reserved, Channel 2 data in order, Channel 2 data out order, Channel 2 data out mode, Channel 2 data out duplication, Channel 2 TX_dup_value, Channel 2 data quant, Reserved
Command Parameter Size Value Description
Clock shutdown 1

0x00

0x01

PCM clock shutdown feature is disabled.

PCM clock shutdown feature is enabled. Time of start/stop is defined in the following

two fields (used in master mode only).

Clock start 2 0x0000 – 0xFFFF Number of PCM clock cycles relative to the PCM frame sync to start PCM clock (for example, start two clocks before frame sync)
Clock stop 2 0x0000 – 0xFFFF Number of PCM clock cycles relative to the PCM frame sync to stop PCM clock (for example, stop 20 clocks after frame sync)
Reserved 1 0x00 Default: 0x00
Channel 1 data in order 1

Bit 0 = 0

Bit 0 = 1

Bit 1 = 0

Bit 1 = 1

Bit 2 = 0

Bit 2 = 1

Data driven MSB first

Data driven LSB first

Don’t swap bytes within the sample.

Swap bytes within the sample in bit-wise mode when data size > 8 ([XYZ]->[ZYX]).

Do not shift the sample.

Shift the sample by (24|16-dout_size) bits from MSB to LSB (controls sample alignment

inside internal register (23:0) in bit-wise mode only).

Channel 1 data out order 1

Bit 0 = 0

Bit 0 = 1

Bit 1 = 0

Bit 1 = 1

Bit 2 = 0

Bit 2 = 1

Data driven MSB first

Data driven LSB first

Don’t swap bytes within the sample.

Swap bytes within the sample in bit-wise mode when data size > 8 ([XYZ]->[ZYX]).

Do not shift the sample.

Shift the sample by (24|16-dout_size) bits from MSB to LSB (controls sample alignment

inside internal register (23:0) in bit-wise mode only).

Channel 1 data out mode 1

0x00

0x01

0x02

0x03

Always 3-state (input)

Always output

Switch to 3-state (input) when idle

Always 3-state (input)

Channel 1 data out duplication 1

0x00

0x01

Retransmit last sample when no data are available.

0x01 Transmit DUP_VALUE when no data are available.

Channel 1 TX_dup_value 4 0x00000000 – 0x00FFFFFF Replacement value to transmit when no data is available
Channel 1 data quant 1

0x00

0x01

Bit-wise mode. Possible if data in and data out size are up to 24 bits.

Byte-wise mode

Reserved 1
Channel 2 data in order 1

Bit 0 = 0

Bit 0 = 1

Bit 1 = 0

Bit 1 = 1

Bit 2 = 0

Bit 2 = 1

Data driven MSB first

Data driven LSB first

Don’t swap bytes within the sample.

Swap bytes within the sample in bit-wise mode when data size > 8 ([XYZ]->[ZYX]).

Do not shift the sample.

Shift the sample by (24|16-dout_size) bits from MSB to LSB (controls sample alignment

inside internal register (23:0) in bit-wise mode only).

Channel 2 data out order 1

Bit 0 = 0

Bit 0 = 1

Bit 1 = 0

Bit 1 = 1

Bit 2 = 0

Bit 2 = 1

Data driven MSB first

Data driven LSB first

Don’t swap bytes within the sample.

Swap bytes within the sample in bit-wise mode when data size > 8 ([XYZ]->[ZYX]).

Do not shift the sample.

Shift the sample by (24|16-dout_size) bits from MSB to LSB (controls sample alignment

inside internal register (23:0) in bit-wise mode only).

Channel 2 data out mode 1

0x00

0x01

0x02

0x03

Always 3-state (input)

Always output

Switch to 3-state (input) when idle

Always 3-state (input)

Channel 2 data out duplication 1

0x00

0x01

Retransmit last sample when no data are available.

0x01 Transmit DUP_VALUE when no data are available.

Channel 2 TX_dup_value 4 0x00000000 – 0x00FFFFFF Replacement value to transmit when no data is available
Channel 2 data quant 1

0x00

0x01

Bit-wise mode. Possible if data in and data out size are up to 24 bits.

Byte-wise mode

Reserved 1
Table 3-8 Return Parameters
Returned Value Description Size (bytes) Events Generated
0x00
0x01 – 0xFF
Command succeeded.
Command failed.
1 Command Complete