summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bg96.h16
-rw-r--r--include/gpio.h4
-rw-r--r--include/serial.h3
3 files changed, 20 insertions, 3 deletions
diff --git a/include/bg96.h b/include/bg96.h
new file mode 100644
index 0000000..116b4ab
--- /dev/null
+++ b/include/bg96.h
@@ -0,0 +1,16 @@
+#ifndef __INCLUDE_BG96__
+#define __INCLUDE_BG96__
+
+int powerOn(char *pathToPort, char *pathToChip, int statusPin, int pwrKeyPin);
+
+int powerOff(char *pathToPort, char *pathToChip, int statusPin, int pwrKeyPin);
+
+int setupPublicConnection(char *pathToPort);
+
+int waitForConnection(char *pathToPort, int waitTimeSeconds);
+
+int tcpipInit(char *pathToPort);
+
+int tcpipClose(char *pathToPort);
+
+#endif
diff --git a/include/gpio.h b/include/gpio.h
index e90a374..4faf2b1 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -1,8 +1,8 @@
#ifndef __INCLUDE_GPIO__
#define __INCLUDE_GPIO__
-int modemPowerToggle(int pinNumber);
+int modemPowerToggle(char *pathToChip, int pinNum);
-int checkPinVal(int pinNum);
+int checkPinVal(char *pathToChip, int pinNum);
#endif
diff --git a/include/serial.h b/include/serial.h
index a4ccb35..ccf0c6e 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -3,6 +3,7 @@
int openSerialPort(char pathToPort[]);
-int querySerialPort(char **output, int serialPort, char *input);
+int querySerialPort(char **output, int serialPort, char *input,
+ int timeoutSeconds);
#endif