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 IMPLIED,
9 // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT,
10 // SECURITY, SATISFACTORY QUALITY, AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
11 // SHALL EPSON BE LIABLE FOR ANY LOSS, DAMAGE OR CLAIM, ARISING FROM OR IN CONNECTION
12 // WITH THE SOFTWARE OR THE USE OF THE SOFTWARE.
13 //
14 //==============================================================================
15 #ifndef HCL_UART_H_
16 #define HCL_UART_H_
17 
18 // Prototypes for generic UART functions
19 int purgeComPort(int comPortHandle);
20 int openComPort(const char* comPortPath, int baudRate);
21 void closeComPort(int comPort);
22 int readComPort(int comPort, unsigned char* bytes, int bytesToRead);
23 int writeComPort(int comPort, unsigned char* bytesToWrite, int size);
25 int uartInit(const char* comPortPath, int baudRate);
26 int uartRelease(int comPort);
27 
28 #endif /* HCL_UART_H_ */
void closeComPort(int comPort)
Definition: hcl_uart.c:169
int uartInit(const char *comPortPath, int baudRate)
Definition: hcl_uart.c:222
int purgeComPort(int comPortHandle)
Definition: hcl_uart.c:47
int readComPort(int comPort, unsigned char *bytes, int bytesToRead)
Definition: hcl_uart.c:181
int numBytesReadComPort(int comPort)
Definition: hcl_uart.c:207
int writeComPort(int comPort, unsigned char *bytesToWrite, int size)
Definition: hcl_uart.c:194
int openComPort(const char *comPortPath, int baudRate)
Definition: hcl_uart.c:66
int uartRelease(int comPort)
Definition: hcl_uart.c:236


epson_g364_imu_driver
Author(s):
autogenerated on Mon Jun 10 2019 13:12:32