Go to the source code of this file.
Functions | |
void | RS232_CloseComport (int comport_number) |
void | RS232_cputs (int comport_number, const char *text) |
void | RS232_disableDTR (int comport_number) |
void | RS232_disableRTS (int comport_number) |
void | RS232_enableDTR (int comport_number) |
void | RS232_enableRTS (int comport_number) |
int | RS232_IsCTSEnabled (int comport_number) |
int | RS232_IsDCDEnabled (int comport_number) |
int | RS232_IsDSREnabled (int comport_number) |
int | RS232_OpenComport (int comport_number, int baudrate, const char *mode) |
int | RS232_PollComport (int comport_number, unsigned char *buf, int size) |
int | RS232_SendBuf (int comport_number, unsigned char *buf, int size) |
int | RS232_SendByte (int comport_number, unsigned char byte) |
Variables | |
char | comports [16][10] |
HANDLE | Cport [16] |
char | mode_str [128] |
void RS232_CloseComport | ( | int | comport_number | ) |
void RS232_cputs | ( | int | comport_number, |
const char * | text | ||
) |
void RS232_disableDTR | ( | int | comport_number | ) |
void RS232_disableRTS | ( | int | comport_number | ) |
void RS232_enableDTR | ( | int | comport_number | ) |
void RS232_enableRTS | ( | int | comport_number | ) |
int RS232_IsCTSEnabled | ( | int | comport_number | ) |
int RS232_IsDCDEnabled | ( | int | comport_number | ) |
int RS232_IsDSREnabled | ( | int | comport_number | ) |
int RS232_OpenComport | ( | int | comport_number, |
int | baudrate, | ||
const char * | mode | ||
) |
int RS232_PollComport | ( | int | comport_number, |
unsigned char * | buf, | ||
int | size | ||
) |
int RS232_SendBuf | ( | int | comport_number, |
unsigned char * | buf, | ||
int | size | ||
) |
int RS232_SendByte | ( | int | comport_number, |
unsigned char | byte | ||
) |
char comports[16][10] |
{"\\\\.\\COM1", "\\\\.\\COM2", "\\\\.\\COM3", "\\\\.\\COM4", "\\\\.\\COM5", "\\\\.\\COM6", "\\\\.\\COM7", "\\\\.\\COM8", "\\\\.\\COM9", "\\\\.\\COM10", "\\\\.\\COM11", "\\\\.\\COM12", "\\\\.\\COM13", "\\\\.\\COM14", "\\\\.\\COM15", "\\\\.\\COM16"}