Functions | |
void | USART_Mode_Asynchronous (void) |
Function: Function USART_Mode_Asynchronous. | |
void | USART_Mode_Synchronous_Master (void) |
Function: Function USART_Mode_Synchronous_Master. | |
void | USART_Mode_Synchronous_Slave (void) |
Function: Function USART_Mode_Synchronous_Slave. | |
void | USART_Mode_Single_Wire (void) |
Function: Function USART_Mode_Single_Wire. | |
void | USART_Mode_IrDA (void) |
Function: Function USART_Mode_IrDA. | |
void | USART_Data_Bits_5 (void) |
Function: Function USART_Data_Bits_5. | |
void | USART_Data_Bits_6 (void) |
Function: Function USART_Data_Bits_6. | |
void | USART_Data_Bits_7 (void) |
Function: Function USART_Data_Bits_7. | |
void | USART_Data_Bits_8 (void) |
Function: Function USART_Data_Bits_8. | |
void | USART_Data_Bits_9 (void) |
Function: Function USART_Data_Bits_9. | |
void | USART_Parity_None (void) |
Function: Function USART_Parity_None. | |
void | USART_Parity_Even (void) |
Function: Function USART_Parity_Even. | |
void | USART_Parity_Odd (void) |
Function: Function USART_Parity_Odd. | |
void | USART_Stop_Bits_1 (void) |
Function: Function USART_Stop_Bits_1. | |
void | USART_Stop_Bits_2 (void) |
Function: Function USART_Stop_Bits_2. | |
void | USART_Stop_Bits_1_5 (void) |
Function: Function USART_Stop_Bits_1_5. | |
void | USART_Stop_Bits_0_5 (void) |
Function: Function USART_Stop_Bits_0_5. | |
void | USART_Flow_Control_None (void) |
Function: Function USART_Flow_Control_None. | |
void | USART_Flow_Control_RTS (void) |
Function: Function USART_Flow_Control_RTS. | |
void | USART_Flow_Control_CTS (void) |
Function: Function USART_Flow_Control_CTS. | |
void | USART_Flow_Control_RTS_CTS (void) |
Function: Function USART_Flow_Control_RTS_CTS. | |
void | USART_Clock_Pol0_Pha0 (void) |
Function: Function USART_Clock_Pol0_Pha0. | |
void | USART_Clock_Pol0_Pha1 (void) |
Function: Function USART_Clock_Pol0_Pha1. | |
void | USART_Clock_Pol1_Pha0 (void) |
Function: Function USART_Clock_Pol1_Pha0. | |
void | USART_Clock_Pol1_Pha1 (void) |
Function: Function USART_Clock_Pol1_Pha1. | |
void | USART_Baudrate_Min (void) |
Function: Function USART_Baudrate_Min. | |
void | USART_Baudrate_Max (void) |
Function: Function USART_Baudrate_Max. | |
void | USART_Number_Of_Items (void) |
Function: Function USART_Number_Of_Items. | |
void | USART_GetTxCount (void) |
Function: Function USART_GetTxCount. | |
void | USART_GetRxCount (void) |
Function: Function USART_GetRxCount. | |
void | USART_GetTxRxCount (void) |
Function: Function USART_GetTxRxCount. | |
void | USART_AbortSend (void) |
Function: Function USART_AbortSend. | |
void | USART_AbortReceive (void) |
Function: Function USART_AbortReceive. | |
void | USART_AbortTransfer (void) |
Function: Function USART_AbortTransfer. | |
void | USART_TxBreak (void) |
Function: Function USART_TxBreak. | |
These tests verify API and operation of the USART data exchange functions.
The data exchange tests verify the following driver functions (USART Driver function documentation):
All of these tests execute a data exchange and check the result of this data exchange.
Data exchange test procedure when Test Mode USART Server is selected:
Data exchange Abort test procedure when Test Mode USART Server is selected:
Data exchange test procedure when Test Mode Loopback is selected:
void USART_Mode_Asynchronous | ( | void | ) |
The function USART_Mode_Asynchronous verifies data exchange:
void USART_Mode_Synchronous_Master | ( | void | ) |
The function USART_Mode_Synchronous_Master verifies data exchange:
void USART_Mode_Synchronous_Slave | ( | void | ) |
The function USART_Mode_Synchronous_Slave verifies data exchange:
void USART_Mode_Single_Wire | ( | void | ) |
The function USART_Mode_Single_Wire verifies data exchange:
void USART_Mode_IrDA | ( | void | ) |
The function USART_Mode_IrDA verifies data exchange:
void USART_Data_Bits_5 | ( | void | ) |
The function USART_Data_Bits_5 verifies data exchange:
void USART_Data_Bits_6 | ( | void | ) |
The function USART_Data_Bits_6 verifies data exchange:
void USART_Data_Bits_7 | ( | void | ) |
The function USART_Data_Bits_7 verifies data exchange:
void USART_Data_Bits_8 | ( | void | ) |
The function USART_Data_Bits_8 verifies data exchange:
void USART_Data_Bits_9 | ( | void | ) |
The function USART_Data_Bits_9 verifies data exchange:
void USART_Parity_None | ( | void | ) |
The function USART_Parity_None verifies data exchange:
void USART_Parity_Even | ( | void | ) |
The function USART_Parity_Even verifies data exchange:
void USART_Parity_Odd | ( | void | ) |
The function USART_Parity_Odd verifies data exchange:
void USART_Stop_Bits_1 | ( | void | ) |
The function USART_Stop_Bits_1 verifies data exchange:
void USART_Stop_Bits_2 | ( | void | ) |
The function USART_Stop_Bits_2 verifies data exchange:
void USART_Stop_Bits_1_5 | ( | void | ) |
The function USART_Stop_Bits_1_5 verifies data exchange:
void USART_Stop_Bits_0_5 | ( | void | ) |
The function USART_Stop_Bits_0_5 verifies data exchange:
void USART_Flow_Control_None | ( | void | ) |
The function USART_Flow_Control_None verifies data exchange:
void USART_Flow_Control_RTS | ( | void | ) |
The function USART_Flow_Control_RTS verifies functionality of the RTS line flow control by trying to receive half of default number of data items, after that, RTS line should be deactivated by the USART Client hardware and USART Server should stop sending further data.
The RTS line flow control functionality is tested with following settings:
Test procedure consists of the following steps:
void USART_Flow_Control_CTS | ( | void | ) |
The function USART_Flow_Control_CTS verifies functionality of the CTS line flow control by trying to send default number of data items, while at half of transmitted number of items the USART Server deactivates its RTS line (it is connected to CTS line on the USART Client).
The CTS line flow control functionality is tested with following settings:
Test procedure consists of the following steps:
void USART_Flow_Control_RTS_CTS | ( | void | ) |
The function USART_Flow_Control_RTS_CTS verifies functionality of RTS And CTS lines. It calls function USART_Flow_Control_RTS that checks RTS line functionality, and USART_Flow_Control_CTS that checks CTS line functionality.
void USART_Clock_Pol0_Pha0 | ( | void | ) |
The function USART_Clock_Pol0_Pha0 verifies data exchange:
void USART_Clock_Pol0_Pha1 | ( | void | ) |
The function USART_Clock_Pol0_Pha1 verifies data exchange:
void USART_Clock_Pol1_Pha0 | ( | void | ) |
The function USART_Clock_Pol1_Pha0 verifies data exchange:
void USART_Clock_Pol1_Pha1 | ( | void | ) |
The function USART_Clock_Pol1_Pha1 verifies data exchange:
void USART_Baudrate_Min | ( | void | ) |
The function USART_Baudrate_Min verifies data exchange:
USART_CFG_MIN_BAUDRATE
in DV_USART_Config.h)This test function checks the following requirement:
void USART_Baudrate_Max | ( | void | ) |
The function USART_Baudrate_Max verifies data exchange:
USART_CFG_MAX_BAUDRATE
in DV_USART_Config.h)This test function checks the following requirement:
void USART_Number_Of_Items | ( | void | ) |
The function USART_Number_Of_Items verifies data exchange:
USART_CFG_NUM1 .. USART_CFG_NUM5
in DV_USART_Config.h) void USART_GetTxCount | ( | void | ) |
The function USART_GetTxCount verifies GetTxCount function (count changing) during data exchange (Send):
void USART_GetRxCount | ( | void | ) |
The function USART_GetRxCount verifies GetRxCount function (count changing) during data exchange (Receive):
void USART_GetTxRxCount | ( | void | ) |
The function USART_GetTxRxCount verifies GetTxCount and GetRxCount functions (count changing) during data exchange (Transfer):
void USART_AbortSend | ( | void | ) |
The function USART_AbortSend verifies Abort function abort of data exchange (Send):
void USART_AbortReceive | ( | void | ) |
The function USART_AbortReceive verifies Abort function abort of data exchange (Receive):
void USART_AbortTransfer | ( | void | ) |
The function USART_AbortTransfer verifies Abort function abort of data exchange (Transfer):
void USART_TxBreak | ( | void | ) |
The function USART_TxBreak verifies Break signaling: