Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Preconditions
DRV_UART1_InitializerDefault function should have been called before calling this function in a polled loop.
Example
while (true)
{
DRV_UART1_TasksError ();
// Do other tasks
}
Function
void DRV_UART1_TasksError ( void );
1.2.3.3.3 DRV_UART1_TasksRX Function
Maintains the driver's receiver state machine in a polled manner.
File
drv_uart1.h
Syntax
void DRV_UART1_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_UART1_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_UART1__InitializerDefault();
while(numBytes < readbufferLen)
{
while(!DRV_UART1_RXBufferIsEmpty());
numBytes += DRV_UART1_Read ( readBuffer + numBytes , readbufferLen ) ;
DRV_UART1_TasksRX ( );
status = DRV_UART1_TransferStatus ( ) ;
if (status & DRV_UART1_TRANSFER_STATUS_RX_FULL)
{
//continue other operation
}
}
Function
void DRV_UART1_TasksRX ( void );
1.2.3.3.4 DRV_UART1_TasksTX Function
Maintains the driver's transmitter state machine in a polled manner
File
drv_uart1.h
1.2 UART Driver MLA - Drivers Help Driver Interface
46
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_driver.pdf