6.1.10 HCI VND UART Parameter Configuration

CommandOCF

Sub-op

code

Command

Parameters

Return

Parameters

HCI_VND_UART_Parameter_Configuration0x00000x09

Baud_Rate,

[Stop_Bit,

Parity_Mode,

Parity_Check,

Flow_Control]

Status

Description:

The HCI_VND_UART_Parameter_Configuration command is used to configure the UART function. The UART configuration is identical for both the RNBD mode and HCI mode.
Note: Stop_Bit, Parity_Mode, Parity_Check and Flow_Control are optional, when not specified in the parameter, and the system uses the default setting as the following command parameters are described.

This command parameter will be stored to PDS.

Command parameters:

Baud_Rate: Size: 1 octet

ValueParameter Description
0x00Baud rate = 921600
0x01Baud rate = 46080
0x02Baud rate = 23040
0x03Baud rate = 115200 (default)
0x04Baud rate = 57600
0x05Baud rate = 38400
0x06Baud rate = 28800
0x07Baud rate = 19200
0x08Baud rate = 14400
0x09Baud rate = 9600
0x0ABaud rate = 4800
0x0BBaud rate = 2400

Stop_Bit: Size: 1 octet

ValueParameter Description
0x00Stop bit = 1 (default)
0x01Stop bit = 2

Parity_Mode: Size: 1 octet

ValueParameter Description
0x00Parity mode = odd (default)
0x02Parity mode = even

Parity_Check: Size: 1 octet

ValueParameter Description
0x00Parity check disable (default)
0x01Parity check enable

Flow_Control: Size: 1 octet

ValueParameter Description
0x00Flow control disable (default)
0x01Flow control enable

Return parameters:

Status: Size: 1 octet

ValueParameter Description
0x00HCI_UART_Parameter_Configuration command succeeded
0x01 to 0xFFHCI_UART_Parameter_Configuration command failed. See [Vol 1] Part F, Controller Error Codes for a list of error codes and descriptions.

Event(s) generated (unless masked away):

When the HCI_VND_UART_Parameter_Configuration command completes, an HCI_Command_Complete event generates.