/*****************************************************************************************/ /* Filename : SenseToRadio.h */ /*****************************************************************************************/ /* */ /* This code is intended for the EasySen SBT80 Sensor board along with TelosB */ /* family of wireless motes. It samples the 8 sensor channels in the following order: */ /* Visual Light (VL), Microphone (MIC), Infrared (IR), Temperature (TEMP), */ /* Acceleration over x axis (ACCx), Acceleration over y axis (ACCy), */ /* Magnetic field over x axis (MGx), Magnetic field over y axis (MGy). */ /* Sampling is performed over each ADC channel individually. */ /* */ /* For further details, please refer to README.txt and */ /* Guide_to_TinyOS20_code_for_EasySen_SensorBoards.doc */ /* */ /* Disclaimer: Easysen does not take on any liability for the use of this code. */ /* This code is not designed for use in critical or life support systems */ /* where failure to perform affects safety or effectiveness or results in */ /* any personal injury to the user. This code is available for free downloading */ /* at www.easysen.com, and not for sale. */ /* */ /*****************************************************************************************/ #ifndef SENSETORADIO_H #define SENSETORADIO_H enum { AM_SENSETORADIOMSG = 6, BUFFER_SIZE = 8, }; typedef nx_struct SenseToRadioMsg { nx_uint16_t nodeid; nx_uint16_t counter; nx_uint16_t data[BUFFER_SIZE]; } SenseToRadioMsg; #endif