XBee API operation library for mbed
Embed:
(wiki syntax)
Show/hide line numbers
SensorReadIndicator.h
00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_SensorReadIndicator 00002 #define UK_AC_HERTS_SMARTLAB_XBEE_SensorReadIndicator 00003 00004 #include "RxBase.h" 00005 #include "Address.h" 00006 00007 class SensorReadIndicator: public RxBase 00008 { 00009 public: 00010 SensorReadIndicator(APIFrame * frame); 00011 00012 Address GetRemoteDevice(); 00013 00014 /** 00015 * bit mask 00016 * SUCCESS = 0x00, 00017 * PACKET_ACKNOWLEDGED = 0x01, 00018 * PACKET_WAS_A_BROADCAST = 0x02, 00019 * PACKET_RECEIVED_ON_BOARDCAST_PAN = 0x04, 00020 * PACKET_ENCRYPTED_WITH_APS_ENCRYPTION = 0x20, 00021 * PACKET_WAS_SENT_FROM_AN_END_DEVICE = 0x40, 00022 */ 00023 int GetReceiveStatus(); 00024 00025 /** 00026 * AD_SENSOR_READ = 0x01, 00027 * TEMPERATURE_SENSOR_READ = 0x02, 00028 * HUMIDITY_SENSOR_READ = 0x03, 00029 * WATER_PRESENT = 0x60, 00030 */ 00031 int GetOneWireSensor(); 00032 00033 int GetAD0(); 00034 00035 int GetAD1(); 00036 00037 int GetAD2(); 00038 00039 int GetAD3(); 00040 00041 int GetThemometer(); 00042 00043 bool convert(APIFrame * frame); 00044 }; 00045 00046 #endif
Generated on Tue Jul 12 2022 11:17:04 by 1.7.2