Go to the source code of this file.
Functions | |
int | serialPortClose (serial_port_t *serialPort) |
int | serialPortFlush (serial_port_t *serialPort) |
int | serialPortGetByteCountAvailableToRead (serial_port_t *serialPort) |
int | serialPortGetByteCountAvailableToWrite (serial_port_t *serialPort) |
int | serialPortIsOpen (serial_port_t *serialPort) |
int | serialPortOpen (serial_port_t *serialPort, const char *port, int baudRate, int blocking) |
int | serialPortOpenRetry (serial_port_t *serialPort, const char *port, int baudRate, int blocking) |
int | serialPortRead (serial_port_t *serialPort, unsigned char *buffer, int readCount) |
int | serialPortReadAscii (serial_port_t *serialPort, unsigned char *buffer, int bufferLength, unsigned char **asciiData) |
int | serialPortReadAsciiTimeout (serial_port_t *serialPort, unsigned char *buffer, int bufferLength, int timeoutMilliseconds, unsigned char **asciiData) |
int | serialPortReadChar (serial_port_t *serialPort, unsigned char *c) |
int | serialPortReadCharTimeout (serial_port_t *serialPort, unsigned char *c, int timeoutMilliseconds) |
int | serialPortReadLine (serial_port_t *serialPort, unsigned char *buffer, int bufferLength) |
int | serialPortReadLineTimeout (serial_port_t *serialPort, unsigned char *buffer, int bufferLength, int timeoutMilliseconds) |
int | serialPortReadTimeout (serial_port_t *serialPort, unsigned char *buffer, int readCount, int timeoutMilliseconds) |
int | serialPortReadTimeoutAsync (serial_port_t *serialPort, unsigned char *buffer, int readCount, pfnSerialPortAsyncReadCompletion completion) |
void | serialPortSetPort (serial_port_t *serialPort, const char *port) |
int | serialPortSleep (serial_port_t *serialPort, int sleepMilliseconds) |
int | serialPortWaitFor (serial_port_t *serialPort, const unsigned char *waitFor, int waitForLength) |
int | serialPortWaitForTimeout (serial_port_t *serialPort, const unsigned char *waitFor, int waitForLength, int timeoutMilliseconds) |
int | serialPortWrite (serial_port_t *serialPort, const unsigned char *buffer, int writeCount) |
int | serialPortWriteAndWaitFor (serial_port_t *serialPort, const unsigned char *buffer, int writeCount, const unsigned char *waitFor, int waitForLength) |
int | serialPortWriteAndWaitForTimeout (serial_port_t *serialPort, const unsigned char *buffer, int writeCount, const unsigned char *waitFor, int waitForLength, const int timeoutMilliseconds) |
int | serialPortWriteAscii (serial_port_t *serialPort, const char *buffer, int bufferLength) |
int | serialPortWriteLine (serial_port_t *serialPort, const unsigned char *buffer, int writeCount) |
Variables | |
int | SERIAL_PORT_DEFAULT_TIMEOUT = 2500 |
int serialPortClose | ( | serial_port_t * | serialPort | ) |
Definition at line 66 of file serialPort.c.
int serialPortFlush | ( | serial_port_t * | serialPort | ) |
Definition at line 75 of file serialPort.c.
int serialPortGetByteCountAvailableToRead | ( | serial_port_t * | serialPort | ) |
Definition at line 329 of file serialPort.c.
int serialPortGetByteCountAvailableToWrite | ( | serial_port_t * | serialPort | ) |
Definition at line 339 of file serialPort.c.
int serialPortIsOpen | ( | serial_port_t * | serialPort | ) |
Definition at line 57 of file serialPort.c.
int serialPortOpen | ( | serial_port_t * | serialPort, |
const char * | port, | ||
int | baudRate, | ||
int | blocking | ||
) |
Definition at line 28 of file serialPort.c.
int serialPortOpenRetry | ( | serial_port_t * | serialPort, |
const char * | port, | ||
int | baudRate, | ||
int | blocking | ||
) |
Definition at line 37 of file serialPort.c.
int serialPortRead | ( | serial_port_t * | serialPort, |
unsigned char * | buffer, | ||
int | readCount | ||
) |
Definition at line 84 of file serialPort.c.
int serialPortReadAscii | ( | serial_port_t * | serialPort, |
unsigned char * | buffer, | ||
int | bufferLength, | ||
unsigned char ** | asciiData | ||
) |
Definition at line 145 of file serialPort.c.
int serialPortReadAsciiTimeout | ( | serial_port_t * | serialPort, |
unsigned char * | buffer, | ||
int | bufferLength, | ||
int | timeoutMilliseconds, | ||
unsigned char ** | asciiData | ||
) |
Definition at line 150 of file serialPort.c.
int serialPortReadChar | ( | serial_port_t * | serialPort, |
unsigned char * | c | ||
) |
Definition at line 191 of file serialPort.c.
int serialPortReadCharTimeout | ( | serial_port_t * | serialPort, |
unsigned char * | c, | ||
int | timeoutMilliseconds | ||
) |
Definition at line 196 of file serialPort.c.
int serialPortReadLine | ( | serial_port_t * | serialPort, |
unsigned char * | buffer, | ||
int | bufferLength | ||
) |
Definition at line 116 of file serialPort.c.
int serialPortReadLineTimeout | ( | serial_port_t * | serialPort, |
unsigned char * | buffer, | ||
int | bufferLength, | ||
int | timeoutMilliseconds | ||
) |
Definition at line 121 of file serialPort.c.
int serialPortReadTimeout | ( | serial_port_t * | serialPort, |
unsigned char * | buffer, | ||
int | readCount, | ||
int | timeoutMilliseconds | ||
) |
Definition at line 89 of file serialPort.c.
int serialPortReadTimeoutAsync | ( | serial_port_t * | serialPort, |
unsigned char * | buffer, | ||
int | readCount, | ||
pfnSerialPortAsyncReadCompletion | completion | ||
) |
Definition at line 106 of file serialPort.c.
void serialPortSetPort | ( | serial_port_t * | serialPort, |
const char * | port | ||
) |
Definition at line 18 of file serialPort.c.
int serialPortSleep | ( | serial_port_t * | serialPort, |
int | sleepMilliseconds | ||
) |
Definition at line 349 of file serialPort.c.
int serialPortWaitFor | ( | serial_port_t * | serialPort, |
const unsigned char * | waitFor, | ||
int | waitForLength | ||
) |
Definition at line 303 of file serialPort.c.
int serialPortWaitForTimeout | ( | serial_port_t * | serialPort, |
const unsigned char * | waitFor, | ||
int | waitForLength, | ||
int | timeoutMilliseconds | ||
) |
Definition at line 308 of file serialPort.c.
int serialPortWrite | ( | serial_port_t * | serialPort, |
const unsigned char * | buffer, | ||
int | writeCount | ||
) |
Definition at line 201 of file serialPort.c.
int serialPortWriteAndWaitFor | ( | serial_port_t * | serialPort, |
const unsigned char * | buffer, | ||
int | writeCount, | ||
const unsigned char * | waitFor, | ||
int | waitForLength | ||
) |
Definition at line 281 of file serialPort.c.
int serialPortWriteAndWaitForTimeout | ( | serial_port_t * | serialPort, |
const unsigned char * | buffer, | ||
int | writeCount, | ||
const unsigned char * | waitFor, | ||
int | waitForLength, | ||
const int | timeoutMilliseconds | ||
) |
Definition at line 286 of file serialPort.c.
int serialPortWriteAscii | ( | serial_port_t * | serialPort, |
const char * | buffer, | ||
int | bufferLength | ||
) |
Definition at line 230 of file serialPort.c.
int serialPortWriteLine | ( | serial_port_t * | serialPort, |
const unsigned char * | buffer, | ||
int | writeCount | ||
) |
Definition at line 218 of file serialPort.c.
int SERIAL_PORT_DEFAULT_TIMEOUT = 2500 |
Definition at line 16 of file serialPort.c.