#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 <time.h>
#include <sys/time.h>
#include <sched.h>
#include <pthread.h>
#include "geniePi.h"
Go to the source code of this file.
Defines |
#define | FALSE (1==0) |
#define | MAX_GENIE_REPLYS 16 |
#define | TRUE (1==1) |
Functions |
static int | _genieReadObj (int object, int index) |
static int | _genieSetPin (int mode, int pin) |
static int | _genieWriteContrast (int value) |
static int | _genieWriteObj (int object, int index, unsigned int data) |
static int | _genieWriteStr (int index, char *string) |
static int | _genieWriteStrU (int index, char *string) |
static void | delay (unsigned int howLong) |
static void | delayMicroseconds (unsigned int howLong) |
void | genieClose (void) |
static int | genieDataAvail (int fd) |
static void | genieFlush (int fd) |
static int | genieGetchar (void) |
void | genieGetReply (struct genieReplyStruct *reply) |
static int | genieOpen (char *device, int baud) |
static void | geniePutchar (int data) |
int | genieReadObj (int object, int index) |
int | genieReplyAvail (void) |
static void * | genieReplyListener (void *data) |
int | genieSetPin (int mode, int pin) |
int | genieSetup (char *device, int baud) |
int | genieWriteContrast (int value) |
int | genieWriteObj (int object, int index, unsigned int data) |
int | genieWriteStr (int index, char *string) |
int | genieWriteStrU (int index, char *string) |
static unsigned int | millis (void) |
Variables |
static unsigned long long | epoch |
static int | genieAck = FALSE |
static int | genieChecksumErrors = 0 |
static int | genieFd = -1 |
static pthread_mutex_t | genieMutex |
static int | genieNak = FALSE |
static struct genieReplyStruct | genieReplys [MAX_GENIE_REPLYS] |
static int | genieReplysHead = 0 |
static int | genieReplysTail = 0 |
static int | genieTimeouts = 0 |
Define Documentation
Function Documentation
static int _genieWriteObj |
( |
int |
object, |
|
|
int |
index, |
|
|
unsigned int |
data |
|
) |
| [static] |
static void delay |
( |
unsigned int |
howLong | ) |
[static] |
static int genieOpen |
( |
char * |
device, |
|
|
int |
baud |
|
) |
| [static] |
static unsigned int millis |
( |
void |
| ) |
[static] |
Variable Documentation
unsigned long long epoch [static] |