Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Syntax
DRV_UART1_TRANSFER_STATUS DRV_UART1_TransferStatus();
Returns
A DRV_UART1_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_UART1_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_UART1_InitializerDefault function should have been called before calling this function
Example
Refer to DRV_UART1_Read and DRV_UART1_Write for example
Function
DRV_UART1_TRANSFER_STATUS DRV_UART1_TransferStatus (void)
1.2.3.4.5 DRV_UART1_TXBufferIsFull Function
Returns the status of the transmit buffer
File
drv_uart1.h
Syntax
bool DRV_UART1_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_UART1_InitializerDefault() for example.
Function
bool DRV_UART1_TXBufferIsFull (void)
1.2.3.4.6 DRV_UART1_TXBufferSizeGet Function
Returns the size of the transmit buffer
File
drv_uart1.h
Syntax
unsigned int DRV_UART1_TXBufferSizeGet();
Returns
Size of transmit buffer.
1.2 UART Driver MLA - Drivers Help Driver Interface
57
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_driver.pdf