First commit

This commit is contained in:
Steffen Lange 2018-04-08 21:34:42 +02:00
commit 0a28bac78a
37 changed files with 1963 additions and 0 deletions

20
diygeiger.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef _DIYGEIGER_H_
#define _DIYGEIGER_H_
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include <sys/stat.h>
/*
Specification of GC10 Data I/O Interface: http://netiodev.com/GC10/GC10_UART_SPEC.pdf
*/
int diy_open(const char *device);
void diy_close(int device);
int diy_get_cpm(int device);
int diy_read(int device, char *buf, unsigned int len);
#endif