6.1.10 HCI VND UART Parameter Configuration
Command | OCF | Sub-op code | Command Parameters | Return Parameters |
---|---|---|---|---|
HCI_VND_UART_Parameter_Configuration | 0x0000 | 0x09 | 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
Value | Parameter Description |
---|---|
0x00 | Baud rate = 921600 |
0x01 | Baud rate = 46080 |
0x02 | Baud rate = 23040 |
0x03 | Baud rate = 115200 (default) |
0x04 | Baud rate = 57600 |
0x05 | Baud rate = 38400 |
0x06 | Baud rate = 28800 |
0x07 | Baud rate = 19200 |
0x08 | Baud rate = 14400 |
0x09 | Baud rate = 9600 |
0x0A | Baud rate = 4800 |
0x0B | Baud rate = 2400 |
Stop_Bit: Size: 1 octet
Value | Parameter Description |
---|---|
0x00 | Stop bit = 1 (default) |
0x01 | Stop bit = 2 |
Parity_Mode: Size: 1 octet
Value | Parameter Description |
---|---|
0x00 | Parity mode = odd (default) |
0x02 | Parity mode = even |
Parity_Check: Size: 1 octet
Value | Parameter Description |
---|---|
0x00 | Parity check disable (default) |
0x01 | Parity check enable |
Flow_Control: Size: 1 octet
Value | Parameter Description |
---|---|
0x00 | Flow control disable (default) |
0x01 | Flow control enable |
Return parameters:
Status: Size: 1 octet
Value | Parameter Description |
---|---|
0x00 | HCI_UART_Parameter_Configuration command succeeded |
0x01 to 0xFF | HCI_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.