aboutsummaryrefslogtreecommitdiff
path: root/port.h
blob: 9b86a4844b4f56ec42a380bcbdf236aa381e327f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef PORT_H
#define PORT_H

#include <libserialport.h>

#define ATTENTION_REQ	0x16
#define ATTENTION_ACK	0x13

void wait_calc(struct sp_port *port);
void send_calc_byte(struct sp_port *port, const char val);
enum sp_return calc_read(struct sp_port *port, unsigned char* buffer, size_t size);
struct sp_port* port_init(const char* device);

#endif