Typedefs | Functions | Variables
hcl_uart.c File Reference
#include "hcl_uart.h"
#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 "sensor_epsonCommon.h"
Include dependency graph for hcl_uart.c:

Go to the source code of this file.

Typedefs

typedef unsigned char Byte
 
typedef int ComPortHandle
 

Functions

void closeComPort (ComPortHandle fd_serial)
 
int numBytesReadComPort (ComPortHandle fd_serial)
 
ComPortHandle openComPort (const char *comPortPath, speed_t baudRate)
 
int purgeComPort (ComPortHandle fd_serial)
 
int readComPort (ComPortHandle fd_serial, unsigned char *bytesToRead, int size)
 
int uartInit (const char *comPortPath, int baudrate)
 
int uartRelease (ComPortHandle fd_serial)
 
int writeComPort (ComPortHandle fd_serial, unsigned char *bytesToWrite, int size)
 

Variables

int fd_serial
 
const char * IMUSERIAL
 

Typedef Documentation

◆ Byte

typedef unsigned char Byte

Definition at line 38 of file hcl_uart.c.

◆ ComPortHandle

typedef int ComPortHandle

Definition at line 37 of file hcl_uart.c.

Function Documentation

◆ closeComPort()

void closeComPort ( ComPortHandle  fd_serial)

Definition at line 261 of file hcl_uart.c.

◆ numBytesReadComPort()

int numBytesReadComPort ( ComPortHandle  fd_serial)

Definition at line 120 of file hcl_uart.c.

◆ openComPort()

ComPortHandle openComPort ( const char *  comPortPath,
speed_t  baudRate 
)

Definition at line 152 of file hcl_uart.c.

◆ purgeComPort()

int purgeComPort ( ComPortHandle  fd_serial)

Definition at line 133 of file hcl_uart.c.

◆ readComPort()

int readComPort ( ComPortHandle  fd_serial,
unsigned char *  bytesToRead,
int  size 
)

Definition at line 97 of file hcl_uart.c.

◆ uartInit()

int uartInit ( const char *  comPortPath,
int  baudrate 
)

Definition at line 52 of file hcl_uart.c.

◆ uartRelease()

int uartRelease ( ComPortHandle  fd_serial)

Definition at line 83 of file hcl_uart.c.

◆ writeComPort()

int writeComPort ( ComPortHandle  fd_serial,
unsigned char *  bytesToWrite,
int  size 
)

Definition at line 108 of file hcl_uart.c.

Variable Documentation

◆ fd_serial

int fd_serial

Definition at line 71 of file epson_imu_uart_driver_node.cpp.

◆ IMUSERIAL

const char* IMUSERIAL

Definition at line 32 of file main_csvlogger.c.



ess_imu_ros1_uart_driver
Author(s):
autogenerated on Sun Dec 3 2023 03:11:33