00001 /*This file has been prepared for Doxygen automatic documentation generation.*/ 00019 /* Copyright (c) 2009 Atmel Corporation. All rights reserved. 00020 * 00021 * Redistribution and use in source and binary forms, with or without 00022 * modification, are permitted provided that the following conditions are met: 00023 * 00024 * 1. Redistributions of source code must retain the above copyright notice, this 00025 * list of conditions and the following disclaimer. 00026 * 00027 * 2. Redistributions in binary form must reproduce the above copyright notice, 00028 * this list of conditions and the following disclaimer in the documentation 00029 * and/or other materials provided with the distribution. 00030 * 00031 * 3. The name of Atmel may not be used to endorse or promote products derived 00032 * from this software without specific prior written permission. 00033 * 00034 * 4. This software may only be redistributed and used in connection with an Atmel 00035 * AVR product. 00036 * 00037 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00038 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00039 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00040 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00041 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00042 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00043 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00044 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00045 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00046 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 00047 * 00048 */ 00049 00050 #ifndef __SENSOR_H__ 00051 #define __SENSOR_H__ 00052 00053 #include "compiler.h" 00054 #include "FreeRTOS.h" 00055 00056 #include "shell.h" 00057 #include "datalog.h" 00058 00059 00060 //_____ M A C R O S ________________________________________________________ 00061 00062 #define SENSOR_MSG_ALARM_ON "alarm=on"CRLF 00063 #define SENSOR_MSG_ALARM_OFF "alarm=off"CRLF 00064 #define SENSOR_MSG_CONFIG_SET SHELL_MSG_CONFIG_SET 00065 //_____ D E C L A R A T I O N S ____________________________________________ 00066 00072 Bool bsensor_start( void ); 00073 00077 void v_sensor_stop( void ); 00078 00086 Bool b_sensor_get_value( xLogDef *pxLog ); 00087 00088 00089 00112 eExecStatus e_sensor_cmd_get_value( eModId xModId, signed short FsNavId, 00113 int ac, signed portCHAR *av[], 00114 signed portCHAR **ppcStringReply ); 00115 00116 00135 eExecStatus e_sensor_cmd_get_config( eModId xModId, signed short FsNavId, 00136 int ac, signed portCHAR *av[], 00137 signed portCHAR **ppcStringReply ); 00138 00139 00160 eExecStatus e_sensor_cmd_set_config( eModId xModId, signed short FsNavId, 00161 int ac, signed portCHAR *av[], 00162 signed portCHAR **ppcStringReply ); 00163 00164 00182 eExecStatus e_sensor_help( eModId xModId, signed short FsNavId, 00183 int ac, signed portCHAR *av[], 00184 signed portCHAR **ppcStringReply ); 00185 00186 #endif // __SENSOR_H__