Generic communication interface between the wireless board (mote) and the sensor board. Any kind of sensor board can be connected to the mote using this specification given it provides a SPI peripheral, one input pin with interrupt capability and one digital output. The sensor board must implement a special register set from which all required information can be retrieved. Protocol: http://is.gd/wuQorh Github: http://is.gd/ySj1L9

Dependencies:   mbed-src

Committer:
marcelobarrosalmeida
Date:
Tue Apr 08 16:34:20 2014 +0000
Revision:
1:acdf490d94a7
Adding accel to sensor list

Who changed what in which revision?

UserRevisionLine numberNew contents of line
marcelobarrosalmeida 1:acdf490d94a7 1 /*
marcelobarrosalmeida 1:acdf490d94a7 2 * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
marcelobarrosalmeida 1:acdf490d94a7 3 * Copyright (c) 2006 Christian Walter <wolti@sil.at>
marcelobarrosalmeida 1:acdf490d94a7 4 * All rights reserved.
marcelobarrosalmeida 1:acdf490d94a7 5 *
marcelobarrosalmeida 1:acdf490d94a7 6 * Redistribution and use in source and binary forms, with or without
marcelobarrosalmeida 1:acdf490d94a7 7 * modification, are permitted provided that the following conditions
marcelobarrosalmeida 1:acdf490d94a7 8 * are met:
marcelobarrosalmeida 1:acdf490d94a7 9 * 1. Redistributions of source code must retain the above copyright
marcelobarrosalmeida 1:acdf490d94a7 10 * notice, this list of conditions and the following disclaimer.
marcelobarrosalmeida 1:acdf490d94a7 11 * 2. Redistributions in binary form must reproduce the above copyright
marcelobarrosalmeida 1:acdf490d94a7 12 * notice, this list of conditions and the following disclaimer in the
marcelobarrosalmeida 1:acdf490d94a7 13 * documentation and/or other materials provided with the distribution.
marcelobarrosalmeida 1:acdf490d94a7 14 * 3. The name of the author may not be used to endorse or promote products
marcelobarrosalmeida 1:acdf490d94a7 15 * derived from this software without specific prior written permission.
marcelobarrosalmeida 1:acdf490d94a7 16 *
marcelobarrosalmeida 1:acdf490d94a7 17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
marcelobarrosalmeida 1:acdf490d94a7 18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
marcelobarrosalmeida 1:acdf490d94a7 19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
marcelobarrosalmeida 1:acdf490d94a7 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
marcelobarrosalmeida 1:acdf490d94a7 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
marcelobarrosalmeida 1:acdf490d94a7 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
marcelobarrosalmeida 1:acdf490d94a7 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
marcelobarrosalmeida 1:acdf490d94a7 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
marcelobarrosalmeida 1:acdf490d94a7 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
marcelobarrosalmeida 1:acdf490d94a7 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
marcelobarrosalmeida 1:acdf490d94a7 27 *
marcelobarrosalmeida 1:acdf490d94a7 28 */
marcelobarrosalmeida 1:acdf490d94a7 29
marcelobarrosalmeida 1:acdf490d94a7 30 #ifndef _MB_CRC_H
marcelobarrosalmeida 1:acdf490d94a7 31 #define _MB_CRC_H
marcelobarrosalmeida 1:acdf490d94a7 32
marcelobarrosalmeida 1:acdf490d94a7 33 uint16_t crc16_calc(uint8_t *frame, uint16_t len);
marcelobarrosalmeida 1:acdf490d94a7 34
marcelobarrosalmeida 1:acdf490d94a7 35 #endif