Initial commit of patty/kiss.h

This commit is contained in:
XANTRONIX Development 2015-07-01 21:30:03 -05:00
commit f539935ba7

26
include/patty/kiss.h Normal file
View file

@ -0,0 +1,26 @@
#ifndef _PATTY_KISS_H
#define _PATTY_KISS_H
#include <sys/types.h>
#define PATTY_KISS_FEND 0xc0
#define PATTY_KISS_FESC 0xdb
#define PATTY_KISS_TFEND 0xdc
#define PATTY_KISS_TFESC 0xdd
enum patty_kiss_command {
PATTY_KISS_DATA = 0x00,
PATTY_KISS_TXDELAY = 0x01,
PATTY_KISS_PERSISTENCE = 0x02,
PATTY_KISS_SLOT_TIME = 0x03,
PATTY_KISS_TX_TAIL = 0x04,
PATTY_KISS_FULL_DUPLEX = 0x05,
PATTY_KISS_HW_SET = 0x06,
PATTY_KISS_RETURN = 0xff
};
int patty_kiss_read(int fd, void *buf, size_t *len, int *channel);
int patty_kiss_write(int fd, const void *buf, size_t len, int channel);
#endif /* _PATTY_KISS_H */