Fork for Get Started Demo
Dependencies: DebouncedInterrupt dash7-alp mbed-rtos mbed wizzi-utils
Fork of D7A_Demo_full by
files.cpp
- Committer:
- Jeej
- Date:
- 2016-02-15
- Revision:
- 17:cc5aa9de745a
- Parent:
- 11:1a5a4f7cc5d3
- Child:
- 13:218d2b6a9390
File content as of revision 17:cc5aa9de745a:
#include "files.h" #include "alp.h" revision_t revision = { .nw_stat = 0, .nw_seq = 255, // These data are parsed to identify the device .manufacturer_id = __MANUFACTURER_ID__, .device_id = __DEVICE_ID__, .fw_version.fw_id = __FW_ID__, .fw_version.major = __FW_MAJOR__, .fw_version.minor = __FW_MINOR__, .fw_version.patch = __FW_PATCH__, .fw_version.hash = __FW_HASH__, .hw_version = __HW_ID__, .fs_crc = 0, }; alarm_data_t alarm_data = { .nw_stat = 0, .nw_seq = 255, .status = true, }; alarm_cmd_t alarm_cmd = { .cmd = 0, }; temp_data_t temp_data = { .nw_stat = 0, .nw_seq = 255, .value = 0, }; const d7_file_header_t revision_device_fh = { .access_class = ACCESS_CLASS_GW, .notify = true, .file_size = REVISION_DEVICE_FILE_SIZE, .file_id = REVISION_DEVICE_FILE_ID, }; const d7_file_header_t alarm_data_fh = { .access_class = ACCESS_CLASS_GW, .notify = true, .file_size = ALARM_DATA_FILE_SIZE, .file_id = ALARM_DATA_FILE_ID, }; const d7_file_header_t alarm_cmd_fh = { .access_class = ACCESS_CLASS_GW, .notify = false, .file_size = ALARM_CMD_FILE_SIZE, .file_id = ALARM_CMD_FILE_ID, }; const d7_file_header_t temp_data_fh = { .access_class = ACCESS_CLASS_GW, .notify = true, .file_size = TEMP_DATA_FILE_SIZE, .file_id = TEMP_DATA_FILE_ID, };