Skip to content
Ken Sharp edited this page Dec 8, 2023 · 1 revision

UartWrite()

Write data to the specified UART channel.

Syntax

UartWrite(unsigned char channel, unsigned char numBytes, unsigned char* sendBuffer);

channel
The UART channel to write to.

numBytes
The number of bytes to write.

sendBuffer
A pointer to the first element of an unsigned char array that contains the data to write.

Note:

UartWrite() includes the following overloads in LINXDevice.cpp which are built on top of the above function.

void UartWrite(unsigned char channel, char c);
void UartWrite(unsigned char channel, const char s[]);
void UartWrite(unsigned char channel, unsigned char c);
void UartWrite(unsigned char channel, int n);
void UartWrite(unsigned char channel, unsigned int n);
void UartWrite(unsigned char channel, long n);
void UartWrite(unsigned char channel, unsigned long n);
void UartWrite(unsigned char channel, long n, int base);
void UartWriteln(unsigned char channel);
void UartWriteln(unsigned char channel, char c);
void UartWriteln(unsigned char channel, const char s[]);
void UartWriteln(unsigned char channel, unsigned char c);
void UartWriteln(unsigned char channel, int n);
void UartWriteln(unsigned char channel, long n);
void UartWriteln(unsigned char channel, unsigned long n);
void UartWriteln(unsigned char channel, long n, int base);

Returns

int status

Related Links

Clone this wiki locally