#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdbool.h>
#include <time.h>
#include <sys/time.h>
#include <sched.h>
#include <pthread.h>
Go to the source code of this file.
Functions | |
bool | getSerial (void) |
void | lockSerial (bool lock) |
void | portClose (void) |
int | portDataAvail (void) |
void | portFlush (void) |
int | portGetchar (void) |
int | portOpen (char *device, int baud) |
void | portPutchar (int data) |
void | sendCmd (char cmd, char data1, char data2) |
Variables | |
bool | is_busy = false |
static int | portFd = -1 |
void lockSerial | ( | bool | lock | ) |
int portDataAvail | ( | void | ) |
int portGetchar | ( | void | ) |
void portPutchar | ( | int | data | ) |