Helper library to use modem_ref driver.

Dependencies:   WizziCom WizziDebug ram_fs modem_ref

Dependents:   D7A_Localisation D7A_1x_demo_send_file_data_and_forget D7A_1x_demo_CodeUpgradeProtocol D7A_1x_demo_LoRaWAN ... more

Revision:
1:0ec0bae00588
Parent:
0:e9dd36a15d07
Child:
4:55a405258993
--- a/modem_ref_helper.h	Wed May 17 16:02:05 2017 +0000
+++ b/modem_ref_helper.h	Thu May 18 08:55:29 2017 +0000
@@ -21,7 +21,19 @@
 #define MODEM_VERSION_MAJOR         4
 #define MODEM_VERSION_MINOR         8
 
+#define D7A_CTF_VAL(mant,exp)       ((uint8_t)(mant|(exp<<5)))
+#define ALP_ITF_TYPE_D7A            0xD7
+#define WM_FID_ALP_CFG              50
+
+TYPEDEF_STRUCT_PACKED {
+    uint8_t type;
+    d7a_sp_cfg_t cfg;
+} alp_d7a_itf_t;
+
 void modem_helper_open(modem_callbacks_t* callbacks);
 void modem_update_file(uint8_t fid, alp_file_header_t* header, uint8_t* data);
 
+#define D7_ITF_SIZE(_itf) (1+my_alp_itf_d7a_cfg_size(&(_itf)->cfg))
+int my_alp_itf_d7a_cfg_size(d7a_sp_cfg_t* cfg);
+
 #endif
\ No newline at end of file