![]() |
PDK API Guide for J721E
|
Basic UART Parameters.
Data Fields | |
| UART_Mode | readMode |
| UART_Mode | writeMode |
| uint32_t | readTimeout |
| uint32_t | writeTimeout |
| UART_Callback | readCallback |
| UART_Callback | writeCallback |
| UART_ReturnMode | readReturnMode |
| UART_DataMode | readDataMode |
| UART_DataMode | writeDataMode |
| UART_Echo | readEcho |
| uint32_t | baudRate |
| UART_LEN | dataLength |
| UART_STOP | stopBits |
| UART_PAR | parityType |
| UART_Callback2 | readCallback2 |
| UART_Callback2 | writeCallback2 |
| UART_FC_TYPE | flowControlType |
| uint8_t | hwFlowControlThr |
| uint32_t | procChrTimeoutInt |
| uint16_t | timeoutIntrVal |
| uint32_t | timeoutBehavior |
| UART_Mode UART_Params::readMode |
Mode for all read calls
| UART_Mode UART_Params::writeMode |
Mode for all write calls
| uint32_t UART_Params::readTimeout |
Timeout for read semaphore
| uint32_t UART_Params::writeTimeout |
Timeout for write semaphore
| UART_Callback UART_Params::readCallback |
Pointer to read callback
| UART_Callback UART_Params::writeCallback |
Pointer to write callback
| UART_ReturnMode UART_Params::readReturnMode |
Receive return mode
| UART_DataMode UART_Params::readDataMode |
Type of data being read
| UART_DataMode UART_Params::writeDataMode |
Type of data being written
| UART_Echo UART_Params::readEcho |
Echo received data back
| uint32_t UART_Params::baudRate |
Baud rate for UART
| UART_LEN UART_Params::dataLength |
Data length for UART
| UART_STOP UART_Params::stopBits |
Stop bits for UART
| UART_PAR UART_Params::parityType |
Parity bit type for UART
| UART_Callback2 UART_Params::readCallback2 |
Pointer to read callback2
| UART_Callback2 UART_Params::writeCallback2 |
Pointer to write callback2
| UART_FC_TYPE UART_Params::flowControlType |
Flow Control type
| uint8_t UART_Params::hwFlowControlThr |
Hardware flow Control threshold, 0-0x100
| uint32_t UART_Params::procChrTimeoutInt |
Process Char Timeout Interrupt. Should be set to 1 is timeout interrupt needs to be processed. 0 otherwise.
| uint16_t UART_Params::timeoutIntrVal |
timeout before the timeout interrupt is triggered.
| uint32_t UART_Params::timeoutBehavior |
Behavior to be set in the TIMEOUT_BEHAVE field. Can take the following values: UART_TIMEOUT_COUNTER_RESET: Reset counter on any activity on RX lines. UART_TIMEOUT_COUNTER_NO_CHANGE: Do not reset counter on any activity on RX lines.