#include "rs232.h"
Go to the source code of this file.
Functions | |
void | CloseComport (int comport_number) |
void | cprintf (int comport_number, const char *text) |
int | IsCTSEnabled (int comport_number) |
int | OpenComport (int comport_number, int baudrate) |
int | PollComport (int comport_number, unsigned char *buf, int size) |
int | SendBuf (int comport_number, unsigned char *buf, int size) |
int | SendByte (int comport_number, unsigned char byte) |
Variables | |
char | baudr [64] |
char | comports [16][10] |
HANDLE | Cport [16] |
void CloseComport | ( | int | comport_number | ) |
Definition at line 362 of file src/rs232.cpp.
void cprintf | ( | int | comport_number, |
const char * | text | ||
) |
Definition at line 382 of file src/rs232.cpp.
int IsCTSEnabled | ( | int | comport_number | ) |
Definition at line 368 of file src/rs232.cpp.
int OpenComport | ( | int | comport_number, |
int | baudrate | ||
) |
Definition at line 229 of file src/rs232.cpp.
int PollComport | ( | int | comport_number, |
unsigned char * | buf, | ||
int | size | ||
) |
Definition at line 322 of file src/rs232.cpp.
int SendBuf | ( | int | comport_number, |
unsigned char * | buf, | ||
int | size | ||
) |
Definition at line 349 of file src/rs232.cpp.
int SendByte | ( | int | comport_number, |
unsigned char | byte | ||
) |
Definition at line 337 of file src/rs232.cpp.
char baudr[64] |
Definition at line 226 of file src/rs232.cpp.
char comports[16][10] |
{"\\\\.\\COM1", "\\\\.\\COM2", "\\\\.\\COM3", "\\\\.\\COM4", "\\\\.\\COM5", "\\\\.\\COM6", "\\\\.\\COM7", "\\\\.\\COM8", "\\\\.\\COM9", "\\\\.\\COM10", "\\\\.\\COM11", "\\\\.\\COM12", "\\\\.\\COM13", "\\\\.\\COM14", "\\\\.\\COM15", "\\\\.\\COM16"}
Definition at line 221 of file src/rs232.cpp.
HANDLE Cport[16] |
Definition at line 218 of file src/rs232.cpp.