Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Remarks
The returned status may contain a value with more than one of the bits specified in the DRV_UART4_STATUS enumeration
set. The caller should perform an "AND" with the bit of interest and verify if the result is non-zero (as shown in the example)
to verify the desired status bit.
Preconditions
DRV_UART4_InitializerDefault function should have been called before calling this function
Example
while(!(DRV_UART4_Status() & DRV_UART4_TX_COMPLETE ))
{
// Wait for the tranmission to complete
}
Function
DRV_UART4_STATUS DRV_UART4_Status (void)
1.2.3.4.22 DRV_UART4_TransferStatus Function
Returns the transmitter and receiver transfer status
File
drv_uart4.h
Syntax
DRV_UART4_TRANSFER_STATUS DRV_UART4_TransferStatus();
Returns
A DRV_UART4_TRANSFER_STATUS value describing the current status of the transfer.
Description
This returns the transmitter and receiver transfer status.
Remarks
The returned status may contain a value with more than one of the bits specified in the DRV_UART4_TRANSFER_STATUS
enumeration set. The caller should perform an "AND" with the bit of interest and verify if the result is non-zero (as shown in
the example) to verify the desired status bit.
Preconditions
DRV_UART4_InitializerDefault function should have been called before calling this function
Example
Refer to DRV_UART4_Read and DRV_UART4_Write for example
Function
DRV_UART4_TRANSFER_STATUS DRV_UART4_TransferStatus (void)
1.2.3.4.23 DRV_UART4_TXBufferIsFull Function
Returns the status of the transmit buffer
File
drv_uart4.h
Syntax
bool DRV_UART4_TXBufferIsFull();
1.2 UART Driver MLA - Drivers Help Driver Interface
66

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh