1 // ********************************************************************* 2 // IQRF standards header file * 3 // ********************************************************************* 4 // Copyright (c) IQRF Tech s.r.o. 5 // 6 // File: $RCSfile: IQRFstandard.h,v $ 7 // Version: $Revision: 1.4 $ 8 // Date: $Date: 2017/08/22 12:15:42 $ 9 // 10 // Revision history: 11 // 2017/08/14 Release for DPA 3.01 12 // 13 // ********************************************************************* 14 15 // Online DPA documentation http://www.iqrf.org/DpaTechGuide/ 16 17 #ifndef _IQRFSTD_HEADER_ 18 #define _IQRFSTD_HEADER_ 19 20 //############################################################################################ 21 22 // Enumerate command valid for all standards 23 #define PCMD_STD_ENUMERATE 0x3E 24 25 // ------------------------------------------------------------------------------------------- 26 // IQRF Sensors standard 27 // ------------------------------------------------------------------------------------------- 28 // IQRF Sensors standard peripheral 29 #define PNUM_STD_SENSORS 0x5E 30 // IQRF Sensors standard peripheral type 31 #define PERIPHERAL_TYPE_STD_SENSORS 0x5E 32 33 // IQRF Sensors standard peripheral - read sensor values command 34 #define PCMD_STD_SENSORS_READ_VALUES 0x00 35 // IQRF Sensors standard peripheral - read sensor types and values command 36 #define PCMD_STD_SENSORS_READ_TYPES_AND_VALUES 0x01 37 38 // IQRF Sensors standard peripheral - sensor types 39 // 2 bytes 40 #define STD_SENSOR_TYPE_TEMPERATURE 0x01 41 #define STD_SENSOR_TYPE_CO2 0x02 42 #define STD_SENSOR_TYPE_VOC 0x03 43 #define STD_SENSOR_TYPE_EXTRA_LOW_VOLTAGE 0x04 44 #define STD_SENSOR_TYPE_EARTHS_MAGNETIC_FIELD 0x05 45 46 // 1 byte 47 #define STD_SENSOR_TYPE_HUMIDITY 0x80 48 #define STD_SENSOR_TYPE_BINARYDATA7 0x81 49 50 // 4 bytes 51 #define STD_SENSOR_TYPE_BINARYDATA30 0xA0 52 53 // IQRF Sensors standard peripheral - FRC commands 54 #define FRC_STD_SENSORS_BIT 0x10 55 #define FRC_STD_SENSORS_1B 0x90 56 #define FRC_STD_SENSORS_2B 0xE0 57 58 // ------------------------------------------------------------------------------------------- 59 // IQRF Binary Outputs standard 60 // ------------------------------------------------------------------------------------------- 61 // IQRF Binary Outputs standard peripheral 62 #define PNUM_STD_BINARY_OUTPUTS 0x4B 63 // IQRF Binary Outputs peripheral type 64 #define PERIPHERAL_TYPE_STD_BINARY_OUTPUTS 0x4B 65 66 // IQRF Sensors standard peripheral - read sensor values command 67 #define PCMD_STD_BINARY_OUTPUTS_SET 0x00 68 69 // ------------------------------------------------------------------------------------------- 70 // IQRF Light standard 71 // ------------------------------------------------------------------------------------------- 72 // IQRF Light standard peripheral 73 #define PNUM_STD_LIGHT 0x71 74 // IQRF Light standard peripheral type 75 #define PERIPHERAL_TYPE_STD_LIGHT 0x71 76 77 // IQRF Light standard peripheral - Set Power 78 #define PCMD_STD_LIGHT_SET 0x00 79 // IQRF Light standard peripheral - Increment Power 80 #define PCMD_STD_LIGHT_INC 0x01 81 // IQRF Light standard peripheral - Decrement Power 82 #define PCMD_STD_LIGHT_DEC 0x02 83 84 // IQRF Sensors standard peripheral - FRC commands 85 #define FRC_STD_LIGHT_ONOFF 0x10 86 #define FRC_STD_LIGHT_ALARM 0x11 87 88 // ------------------------------------------------------------------------------------------- 89 90 #endif // _IQRFSTD_HEADER_ 91 92 //############################################################################################