Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
}
Function
bool DRV_UART3_RXBufferIsEmpty (void)
1.2.3.4.14 DRV_UART3_RXBufferSizeGet Function
Returns the size of the receive buffer
File
drv_uart3.h
Syntax
unsigned int DRV_UART3_RXBufferSizeGet();
Returns
Size of receive buffer.
Description
This routine returns the size of the receive buffer.
Example
const uint8_t readBuffer[5];
unsigned int size, numBytes = 0;
unsigned int readbufferLen = sizeof(readBuffer);
DRV_UART3__InitializerDefault();
while(size < readbufferLen)
{
DRV_UART3_TasksRX ( );
size = DRV_UART3_RXBufferSizeGet();
}
numBytes = DRV_UART3_Read ( readBuffer , readbufferLen ) ;
Function
unsigned int DRV_UART3_RXBufferSizeGet (void)
1.2.3.4.15 DRV_UART3_Status Function
Returns the transmitter and receiver status
File
drv_uart3.h
Syntax
DRV_UART3_STATUS DRV_UART3_Status();
Returns
A DRV_UART3_STATUS value describing the current status of the transfer.
Description
This returns the transmitter and receiver status.
Remarks
The returned status may contain a value with more than one of the bits specified in the DRV_UART3_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_UART3_InitializerDefault function should have been called before calling this function
1.2 UART Driver MLA - Drivers Help Driver Interface
62
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_driver.pdf