Functions | Variables
serial.c File Reference
#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>
Include dependency graph for serial.c:

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

Function Documentation

bool getSerial ( void  )

Definition at line 148 of file serial.c.

void lockSerial ( bool  lock)

Definition at line 143 of file serial.c.

void portClose ( void  )

Definition at line 94 of file serial.c.

int portDataAvail ( void  )

Definition at line 100 of file serial.c.

void portFlush ( void  )

Definition at line 89 of file serial.c.

int portGetchar ( void  )

Definition at line 110 of file serial.c.

int portOpen ( char *  device,
int  baud 
)

Definition at line 21 of file serial.c.

void portPutchar ( int  data)

Definition at line 126 of file serial.c.

void sendCmd ( char  cmd,
char  data1,
char  data2 
)

Definition at line 132 of file serial.c.


Variable Documentation

bool is_busy = false

Definition at line 19 of file serial.c.

int portFd = -1 [static]

Definition at line 18 of file serial.c.



mrp2_display
Author(s): Bolkar Altuntas
autogenerated on Thu Jun 6 2019 21:43:35