#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include "serial.h"
Go to the source code of this file.
Functions | |
void | SerialFree (struct serial *sn) |
const char * | SerialInit (struct serial *sn, const char *Device, enum SerialBaud Baud, enum SerialStopbits StopBits, enum SerialProtocol Protocol, enum SerialParity Parity, enum SerialDatabits DataBits, int dowrite) |
int | SerialRead (struct serial *sn, char *buffer, size_t size) |
int | SerialWrite (struct serial *sn, const char *buffer, size_t size) |
void SerialFree | ( | struct serial * | sn | ) |
Definition at line 32 of file serial.cpp.
const char* SerialInit | ( | struct serial * | sn, |
const char * | Device, | ||
enum SerialBaud | Baud, | ||
enum SerialStopbits | StopBits, | ||
enum SerialProtocol | Protocol, | ||
enum SerialParity | Parity, | ||
enum SerialDatabits | DataBits, | ||
int | dowrite | ||
) |
Definition at line 43 of file serial.cpp.
int SerialRead | ( | struct serial * | sn, |
char * | buffer, | ||
size_t | size | ||
) |
Definition at line 73 of file serial.cpp.
int SerialWrite | ( | struct serial * | sn, |
const char * | buffer, | ||
size_t | size | ||
) |
Definition at line 86 of file serial.cpp.