-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.h
47 lines (33 loc) · 981 Bytes
/
commands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//=========================================================================
// commands.h
//
// An interface for the RM3100 3-axis magnetometer from PNI Sensor Corp.
//
// Author: David Witten, KD0EAG
// Date: December 18, 2023
// License: GPL 3.0
// Note:
//
//
//=========================================================================
#ifndef SWXCOMMANDS_h
#define SWXCOMMANDS_h
#include "main.h"
#define USE_PIGPIO 0
#define USE_PIGPIO_IF2 1
#define USE_I2CFILES 0
#if(USE_I2CFILES)
#endif // USE_I2CFILES
#if(USE_PIGPIO)
#include <pigpio.h>
#endif // USE_PIGPIO
#if(USE_PIGPIO_IF2)
#include <pigpiod_if2.h>
int init_IO();
void terminate_IO(volatile ctlList *p);
void verifySensor(volatile ctlList *p);
int readSensor(volatile ctlList *ctl);
char *formatOutput(volatile ctlList *, char *outBuf);
int waitForRequest(volatile ctlList *);
#endif // USE_PIGPIO_IF2
#endif //SWXCOMMANDS_h