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

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
 

Function Documentation

◆ closeComPort()

void closeComPort ( void  )

Definition at line 254 of file hcl_uart.c.

◆ deviceOk()

int deviceOk ( void  )

Definition at line 264 of file hcl_uart.c.

◆ numBytesReadComPort()

int numBytesReadComPort ( void  )

Definition at line 133 of file hcl_uart.c.

◆ openComPort()

int openComPort ( const char *  comPortPath,
speed_t  baudRate 
)

Definition at line 165 of file hcl_uart.c.

◆ purgeComPort()

int purgeComPort ( void  )

Definition at line 146 of file hcl_uart.c.

◆ readComPort()

int readComPort ( unsigned char *  bytesToRead,
int  size 
)

Definition at line 111 of file hcl_uart.c.

◆ uartInit()

int uartInit ( const char *  comPortPath,
int  baudrate 
)

Definition at line 50 of file hcl_uart.c.

◆ uartRelease()

int uartRelease ( void  )

Definition at line 98 of file hcl_uart.c.

◆ writeComPort()

int writeComPort ( unsigned char *  bytesToWrite,
int  size 
)

Definition at line 122 of file hcl_uart.c.

Variable Documentation

◆ fd_serial

int fd_serial
static

Definition at line 35 of file hcl_uart.c.

◆ IMUSERIAL

const char* IMUSERIAL

Definition at line 41 of file main_csvlogger.c.



ess_imu_driver
Author(s):
autogenerated on Wed Dec 11 2024 03:06:30