Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Function
unsigned int DRV_UART2_Write( uint8_t *buffer, const unsigned int numbytes )
1.2.3.1.10 DRV_UART2_WriteByte Function
Writes a byte of data to the UART2
File
drv_uart2.h
Syntax
void DRV_UART2_WriteByte(const uint8_t byte);
Returns
None.
Description
This routine writes a byte of data to the UART2.
Preconditions
DRV_UART2_InitializerDefault function should have been called before calling this function. The transfer status should be
checked to see if transmitter is not full before calling this function.
Example
char myBuffer[MY_BUFFER_SIZE];
unsigned int numBytes;
// Pre-initialize myBuffer with MY_BUFFER_SIZE bytes of valid data.
numBytes = 0;
while( numBytes < MY_BUFFER_SIZE);
{
if( !(DRV_UART2_TRANSFER_STATUS_TX_FULL & DRV_UART2_TransferStatus()) )
{
DRV_UART2_WriteByte(handle, myBuffer[numBytes++]);
}
// Do something else...
}
Parameters
Parameters Description
byte Data byte to write to the UART2
Function
void DRV_UART2_WriteByte( const uint8_t byte)
1.2.3.1.11 DRV_UART3_Peek Function
Returns the character in the read sequence at the offset provided, without extracting it
File
drv_uart3.h
Syntax
uint8_t DRV_UART3_Peek(uint16_t offset);
Description
This routine returns the character in the read sequence at the offset provided, without extracting it
1.2 UART Driver MLA - Drivers Help Driver Interface
31
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_driver.pdf