Functions | Variables
serialPort.c File Reference
#include "serialPort.h"
#include <stdlib.h>
Include dependency graph for serialPort.c:

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
 

Function Documentation

◆ serialPortClose()

int serialPortClose ( serial_port_t serialPort)

Definition at line 66 of file serialPort.c.

◆ serialPortFlush()

int serialPortFlush ( serial_port_t serialPort)

Definition at line 75 of file serialPort.c.

◆ serialPortGetByteCountAvailableToRead()

int serialPortGetByteCountAvailableToRead ( serial_port_t serialPort)

Definition at line 329 of file serialPort.c.

◆ serialPortGetByteCountAvailableToWrite()

int serialPortGetByteCountAvailableToWrite ( serial_port_t serialPort)

Definition at line 339 of file serialPort.c.

◆ serialPortIsOpen()

int serialPortIsOpen ( serial_port_t serialPort)

Definition at line 57 of file serialPort.c.

◆ serialPortOpen()

int serialPortOpen ( serial_port_t serialPort,
const char *  port,
int  baudRate,
int  blocking 
)

Definition at line 28 of file serialPort.c.

◆ serialPortOpenRetry()

int serialPortOpenRetry ( serial_port_t serialPort,
const char *  port,
int  baudRate,
int  blocking 
)

Definition at line 37 of file serialPort.c.

◆ serialPortRead()

int serialPortRead ( serial_port_t serialPort,
unsigned char *  buffer,
int  readCount 
)

Definition at line 84 of file serialPort.c.

◆ serialPortReadAscii()

int serialPortReadAscii ( serial_port_t serialPort,
unsigned char *  buffer,
int  bufferLength,
unsigned char **  asciiData 
)

Definition at line 145 of file serialPort.c.

◆ serialPortReadAsciiTimeout()

int serialPortReadAsciiTimeout ( serial_port_t serialPort,
unsigned char *  buffer,
int  bufferLength,
int  timeoutMilliseconds,
unsigned char **  asciiData 
)

Definition at line 150 of file serialPort.c.

◆ serialPortReadChar()

int serialPortReadChar ( serial_port_t serialPort,
unsigned char *  c 
)

Definition at line 191 of file serialPort.c.

◆ serialPortReadCharTimeout()

int serialPortReadCharTimeout ( serial_port_t serialPort,
unsigned char *  c,
int  timeoutMilliseconds 
)

Definition at line 196 of file serialPort.c.

◆ serialPortReadLine()

int serialPortReadLine ( serial_port_t serialPort,
unsigned char *  buffer,
int  bufferLength 
)

Definition at line 116 of file serialPort.c.

◆ serialPortReadLineTimeout()

int serialPortReadLineTimeout ( serial_port_t serialPort,
unsigned char *  buffer,
int  bufferLength,
int  timeoutMilliseconds 
)

Definition at line 121 of file serialPort.c.

◆ serialPortReadTimeout()

int serialPortReadTimeout ( serial_port_t serialPort,
unsigned char *  buffer,
int  readCount,
int  timeoutMilliseconds 
)

Definition at line 89 of file serialPort.c.

◆ serialPortReadTimeoutAsync()

int serialPortReadTimeoutAsync ( serial_port_t serialPort,
unsigned char *  buffer,
int  readCount,
pfnSerialPortAsyncReadCompletion  completion 
)

Definition at line 106 of file serialPort.c.

◆ serialPortSetPort()

void serialPortSetPort ( serial_port_t serialPort,
const char *  port 
)

Definition at line 18 of file serialPort.c.

◆ serialPortSleep()

int serialPortSleep ( serial_port_t serialPort,
int  sleepMilliseconds 
)

Definition at line 349 of file serialPort.c.

◆ serialPortWaitFor()

int serialPortWaitFor ( serial_port_t serialPort,
const unsigned char *  waitFor,
int  waitForLength 
)

Definition at line 303 of file serialPort.c.

◆ serialPortWaitForTimeout()

int serialPortWaitForTimeout ( serial_port_t serialPort,
const unsigned char *  waitFor,
int  waitForLength,
int  timeoutMilliseconds 
)

Definition at line 308 of file serialPort.c.

◆ serialPortWrite()

int serialPortWrite ( serial_port_t serialPort,
const unsigned char *  buffer,
int  writeCount 
)

Definition at line 201 of file serialPort.c.

◆ serialPortWriteAndWaitFor()

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.

◆ serialPortWriteAndWaitForTimeout()

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.

◆ serialPortWriteAscii()

int serialPortWriteAscii ( serial_port_t serialPort,
const char *  buffer,
int  bufferLength 
)

Definition at line 230 of file serialPort.c.

◆ serialPortWriteLine()

int serialPortWriteLine ( serial_port_t serialPort,
const unsigned char *  buffer,
int  writeCount 
)

Definition at line 218 of file serialPort.c.

Variable Documentation

◆ SERIAL_PORT_DEFAULT_TIMEOUT

int SERIAL_PORT_DEFAULT_TIMEOUT = 2500

Definition at line 16 of file serialPort.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:00