#include "../fb.h"
#include <sys/ioctl.h>
#include <sys/select.h>
#include <signal.h>
#include <fcntl.h>
Go to the source code of this file.
|
static void | alrm () |
|
static speed_t | get_speed (int speed) |
|
int | fb_SerialOpen (FB_FILE *handle, int iPort, FB_SERIAL_OPTIONS *options, const char *pszDevice, void **ppvHandle) |
|
int | fb_SerialGetRemaining (FB_FILE *handle, void *pvHandle, fb_off_t *pLength) |
|
int | fb_SerialWrite (FB_FILE *handle, void *pvHandle, const void *data, size_t length) |
|
int | fb_SerialRead (FB_FILE *handle, void *pvHandle, void *data, size_t *pLength) |
|
int | fb_SerialClose (FB_FILE *handle, void *pvHandle) |
|
#define BUFFERSIZE BUFSIZ*16 |
#define SERIAL_TIMEOUT 3 /* seconds for write on open*/ |
#define SREAD_TIMEOUT 70 /* if not receive any character in less 50 millisecs finish read process */ |
int fb_SerialClose |
( |
FB_FILE * |
handle, |
|
|
void * |
pvHandle |
|
) |
| |
int fb_SerialGetRemaining |
( |
FB_FILE * |
handle, |
|
|
void * |
pvHandle, |
|
|
fb_off_t * |
pLength |
|
) |
| |
int fb_SerialOpen |
( |
FB_FILE * |
handle, |
|
|
int |
iPort, |
|
|
FB_SERIAL_OPTIONS * |
options, |
|
|
const char * |
pszDevice, |
|
|
void ** |
ppvHandle |
|
) |
| |
int fb_SerialRead |
( |
FB_FILE * |
handle, |
|
|
void * |
pvHandle, |
|
|
void * |
data, |
|
|
size_t * |
pLength |
|
) |
| |
int fb_SerialWrite |
( |
FB_FILE * |
handle, |
|
|
void * |
pvHandle, |
|
|
const void * |
data, |
|
|
size_t |
length |
|
) |
| |
static speed_t get_speed |
( |
int |
speed) | |
|
|
static |