# 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
…
- 58
- 59
- 60
- 61
- 62
…
- 82
- 83

1.2.3.4.10 DRV_UART2_TransferStatus Function
Returns the transmitter and receiver transfer status
File
drv_uart2.h
Syntax
DRV_UART2_TRANSFER_STATUS DRV_UART2_TransferStatus();
Returns
A DRV_UART2_TRANSFER_STATUS value describing the current status of the transfer.
Description
This returns the transmitter and receiver transfer status.
Remarks
The returned status may contain a value with more than one of the bits specified in the DRV_UART2_TRANSFER_STATUS
enumeration set. The caller should perform an "AND" with the bit of interest and verify if the result is non-zero (as shown in
the example) to verify the desired status bit.
Preconditions
DRV_UART2_InitializerDefault function should have been called before calling this function
Example
Refer to DRV_UART2_Read and DRV_UART2_Write for example
Function
DRV_UART2_TRANSFER_STATUS DRV_UART2_TransferStatus (void)
1.2.3.4.11 DRV_UART2_TXBufferIsFull Function
Returns the status of the transmit buffer
File
drv_uart2.h
Syntax
bool DRV_UART2_TXBufferIsFull();
Returns
True if the transmit buffer is full False if the transmit buffer is not full
Description
This routine returns if the transmit buffer is full or not.
Example
Refer to DRV_UART2_InitializerDefault() for example.
Function
bool DRV_UART2_TXBufferIsFull (void)
1.2.3.4.12 DRV_UART2_TXBufferSizeGet Function
Returns the size of the transmit buffer
1.2 UART Driver MLA - Drivers Help Driver Interface
60

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