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

Preconditions
None.
Example
const uint8_t writeBuffer[35] = "1234567890ABCDEFGHIJKLMNOPn" ;
unsigned int numBytes = 0;
int writebufferLen = strlen((char *)writeBuffer);
DRV_UART3_InitializerDefault();
while(numBytes < writebufferLen)
{
int bytesToWrite = DRV_UART3_TXBufferSizeGet();
numBytes = DRV_UART3_Write ( writeBuffer+numBytes, bytesToWrite) ;
DRV_UART3_TasksTX ( );
if (!DRV_UART3_TXBufferisFull())
{
//continue other operation
}
}
Function
void DRV_UART3_InitializerDefault(void)
1.2.3.3.10 DRV_UART3_TasksError Function
Maintains the driver's error-handling state machine in a polled manner.
File
drv_uart3.h
Syntax
void DRV_UART3_TasksError();
Returns
None.
Description
This routine is used to maintain the driver's internal error-handling state machine.This routine is called when the state of the
errors 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
while (true)
{
DRV_UART3_TasksError ();
// Do other tasks
}
Function
void DRV_UART3_TasksError ( void );
1.2.3.3.11 DRV_UART3_TasksRX Function
Maintains the driver's receiver state machine in a polled manner.
File
drv_uart3.h
1.2 UART Driver MLA - Drivers Help Driver Interface
50

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