attributes.h

来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C头文件 代码 · 共 62 行

H
62
字号
//  This file is part of MANTIS OS, Operating System//  See http://mantis.cs.colorado.edu/////  Copyright (C) 2003-2005 University of Colorado, Boulder////  This program is free software; you can redistribute it and/or//  modify it under the terms of the mos license (see file LICENSE)/**************************************************************************//* File:    attributes.h                                                  *//* Author     Jeff Rose   :  rosejn@colorado.edu                          *//*   Date: 03/23/04                                                       *//*                                                                        *//* These are the supported attributes that are built into cortex.         *//**************************************************************************/#ifndef _ATTRIBUTES_H_#define _ATTRIBUTES_H_#include <glib.h>#include "snet.h"#define ATTR_HISTORY_SIZE 600 // Max number of data points to store#define ATTR_LOCATION           1000#define ATTR_LIGHT_SENSOR       1001#define ATTR_TEMP_SENSOR        1002#define ATTR_BEDREST            1003typedef struct _location_attr{   gint x;   gint y;}location_attr_t;typedef struct _bedrest_addr{   gint battery;   gint light;   gint temp;   gint accelx;   gint accely;   gint txpower;   gint rssi;   GTimeVal time;}bedrest_attr_t;typedef struct _sensor_data{   gint value;   GTimeVal time;}sensor_data_t;typedef struct _sensor_attr{   GQueue *data_points;}sensor_attr_t;#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?