Vault 7: Projects

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

1.2.3.3.6 DRV_UART2_TasksError Function
Maintains the driver's error-handling state machine in a polled manner.
File
drv_uart2.h
Syntax
void DRV_UART2_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_UART2_InitializerDefault function should have been called before calling this function in a polled loop.
Example
while (true)
{
DRV_UART2_TasksError ();
// Do other tasks
}
Function
void DRV_UART2_TasksError ( void );
1.2.3.3.7 DRV_UART2_TasksRX Function
Maintains the driver's receiver state machine in a polled manner.
File
drv_uart2.h
Syntax
void DRV_UART2_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_UART2_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_UART2__InitializerDefault();
while(numBytes < readbufferLen)
{
while(!DRV_UART2_RXBufferIsEmpty());
1.2 UART Driver MLA - Drivers Help Driver Interface
48

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh