mirror of
https://github.com/lindbergh-loader/lindbergh-loader.git
synced 2026-10-13 01:28:20 +03:00
21 lines
428 B
C
21 lines
428 B
C
#define JVSBUFFER_SIZE 1024
|
|
|
|
typedef struct {
|
|
int ctsCounter;
|
|
int ready;
|
|
int size;
|
|
char buffer[JVSBUFFER_SIZE];
|
|
} JVSFrame;
|
|
|
|
int getDCD(int fd);
|
|
int getDSR(int fd);
|
|
int getCTS(int fd);
|
|
|
|
JVSFrame readJVSFrameFromThread(int fd);
|
|
int startJVSFrameThread(int * fd);
|
|
void * readJVSFrameThread(void * arg);
|
|
|
|
int openJVSSerial(char *jvsPath);
|
|
int initJVSSerial(int fd);
|
|
int readJVSFrame(int fd, unsigned char *buffer);
|