test code 123

Dependencies:   mbed

Fork of LinkNode-Test by Qi Yao

Revision:
0:1ad0e04b1bc5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nRF51822_Science_Journal/config_change.h	Thu Sep 01 05:14:03 2016 +0000
@@ -0,0 +1,39 @@
+/*
+ *  Copyright 2016 Google Inc. All Rights Reserved.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+#ifndef _CONFIG_CHANGE_H_
+#define _CONFIG_CHANGE_H_
+#include "pb_decode.h"
+#include "pb.h"
+#include "sensor.pb.h"
+#include "goosci_utility.h"
+#include "pb_common.h"
+#include "pb_encode.h"
+
+
+
+enum PinType {
+  ANALOG = 1,
+  DIGITAL = 2,
+  VIRTUAL = 3,
+};
+
+extern PinType pin_type;
+extern int pin;
+
+bool decode_pin(pb_istream_t *stream, const pb_field_t *field, void * *arg);
+void handle(uint8_t* data, int8_t length);
+
+#endif