Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: af_utils/af_attributes.h
- Revision:
- 2:778a4d4436ff
- Parent:
- 0:f0de320e23ac
- Child:
- 3:cac964851bb6
diff -r 66c21c62c449 -r 778a4d4436ff af_utils/af_attributes.h
--- a/af_utils/af_attributes.h Fri Dec 01 07:24:51 2017 +0000
+++ b/af_utils/af_attributes.h Sun Dec 03 23:58:11 2017 +0000
@@ -32,6 +32,80 @@
#define MODULE_COMMAND_NONE 0
#define MODULE_COMMAND_REBOOT 1
+#define ATTR_SENSE_VAL 1
+#define ATTR_ACCEL_PRESENT 100
+#define ATTR_ACCEL_ENABLE 101
+#define ATTR_ACCEL_INTERVAL 102 /* 100ms */
+#define ATTR_ACCEL_VALUE 103
+
+#define ATTR_COLOR0_PRESENT 200
+#define ATTR_COLOR0_ENABLE 201
+#define ATTR_COLOR0_INTERVAL 202
+#define ATTR_COLOR0_TRIGMODE 203
+#define ATTR_COLOR0_ITIME 204
+#define ATTR_COLOR0_CALIBRATE 205
+#define ATTR_COLOR0_PWM_R 206
+#define ATTR_COLOR0_PWM_G 207
+#define ATTR_COLOR0_PWM_B 208
+#define ATTR_COLOR0_PWM_PERIOD 209
+#define ATTR_COLOR0_PWM_TARGET 210
+#define ATTR_COLOR0_R_VALUE 211
+#define ATTR_COLOR0_G_VALUE 212
+#define ATTR_COLOR0_B_VALUE 213
+
+#define ATTR_COLOR1_PRESENT 220
+#define ATTR_COLOR1_ENABLE 221
+#define ATTR_COLOR1_INTERVAL 222
+#define ATTR_COLOR1_TRIGMODE 223
+#define ATTR_COLOR1_ITIME 224
+#define ATTR_COLOR1_CALIBRATE 225
+#define ATTR_COLOR1_PWM_R 226
+#define ATTR_COLOR1_PWM_G 227
+#define ATTR_COLOR1_PWM_B 228
+#define ATTR_COLOR1_PWM_PERIOD 229
+#define ATTR_COLOR1_PWM_TARGET 230
+#define ATTR_COLOR1_R_VALUE 231
+#define ATTR_COLOR1_G_VALUE 232
+#define ATTR_COLOR1_B_VALUE 233
+
+/* temperature sensor LM75B with color0 */
+#define ATTR_TEMP0_PRESENT 300
+#define ATTR_TEMP0_ENABLE 301
+#define ATTR_TEMP0_INTERVAL 302
+#define ATTR_TEMP0_VALUE 303
+
+/* temperature sensor AT502-11 (before) */
+#define ATTR_TEMP1_PRESENT 310
+#define ATTR_TEMP1_ENABLE 311
+#define ATTR_TEMP1_INTERVAL 312
+#define ATTR_TEMP1_VALUE 313
+
+/* temperature sensor AT502-11 (after) */
+#define ATTR_TEMP2_PRESENT 320
+#define ATTR_TEMP2_ENABLE 321
+#define ATTR_TEMP2_INTERVAL 322
+#define ATTR_TEMP2_VALUE 323
+
+/* temperature sensor LM75B with color1 */
+#define ATTR_TEMP3_PRESENT 330
+#define ATTR_TEMP3_ENABLE 331
+#define ATTR_TEMP3_INTERVAL 332
+#define ATTR_TEMP3_VALUE 333
+
+/* gas pressure sensor */
+#define ATTR_GAS_PRESENT 400
+#define ATTR_GAS_ENABLE 401
+#define ATTR_GAS_INTERVAL 402
+#define ATTR_GAS_VALUE 403
+
+/* current trans sensor */
+#define ATTR_CURRENT_PRESENT 500
+#define ATTR_CURRENT_ENABLE 501
+#define ATTR_CURRENT_INTERVAL 502
+#define ATTR_CURRENT_VALUE 503
+
+#define ATTR_SOFTWARE_RESET 666
+
typedef struct {
uint16_t id ;
char *description ;