Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
File
drv_uart3.h
Syntax
unsigned int DRV_UART3_Write(const uint8_t * buffer, const unsigned int numbytes);
Description
This API transfers the data from application buffer to internal buffer and returns the number of bytes added in that queue
Remarks
None
Preconditions
DRV_UART3_InitializerDefault function should have been called before calling this function
Example
char myBuffer[MY_BUFFER_SIZE];
unsigned int numBytes;
DRV_UART3_TRANSFER_STATUS status ;
// Pre-initialize myBuffer with MY_BUFFER_SIZE bytes of valid data.
numBytes = 0;
while( numBytes < MY_BUFFER_SIZE);
{
status = DRV_UART3_TransferStatus ( ) ;
if (status & DRV_UART3_TRANSFER_STATUS_TX_EMPTY)
{
numBytes += DRV_UART3_Write ( myBuffer + numBytes, MY_BUFFER_SIZE - numBytes ) ;
if(numBytes < writebufferLen)
{
continue;
}
else
{
break;
}
}
else
{
continue;
}
// Do something else...
}
Function
unsigned int DRV_UART3_Write( uint8_t *buffer, const unsigned int numbytes )
1.2.3.1.15 DRV_UART3_WriteByte Function
Writes a byte of data to the UART3
File
drv_uart3.h
Syntax
void DRV_UART3_WriteByte(const uint8_t byte);
Returns
None.
1.2 UART Driver MLA - Drivers Help Driver Interface
34
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_driver.pdf