Sending and reception of big data file (1kB example)
Dependencies: modem_ref_helper CRC DebouncedInterrupt
files.h
00001 #ifndef _FILES_H_ 00002 #define _FILES_H_ 00003 00004 #include "mbed.h" 00005 #include "revision.h" 00006 #include "alp_spec.h" 00007 #include "alp_helpers.h" 00008 #include "modem_ref.h" 00009 00010 #define sizeof_field(_struct,_field) sizeof(((_struct*)0)->_field) 00011 00012 TYPEDEF_STRUCT_PACKED { 00013 uint8_t fid; 00014 uint32_t offset; 00015 uint32_t length; 00016 } touch_t; 00017 00018 extern Queue<touch_t, 8> g_file_modified; 00019 00020 TYPEDEF_STRUCT_PACKED { 00021 uint8_t data[1024]; 00022 uint32_t crc; 00023 } output_file_t; 00024 00025 TYPEDEF_STRUCT_PACKED { 00026 uint8_t data[1024]; 00027 uint32_t crc; 00028 } input_file_t; 00029 00030 #define FID_HOST_REV 65 00031 #define SIZE_HOST_REV sizeof(revision_t) 00032 extern alp_file_header_t h_rev; 00033 extern revision_t f_rev; 00034 00035 #define FID_OUTPUT_FILE 200 00036 #define SIZE_OUTPUT_FILE sizeof(output_file_t) 00037 extern alp_file_header_t h_output_file; 00038 extern output_file_t f_output_file; 00039 00040 #define FID_INPUT_FILE 201 00041 #define SIZE_INPUT_FILE sizeof(input_file_t) 00042 extern alp_file_header_t h_input_file; 00043 extern input_file_t f_input_file; 00044 00045 #endif // _FILE_H_
Generated on Tue Jul 12 2022 15:45:27 by 1.7.2