Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Description
This routine returns the size of the transmit buffer.
Example
Refer to DRV_UART1_InitializerDefault(); for example.
Function
unsigned int DRV_UART1_TXBufferSizeGet (void)
1.2.3.4.7 DRV_UART2_RXBufferIsEmpty Function
Returns the status of the receive buffer
File
drv_uart2.h
Syntax
bool DRV_UART2_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_UART2_TRANSFER_STATUS status ;
// Pre-initialize myBuffer with MY_BUFFER_SIZE bytes of valid data.
numBytes = 0;
while( numBytes < MY_BUFFER_SIZE);
{
status = DRV_UART2_TransferStatus ( ) ;
if (!DRV_UART2_RXBufferIsEmpty())
{
numBytes += DRV_UART2_Read( myBuffer + numBytes, MY_BUFFER_SIZE - numBytes ) ;
if(numBytes < readbufferLen)
{
continue;
}
else
{
break;
}
}
else
{
continue;
}
// Do something else...
}
Function
bool DRV_UART2_RXBufferIsEmpty (void)
1.2.3.4.8 DRV_UART2_RXBufferSizeGet Function
Returns the size of the receive buffer
1.2 UART Driver MLA - Drivers Help Driver Interface
58
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_driver.pdf