#include <termios.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "hcl.h"
#include "hcl_uart.h"
#include "sensor_epsonCommon.h"
Go to the source code of this file.
Macros | |
#define | FALSE 0 |
#define | TRUE 1 |
Typedefs | |
typedef unsigned char | Byte |
typedef int | ComPortHandle |
Functions | |
void | closeComPort (ComPortHandle comPort) |
int | numBytesReadComPort (ComPortHandle comPort) |
ComPortHandle | openComPort (const char *comPortPath, int baudRate) |
int | purgeComPort (ComPortHandle comPortHandle) |
int | readComPort (ComPortHandle comPort, unsigned char *bytes, int bytesToRead) |
int | uartInit (const char *comPortPath, int baudRate) |
int | uartRelease (ComPortHandle comPort) |
int | writeComPort (ComPortHandle comPort, unsigned char *bytesToWrite, int size) |
Variables | |
int | comPort |
const char * | IMUSERIAL |
#define FALSE 0 |
Definition at line 32 of file hcl_uart.c.
#define TRUE 1 |
Definition at line 31 of file hcl_uart.c.
typedef unsigned char Byte |
Definition at line 38 of file hcl_uart.c.
typedef int ComPortHandle |
Definition at line 37 of file hcl_uart.c.
void closeComPort | ( | ComPortHandle | comPort | ) |
Definition at line 169 of file hcl_uart.c.
int numBytesReadComPort | ( | ComPortHandle | comPort | ) |
Definition at line 207 of file hcl_uart.c.
ComPortHandle openComPort | ( | const char * | comPortPath, |
int | baudRate | ||
) |
Definition at line 66 of file hcl_uart.c.
int purgeComPort | ( | ComPortHandle | comPortHandle | ) |
Definition at line 47 of file hcl_uart.c.
int readComPort | ( | ComPortHandle | comPort, |
unsigned char * | bytes, | ||
int | bytesToRead | ||
) |
Definition at line 181 of file hcl_uart.c.
int uartInit | ( | const char * | comPortPath, |
int | baudRate | ||
) |
Definition at line 222 of file hcl_uart.c.
int uartRelease | ( | ComPortHandle | comPort | ) |
Definition at line 236 of file hcl_uart.c.
int writeComPort | ( | ComPortHandle | comPort, |
unsigned char * | bytesToWrite, | ||
int | size | ||
) |
Definition at line 194 of file hcl_uart.c.
int comPort |
Definition at line 15 of file epson_imu_driver_node.cpp.
const char* IMUSERIAL |
Definition at line 28 of file main_csvlogger.c.