hcl_uart.h
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // hcl_uart.h - Seiko Epson Hardware Control Library
4 //
5 //
6 //
7 // THE SOFTWARE IS RELEASED INTO THE PUBLIC DOMAIN.
8 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
10 // NONINFRINGEMENT, SECURITY, SATISFACTORY QUALITY, AND FITNESS FOR A
11 // PARTICULAR PURPOSE. IN NO EVENT SHALL EPSON BE LIABLE FOR ANY LOSS, DAMAGE
12 // OR CLAIM, ARISING FROM OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF THE
13 // SOFTWARE.
14 //
15 //==============================================================================
16 
17 #pragma once
18 
19 // Not all baud rates may be supported on all host hardware
20 // platforms or Epson devices. Refer to their data sheets
21 // for supported baud rates
22 #define BAUD_2000000 2000000
23 #define BAUD_1500000 1500000
24 #define BAUD_1000000 1000000
25 #define BAUD_921600 921600
26 #define BAUD_460800 460800
27 #define BAUD_230400 230400
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 // Prototypes for generic UART functions
34 int uartInit(const char* comPortPath, int baudrate);
35 int uartRelease(void);
36 int readComPort(unsigned char* bytesToRead, int size);
37 int writeComPort(unsigned char* bytesToWrite, int size);
38 int numBytesReadComPort(void);
39 int purgeComPort(void);
40 
41 #ifdef __cplusplus
42 }
43 #endif
uartRelease
int uartRelease(void)
Definition: hcl_uart.c:98
uartInit
int uartInit(const char *comPortPath, int baudrate)
Definition: hcl_uart.c:50
numBytesReadComPort
int numBytesReadComPort(void)
Definition: hcl_uart.c:133
readComPort
int readComPort(unsigned char *bytesToRead, int size)
Definition: hcl_uart.c:111
writeComPort
int writeComPort(unsigned char *bytesToWrite, int size)
Definition: hcl_uart.c:122
purgeComPort
int purgeComPort(void)
Definition: hcl_uart.c:146


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