Complete sensor demo.
Dependencies: modem_ref_helper CRC X_NUCLEO_IKS01A1 DebouncedInterrupt
Diff: files.cpp
- Revision:
- 13:da8c0fa4de44
- Parent:
- 12:7a56e0705c9d
- Child:
- 15:1271f3566b98
diff -r 7a56e0705c9d -r da8c0fa4de44 files.cpp --- a/files.cpp Wed Oct 10 16:50:00 2018 +0000 +++ b/files.cpp Wed Oct 10 16:51:39 2018 +0000 @@ -6,7 +6,7 @@ #define __DEVICE_ID__ 0x00000010 alp_file_header_t h_rev = { - .perm = RW_R, + .perm = RWR_R_, .prop = FS_PERMANENT_NOTIF, .afid = FID_ACTP_RPT_FULL, .ifid = IFID_REPORT, @@ -35,7 +35,7 @@ }; alp_file_header_t h_alarm = { - .perm = RW_R, + .perm = RWRWR_, .prop = FS_VOLATILE, .afid = 0, .ifid = 0, @@ -46,7 +46,7 @@ uint8_t f_alarm = 255; #define HEADER_FILE_SENSOR_CONFIG(name) const alp_file_header_t h_sensor_config_##name = {\ - .perm = RW_R,\ + .perm = RWRWR_,\ .prop = FS_VOLATILE,\ .afid = 0,\ .ifid = 0,\ @@ -55,7 +55,7 @@ } #define HEADER_FILE_SENSOR_VALUE(name,_size) const alp_file_header_t h_sensor_value_##name = {\ - .perm = RW_R,\ + .perm = RWRWR_,\ .prop = FS_VOLATILE_NOTIF,\ .afid = FID_ACTP_RPT_FULL,\ .ifid = IFID_REPORT,\