# Vault 7: Projects

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

### Protego

# MLA -- Drivers

20 December, 2013

- 1
- 2
…
- 59
- 60
- 61
- 62
- 63
…
- 82
- 83

File
drv_uart2.h
Syntax
unsigned int DRV_UART2_TXBufferSizeGet();
Returns
Size of transmit buffer.
Description
This routine returns the size of the transmit buffer.
Example
Refer to DRV_UART2_InitializerDefault(); for example.
Function
unsigned int DRV_UART2_TXBufferSizeGet (void)
1.2.3.4.13 DRV_UART3_RXBufferIsEmpty Function
Returns the status of the receive buffer
File
drv_uart3.h
Syntax
bool DRV_UART3_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_UART3_TRANSFER_STATUS status ;
// Pre-initialize myBuffer with MY_BUFFER_SIZE bytes of valid data.
numBytes = 0;
while( numBytes < MY_BUFFER_SIZE);
{
status = DRV_UART3_TransferStatus ( ) ;
if (!DRV_UART3_RXBufferIsEmpty())
{
numBytes += DRV_UART3_Read( myBuffer + numBytes, MY_BUFFER_SIZE - numBytes ) ;
if(numBytes < readbufferLen)
{
continue;
}
else
{
break;
}
}
else
{
continue;
}
// Do something else...
1.2 UART Driver MLA - Drivers Help Driver Interface
61

- 1
- 2
…
- 59
- 60
- 61
- 62
- 63
…
- 82
- 83