NetBurner Serial API. More...
#include <basictypes.h>
Go to the source code of this file.
Macros | |
#define | SERIAL_ERR_NOSUCH_PORT (-1) |
Port number does not exist. | |
#define | SERIAL_ERR_PORT_NOTOPEN (-2) |
Port is not open. | |
#define | SERIAL_ERR_PORT_ALREADYOPEN (-3) |
Port is already open. | |
#define | SERIAL_ERR_PARAM_ERROR (-4) |
Parameter error. | |
#define | ADDR_ESCAPE_CHAR (0xFF) |
Address escape character. | |
#define | UART_ERR_BREAK (0x08) |
#define | SimpleOpenSerial(p, b) OpenSerial(p, b, 1, 8, eParityNone) |
Simple open a serial port. More... | |
Functions | |
int | OpenSerial (int portnum, unsigned int baudrate, int stop_bits, int data_bits, parity_mode parity) |
Open a serial port. More... | |
int | SerialClose (int portnum) |
Close a serial port. More... | |
void | SerialEnableTxFlow (int port, int enab) |
Enable transmit software flow control on the specified UART. More... | |
void | SerialEnableRxFlow (int port, int enab) |
void | SerialEnableHwTxFlow (int port, int enab) |
void | SerialEnableHwRxFlow (int port, int enab) |
void | Serial485HalfDupMode (int port, int enab) |
void | SendBreak (int port, uint32_t time) |
int | serwriteaddress (int fd, const char c) |
int | GetUartErrorReg (int fd) |
BOOL | SerialSendComplete (int fd) |
NetBurner Serial API.