Functions | Variables
serial/serialPort.c File Reference
#include "serialPort.h"
#include <stdlib.h>
Include dependency graph for serial/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 serialPortRead (serial_port_t *serialPort, unsigned char *buffer, int readCount)
 
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 **result)
 
int serialPortReadLineTimeout (serial_port_t *serialPort, unsigned char **result, 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 55 of file serial/serialPort.c.

◆ serialPortFlush()

int serialPortFlush ( serial_port_t serialPort)

Definition at line 64 of file serial/serialPort.c.

◆ serialPortGetByteCountAvailableToRead()

int serialPortGetByteCountAvailableToRead ( serial_port_t serialPort)

Definition at line 280 of file serial/serialPort.c.

◆ serialPortGetByteCountAvailableToWrite()

int serialPortGetByteCountAvailableToWrite ( serial_port_t serialPort)

Definition at line 290 of file serial/serialPort.c.

◆ serialPortIsOpen()

int serialPortIsOpen ( serial_port_t serialPort)

Definition at line 46 of file serial/serialPort.c.

◆ serialPortOpen()

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

Definition at line 28 of file serial/serialPort.c.

◆ serialPortRead()

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

Definition at line 73 of file serial/serialPort.c.

◆ serialPortReadChar()

int serialPortReadChar ( serial_port_t serialPort,
unsigned char *  c 
)

Definition at line 144 of file serial/serialPort.c.

◆ serialPortReadCharTimeout()

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

Definition at line 149 of file serial/serialPort.c.

◆ serialPortReadLine()

int serialPortReadLine ( serial_port_t serialPort,
unsigned char **  result 
)

Definition at line 105 of file serial/serialPort.c.

◆ serialPortReadLineTimeout()

int serialPortReadLineTimeout ( serial_port_t serialPort,
unsigned char **  result,
int  timeoutMilliseconds 
)

Definition at line 110 of file serial/serialPort.c.

◆ serialPortReadTimeout()

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

Definition at line 78 of file serial/serialPort.c.

◆ serialPortReadTimeoutAsync()

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

Definition at line 95 of file serial/serialPort.c.

◆ serialPortSetPort()

void serialPortSetPort ( serial_port_t serialPort,
const char *  port 
)

Definition at line 18 of file serial/serialPort.c.

◆ serialPortSleep()

int serialPortSleep ( serial_port_t serialPort,
int  sleepMilliseconds 
)

Definition at line 300 of file serial/serialPort.c.

◆ serialPortWaitFor()

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

Definition at line 254 of file serial/serialPort.c.

◆ serialPortWaitForTimeout()

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

Definition at line 259 of file serial/serialPort.c.

◆ serialPortWrite()

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

Definition at line 154 of file serial/serialPort.c.

◆ serialPortWriteAndWaitFor()

int serialPortWriteAndWaitFor ( serial_port_t serialPort,
const unsigned char *  buffer,
int  writeCount,
const unsigned char *  waitFor,
int  waitForLength 
)

Definition at line 232 of file serial/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 237 of file serial/serialPort.c.

◆ serialPortWriteAscii()

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

Definition at line 183 of file serial/serialPort.c.

◆ serialPortWriteLine()

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

Definition at line 171 of file serial/serialPort.c.

Variable Documentation

◆ SERIAL_PORT_DEFAULT_TIMEOUT

int SERIAL_PORT_DEFAULT_TIMEOUT = 2500

Definition at line 16 of file serial/serialPort.c.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:07