#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#include "hcl.h"
#include "hcl_uart.h"
#include "sensor_epsonCommon.h"
Go to the source code of this file.
Functions | |
void | closeComPort (void) |
int | deviceOk (void) |
int | numBytesReadComPort (void) |
int | openComPort (const char *comPortPath, speed_t baudRate) |
int | purgeComPort (void) |
int | readComPort (unsigned char *bytesToRead, int size) |
int | uartInit (const char *comPortPath, int baudrate) |
int | uartRelease (void) |
int | writeComPort (unsigned char *bytesToWrite, int size) |
Variables | |
static int | fd_serial |
const char * | IMUSERIAL |
void closeComPort | ( | void | ) |
Definition at line 254 of file hcl_uart.c.
int deviceOk | ( | void | ) |
Definition at line 264 of file hcl_uart.c.
int numBytesReadComPort | ( | void | ) |
Definition at line 133 of file hcl_uart.c.
int openComPort | ( | const char * | comPortPath, |
speed_t | baudRate | ||
) |
Definition at line 165 of file hcl_uart.c.
int purgeComPort | ( | void | ) |
Definition at line 146 of file hcl_uart.c.
int readComPort | ( | unsigned char * | bytesToRead, |
int | size | ||
) |
Definition at line 111 of file hcl_uart.c.
int uartInit | ( | const char * | comPortPath, |
int | baudrate | ||
) |
Definition at line 50 of file hcl_uart.c.
int uartRelease | ( | void | ) |
Definition at line 98 of file hcl_uart.c.
int writeComPort | ( | unsigned char * | bytesToWrite, |
int | size | ||
) |
Definition at line 122 of file hcl_uart.c.
|
static |
Definition at line 35 of file hcl_uart.c.
const char* IMUSERIAL |
Definition at line 41 of file main_csvlogger.c.