Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Function
bool DRV_UART3_TXBufferIsFull (void)
1.2.3.4.18 DRV_UART3_TXBufferSizeGet Function
Returns the size of the transmit buffer
File
drv_uart3.h
Syntax
unsigned int DRV_UART3_TXBufferSizeGet();
Returns
Size of transmit buffer.
Description
This routine returns the size of the transmit buffer.
Example
Refer to DRV_UART3_InitializerDefault(); for example.
Function
unsigned int DRV_UART3_TXBufferSizeGet (void)
1.2.3.4.19 DRV_UART4_RXBufferIsEmpty Function
Returns the status of the receive buffer
File
drv_uart4.h
Syntax
bool DRV_UART4_RXBufferIsEmpty();
Returns
True if the receive buffer is empty False if the receive buffer is not empty
Description
This routine returns if the receive buffer is empty or not.
Example
char myBuffer[MY_BUFFER_SIZE];
unsigned int numBytes;
DRV_UART4_TRANSFER_STATUS status ;
// Pre-initialize myBuffer with MY_BUFFER_SIZE bytes of valid data.
numBytes = 0;
while( numBytes < MY_BUFFER_SIZE);
{
status = DRV_UART4_TransferStatus ( ) ;
if (!DRV_UART4_RXBufferIsEmpty())
{
numBytes += DRV_UART4_Read( myBuffer + numBytes, MY_BUFFER_SIZE - numBytes ) ;
if(numBytes < readbufferLen)
{
continue;
}
else
1.2 UART Driver MLA - Drivers Help Driver Interface
64
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_driver.pdf