aboutsummaryrefslogtreecommitdiff
path: root/services.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2014-12-23 13:38:57 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2014-12-27 22:39:07 +0100
commit7c0e1f7ffb750813a788940fdd55e9800c2f701d (patch)
treede7a200205b6d6725cdbd428dfedb0eac2a825a1 /services.h
downloadtrygvisio_soil_moisture-7c0e1f7ffb750813a788940fdd55e9800c2f701d.tar.gz
trygvisio_soil_moisture-7c0e1f7ffb750813a788940fdd55e9800c2f701d.tar.bz2
trygvisio_soil_moisture-7c0e1f7ffb750813a788940fdd55e9800c2f701d.tar.xz
trygvisio_soil_moisture-7c0e1f7ffb750813a788940fdd55e9800c2f701d.zip
o Initial import of trygvis.io soil moisture device.
Diffstat (limited to 'services.h')
-rw-r--r--services.h213
1 files changed, 213 insertions, 0 deletions
diff --git a/services.h b/services.h
new file mode 100644
index 0000000..0344b5f
--- /dev/null
+++ b/services.h
@@ -0,0 +1,213 @@
+/**
+* This file is autogenerated by nRFgo Studio 1.17.1.3252
+*/
+
+#ifndef SETUP_MESSAGES_H__
+#define SETUP_MESSAGES_H__
+
+#include "hal_platform.h"
+#include "aci.h"
+
+
+#define SETUP_ID 0
+#define SETUP_FORMAT 3 /** nRF8001 D */
+#define ACI_DYNAMIC_DATA_SIZE 165
+
+/* Service: Gap - Characteristic: Device name - Pipe: SET */
+#define PIPE_GAP_DEVICE_NAME_SET 1
+#define PIPE_GAP_DEVICE_NAME_SET_MAX_SIZE 10
+
+/* Service: Battery - Characteristic: Battery Level - Pipe: BROADCAST */
+#define PIPE_BATTERY_BATTERY_LEVEL_BROADCAST 2
+#define PIPE_BATTERY_BATTERY_LEVEL_BROADCAST_MAX_SIZE 1
+
+/* Service: Battery - Characteristic: Battery Level - Pipe: TX */
+#define PIPE_BATTERY_BATTERY_LEVEL_TX 3
+#define PIPE_BATTERY_BATTERY_LEVEL_TX_MAX_SIZE 1
+
+/* Service: Battery - Characteristic: Battery Level - Pipe: SET */
+#define PIPE_BATTERY_BATTERY_LEVEL_SET 4
+#define PIPE_BATTERY_BATTERY_LEVEL_SET_MAX_SIZE 1
+
+/* Service: Battery - Characteristic: Battery Power State - Pipe: SET */
+#define PIPE_BATTERY_BATTERY_POWER_STATE_SET 5
+#define PIPE_BATTERY_BATTERY_POWER_STATE_SET_MAX_SIZE 1
+
+/* Service: Battery - Characteristic: Battery Level State - Pipe: SET */
+#define PIPE_BATTERY_BATTERY_LEVEL_STATE_SET 6
+#define PIPE_BATTERY_BATTERY_LEVEL_STATE_SET_MAX_SIZE 2
+
+/* Service: Soil Moisture - Characteristic: Soil Moisture Level - Pipe: BROADCAST */
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_BROADCAST 7
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_BROADCAST_MAX_SIZE 5
+
+/* Service: Soil Moisture - Characteristic: Soil Moisture Level - Pipe: TX */
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_TX 8
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_TX_MAX_SIZE 5
+
+/* Service: Soil Moisture - Characteristic: Soil Moisture Level - Pipe: SET */
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_SET 9
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_SET_MAX_SIZE 5
+
+/* Service: Soil Moisture - Characteristic: Soil Moisture Level - Pipe: BROADCAST */
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_BROADCAST_1 10
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_BROADCAST_1_MAX_SIZE 5
+
+/* Service: Soil Moisture - Characteristic: Soil Moisture Level - Pipe: TX */
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_TX_1 11
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_TX_1_MAX_SIZE 5
+
+/* Service: Soil Moisture - Characteristic: Soil Moisture Level - Pipe: SET */
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_SET_1 12
+#define PIPE_SOIL_MOISTURE_SOIL_MOISTURE_LEVEL_SET_1_MAX_SIZE 5
+
+
+#define NUMBER_OF_PIPES 12
+
+#define SERVICES_PIPE_TYPE_MAPPING_CONTENT {\
+ {ACI_STORE_LOCAL, ACI_SET}, \
+ {ACI_STORE_LOCAL, ACI_TX_BROADCAST}, \
+ {ACI_STORE_LOCAL, ACI_TX}, \
+ {ACI_STORE_LOCAL, ACI_SET}, \
+ {ACI_STORE_LOCAL, ACI_SET}, \
+ {ACI_STORE_LOCAL, ACI_SET}, \
+ {ACI_STORE_LOCAL, ACI_TX_BROADCAST}, \
+ {ACI_STORE_LOCAL, ACI_TX}, \
+ {ACI_STORE_LOCAL, ACI_SET}, \
+ {ACI_STORE_LOCAL, ACI_TX_BROADCAST}, \
+ {ACI_STORE_LOCAL, ACI_TX}, \
+ {ACI_STORE_LOCAL, ACI_SET}, \
+}
+
+#define GAP_PPCP_MAX_CONN_INT 0xffff /**< Maximum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific value requested */
+#define GAP_PPCP_MIN_CONN_INT 0xffff /**< Minimum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific value requested */
+#define GAP_PPCP_SLAVE_LATENCY 0
+#define GAP_PPCP_CONN_TIMEOUT 0xffff /** Connection Supervision timeout multiplier as a multiple of 10msec, 0xFFFF means no specific value requested */
+
+#define NB_SETUP_MESSAGES 21
+#define SETUP_MESSAGES_CONTENT {\
+ {0x00,\
+ {\
+ 0x07,0x06,0x00,0x00,0x03,0x02,0x42,0x07,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x0c,0x01,0x01,0x00,0x00,0x06,0x00,0x01,\
+ 0x81,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x10,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x90,0x00,0xff,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x10,0x38,0xff,0xff,0x02,0x58,0x0a,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,\
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x05,0x06,0x10,0x54,0x00,0x00,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0x00,0x04,0x04,0x02,0x02,0x00,0x01,0x28,0x00,0x01,0x00,0x18,0x04,0x04,0x05,0x05,0x00,\
+ 0x02,0x28,0x03,0x01,0x0e,0x03,0x00,0x00,0x2a,0x04,0x14,0x0a,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0x1c,0x03,0x00,0x03,0x2a,0x00,0x01,0x77,0x61,0x74,0x64,0x69,0x63,0x73,0x65,0x6d,0x69,\
+ 0x04,0x04,0x05,0x05,0x00,0x04,0x28,0x03,0x01,0x02,0x05,0x00,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0x38,0x01,0x2a,0x06,0x04,0x03,0x02,0x00,0x05,0x2a,0x01,0x01,0x00,0x00,0x04,0x04,0x05,\
+ 0x05,0x00,0x06,0x28,0x03,0x01,0x02,0x07,0x00,0x04,0x2a,0x06,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0x54,0x04,0x09,0x08,0x00,0x07,0x2a,0x04,0x01,0xff,0xff,0xff,0xff,0x00,0x00,0xff,0xff,\
+ 0x04,0x04,0x02,0x02,0x00,0x08,0x28,0x00,0x01,0x01,0x18,0x04,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0x70,0x04,0x02,0x02,0x00,0x09,0x28,0x00,0x01,0x0f,0x18,0x04,0x04,0x05,0x05,0x00,0x0a,\
+ 0x28,0x03,0x01,0x12,0x0b,0x00,0x19,0x2a,0x16,0x04,0x02,0x01,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0x8c,0x00,0x0b,0x2a,0x19,0x01,0x10,0x46,0x14,0x03,0x02,0x00,0x0c,0x29,0x02,0x01,0x00,\
+ 0x00,0x04,0x04,0x05,0x05,0x00,0x0d,0x28,0x03,0x01,0x02,0x0e,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0xa8,0x00,0x1a,0x2a,0x06,0x04,0x02,0x01,0x00,0x0e,0x2a,0x1a,0x01,0x00,0x04,0x04,0x05,\
+ 0x05,0x00,0x0f,0x28,0x03,0x01,0x02,0x10,0x00,0x1b,0x2a,0x06,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0xc4,0x04,0x03,0x02,0x00,0x10,0x2a,0x1b,0x01,0x00,0x00,0x04,0x04,0x02,0x02,0x00,0x11,\
+ 0x28,0x00,0x01,0x10,0x00,0x04,0x04,0x05,0x05,0x00,0x12,0x28,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0xe0,0x03,0x01,0x12,0x13,0x00,0x11,0x00,0x16,0x04,0x06,0x05,0x00,0x13,0x00,0x11,0x01,\
+ 0xaa,0x55,0xaa,0x55,0xaa,0x46,0x14,0x03,0x02,0x00,0x14,0x29,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x20,0xfc,0x02,0x01,0x00,0x00,0x04,0x04,0x02,0x02,0x00,0x15,0x28,0x00,0x01,0x10,0x00,0x04,\
+ 0x04,0x05,0x05,0x00,0x16,0x28,0x03,0x01,0x12,0x17,0x00,0x11,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1e,0x06,0x21,0x18,0x00,0x14,0x04,0x05,0x00,0x00,0x17,0x00,0x11,0x01,0x00,0x00,0x00,0x00,0x00,0x46,\
+ 0x14,0x03,0x02,0x00,0x18,0x29,0x02,0x01,0x00,0x00,0x00,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x40,0x00,0x2a,0x00,0x01,0x00,0x80,0x04,0x00,0x03,0x00,0x00,0x2a,0x19,0x01,0x00,0x83,0x04,\
+ 0x00,0x0b,0x00,0x0c,0x2a,0x1a,0x01,0x00,0x80,0x04,0x00,0x0e,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x1f,0x06,0x40,0x1c,0x00,0x00,0x2a,0x1b,0x01,0x00,0x80,0x04,0x00,0x10,0x00,0x00,0x00,0x11,0x01,0x00,\
+ 0x83,0x04,0x00,0x13,0x00,0x14,0x00,0x11,0x01,0x00,0x83,0x04,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x07,0x06,0x40,0x38,0x00,0x17,0x00,0x18,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x15,0x06,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
+ 0x00,0x00,\
+ },\
+ },\
+ {0x00,\
+ {\
+ 0x06,0x06,0xf0,0x00,0x03,0xda,0x64,\
+ },\
+ },\
+}
+
+#endif