Classes | Functions
serialPortPlatform.c File Reference
#include "serialPort.h"
#include "serialPortPlatform.h"
#include "ISConstants.h"
Include dependency graph for serialPortPlatform.c:

Go to the source code of this file.

Classes

struct  serialPortHandle
 

Functions

static int get_baud_speed (int baudRate)
 
static int serialPortAsyncReadPlatform (serial_port_t *serialPort, unsigned char *buffer, int readCount, pfnSerialPortAsyncReadCompletion completion)
 
static int serialPortClosePlatform (serial_port_t *serialPort)
 
static int serialPortFlushPlatform (serial_port_t *serialPort)
 
static int serialPortGetByteCountAvailableToReadPlatform (serial_port_t *serialPort)
 
static int serialPortGetByteCountAvailableToWritePlatform (serial_port_t *serialPort)
 
static int serialPortIsOpenPlatform (serial_port_t *serialPort)
 
static int serialPortOpenPlatform (serial_port_t *serialPort, const char *port, int baudRate, int blocking)
 
int serialPortPlatformInit (serial_port_t *serialPort)
 
static int serialPortReadTimeoutPlatform (serial_port_t *serialPort, unsigned char *buffer, int readCount, int timeoutMilliseconds)
 
static int serialPortReadTimeoutPlatformLinux (serialPortHandle *handle, unsigned char *buffer, int readCount, int timeoutMilliseconds)
 
static int serialPortSleepPlatform (int sleepMilliseconds)
 
static int serialPortWritePlatform (serial_port_t *serialPort, const unsigned char *buffer, int writeCount)
 
static int set_interface_attribs (int fd, int speed, int parity)
 

Function Documentation

◆ get_baud_speed()

static int get_baud_speed ( int  baudRate)
static

Definition at line 111 of file serialPortPlatform.c.

◆ serialPortAsyncReadPlatform()

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

Definition at line 570 of file serialPortPlatform.c.

◆ serialPortClosePlatform()

static int serialPortClosePlatform ( serial_port_t serialPort)
static

Definition at line 369 of file serialPortPlatform.c.

◆ serialPortFlushPlatform()

static int serialPortFlushPlatform ( serial_port_t serialPort)
static

Definition at line 402 of file serialPortPlatform.c.

◆ serialPortGetByteCountAvailableToReadPlatform()

static int serialPortGetByteCountAvailableToReadPlatform ( serial_port_t serialPort)
static

Definition at line 654 of file serialPortPlatform.c.

◆ serialPortGetByteCountAvailableToWritePlatform()

static int serialPortGetByteCountAvailableToWritePlatform ( serial_port_t serialPort)
static

Definition at line 678 of file serialPortPlatform.c.

◆ serialPortIsOpenPlatform()

static int serialPortIsOpenPlatform ( serial_port_t serialPort)
static

Definition at line 350 of file serialPortPlatform.c.

◆ serialPortOpenPlatform()

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

Definition at line 264 of file serialPortPlatform.c.

◆ serialPortPlatformInit()

int serialPortPlatformInit ( serial_port_t serialPort)

Definition at line 710 of file serialPortPlatform.c.

◆ serialPortReadTimeoutPlatform()

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

Definition at line 550 of file serialPortPlatform.c.

◆ serialPortReadTimeoutPlatformLinux()

static int serialPortReadTimeoutPlatformLinux ( serialPortHandle handle,
unsigned char *  buffer,
int  readCount,
int  timeoutMilliseconds 
)
static

Definition at line 494 of file serialPortPlatform.c.

◆ serialPortSleepPlatform()

static int serialPortSleepPlatform ( int  sleepMilliseconds)
static

Definition at line 695 of file serialPortPlatform.c.

◆ serialPortWritePlatform()

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

Definition at line 598 of file serialPortPlatform.c.

◆ set_interface_attribs()

static int set_interface_attribs ( int  fd,
int  speed,
int  parity 
)
static

Definition at line 136 of file serialPortPlatform.c.



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