test code 123

Dependencies:   mbed

Fork of LinkNode-Test by Qi Yao

Committer:
youkee
Date:
Fri Oct 28 13:04:10 2016 +0000
Revision:
1:b0d4fbbdb244
Parent:
0:1ad0e04b1bc5
ghhbfdd

Who changed what in which revision?

UserRevisionLine numberNew contents of line
youkee 0:1ad0e04b1bc5 1 /*
youkee 0:1ad0e04b1bc5 2 * Copyright 2016 Google Inc. All Rights Reserved.
youkee 0:1ad0e04b1bc5 3 *
youkee 0:1ad0e04b1bc5 4 * Licensed under the Apache License, Version 2.0 (the "License");
youkee 0:1ad0e04b1bc5 5 * you may not use this file except in compliance with the License.
youkee 0:1ad0e04b1bc5 6 * You may obtain a copy of the License at
youkee 0:1ad0e04b1bc5 7 *
youkee 0:1ad0e04b1bc5 8 * http://www.apache.org/licenses/LICENSE-2.0
youkee 0:1ad0e04b1bc5 9 *
youkee 0:1ad0e04b1bc5 10 * Unless required by applicable law or agreed to in writing, software
youkee 0:1ad0e04b1bc5 11 * distributed under the License is distributed on an "AS IS" BASIS,
youkee 0:1ad0e04b1bc5 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
youkee 0:1ad0e04b1bc5 13 * See the License for the specific language governing permissions and
youkee 0:1ad0e04b1bc5 14 * limitations under the License.
youkee 0:1ad0e04b1bc5 15 */
youkee 0:1ad0e04b1bc5 16 #ifndef _CONFIG_CHANGE_H_
youkee 0:1ad0e04b1bc5 17 #define _CONFIG_CHANGE_H_
youkee 0:1ad0e04b1bc5 18 #include "pb_decode.h"
youkee 0:1ad0e04b1bc5 19 #include "pb.h"
youkee 0:1ad0e04b1bc5 20 #include "sensor.pb.h"
youkee 0:1ad0e04b1bc5 21 #include "goosci_utility.h"
youkee 0:1ad0e04b1bc5 22 #include "pb_common.h"
youkee 0:1ad0e04b1bc5 23 #include "pb_encode.h"
youkee 0:1ad0e04b1bc5 24
youkee 0:1ad0e04b1bc5 25
youkee 0:1ad0e04b1bc5 26
youkee 0:1ad0e04b1bc5 27 enum PinType {
youkee 0:1ad0e04b1bc5 28 ANALOG = 1,
youkee 0:1ad0e04b1bc5 29 DIGITAL = 2,
youkee 0:1ad0e04b1bc5 30 VIRTUAL = 3,
youkee 0:1ad0e04b1bc5 31 };
youkee 0:1ad0e04b1bc5 32
youkee 0:1ad0e04b1bc5 33 extern PinType pin_type;
youkee 0:1ad0e04b1bc5 34 extern int pin;
youkee 0:1ad0e04b1bc5 35
youkee 0:1ad0e04b1bc5 36 bool decode_pin(pb_istream_t *stream, const pb_field_t *field, void * *arg);
youkee 0:1ad0e04b1bc5 37 void handle(uint8_t* data, int8_t length);
youkee 0:1ad0e04b1bc5 38
youkee 0:1ad0e04b1bc5 39 #endif