]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmirws/sensors/AeroVane.h
Teach aerovector_t that it can be null, via a special value in its dir member.
[tinyos-2.x.git] / tos / platforms / tmirws / sensors / AeroVane.h
index 3e90ef396845b37493abb610f59113cbde2c0417..9c02b5c32d6940129908d19ef357b2237d4e3457 100644 (file)
 #ifndef AEROVANE_H
 #define AEROVANE_H
 
+enum {
+  AEROVANE_VECTOR_NULL = 65535U, /* Null vector has this value as dir */
+};
+
 typedef struct {
   uint16_t dir;                /* Vane position. 0...1023; 360 degrees = 1024 */
   uint16_t speed;      /* Anemometer revolutions over reading period. */