src
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
#ifndef HCL_UART_H_
17
#define HCL_UART_H_
18
19
// Common supported BAUD rates.
20
// Only G330PDG0/G365PDF1/G366PDG0/G370PDF1/G370PDS0/G370PDG0/G370PDT0 can
21
// support 921600 baud. 921600 baud may not be supported on all host hardware
22
// platforms.
23
#define BAUD_921600 921600
24
#define BAUD_460800 460800
25
#define BAUD_230400 230400
26
27
// Prototypes for generic UART functions
28
int
uartInit
(
const
char
* comPortPath,
int
baudrate);
29
int
uartRelease
(
int
comPort);
30
int
readComPort
(
int
comPort,
unsigned
char
* bytesToRead,
int
size);
31
int
writeComPort
(
int
comPort,
unsigned
char
* bytesToWrite,
int
size);
32
int
numBytesReadComPort
(
int
comPort);
33
int
purgeComPort
(
int
comPort);
34
35
#endif
/* HCL_UART_H_ */
numBytesReadComPort
int numBytesReadComPort(int comPort)
Definition:
hcl_uart.c:120
uartInit
int uartInit(const char *comPortPath, int baudrate)
Definition:
hcl_uart.c:52
readComPort
int readComPort(int comPort, unsigned char *bytesToRead, int size)
Definition:
hcl_uart.c:97
purgeComPort
int purgeComPort(int comPort)
Definition:
hcl_uart.c:133
uartRelease
int uartRelease(int comPort)
Definition:
hcl_uart.c:83
writeComPort
int writeComPort(int comPort, unsigned char *bytesToWrite, int size)
Definition:
hcl_uart.c:108
ess_imu_ros1_uart_driver
Author(s):
autogenerated on Sun Dec 3 2023 03:11:32