# 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
…
- 49
- 50
- 51
- 52
- 53
…
- 82
- 83

Syntax
void DRV_UART3_TasksRX();
Returns
None.
Description
This routine is used to maintain the driver's internal receiver state machine. This routine is called when the state of the
receiver needs to be maintained in a polled manner.
Preconditions
DRV_UART3_InitializerDefault function should have been called before calling this function in a polled loop.
Example
const uint8_t readBuffer[35];
unsigned int size, numBytes = 0;
unsigned int readbufferLen = sizeof(readBuffer);
DRV_UART3__InitializerDefault();
while(numBytes < readbufferLen)
{
while(!DRV_UART3_RXBufferIsEmpty());
numBytes += DRV_UART3_Read ( readBuffer + numBytes , readbufferLen ) ;
DRV_UART3_TasksRX ( );
status = DRV_UART3_TransferStatus ( ) ;
if (status & DRV_UART3_TRANSFER_STATUS_RX_FULL)
{
//continue other operation
}
}
Function
void DRV_UART3_TasksRX ( void );
1.2.3.3.12 DRV_UART3_TasksTX Function
Maintains the driver's transmitter state machine in a polled manner
File
drv_uart3.h
Syntax
void DRV_UART3_TasksTX();
Returns
None.
Description
This routine is used to maintain the driver's internal transmitter state machine.This routine is called when the state of the
transmitter needs to be maintained in a polled manner.
Preconditions
DRV_UART3_InitializerDefault function should have been called before calling this function in a polled loop.
Example
Refer to DRV_UART3_InitializerDefault() for an example
Function
void DRV_UART3_TasksTX ( void );
1.2 UART Driver MLA - Drivers Help Driver Interface
51

- 1
- 2
…
- 49
- 50
- 51
- 52
- 53
…
- 82
- 83