Helper library to use modem_ref driver.

Dependencies:   WizziCom WizziDebug ram_fs modem_ref

Dependents:   D7A_Localisation D7A_1x_demo_ActiveRFIDReader D7A_1x_demo_big_file D7A_1x_demo_CodeUpgradeProtocol ... more

Committer:
Jeej
Date:
Fri Sep 21 14:28:10 2018 +0000
Revision:
38:0263914280b7
Parent:
29:5815b6886bbe
Child:
43:90c9221c1430
Added missing include.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jeej 0:e9dd36a15d07 1 #ifndef __MODEM_REF_HELPER_H__
Jeej 0:e9dd36a15d07 2 #define __MODEM_REF_HELPER_H__
Jeej 0:e9dd36a15d07 3
Jeej 0:e9dd36a15d07 4 #include "mbed.h"
Jeej 0:e9dd36a15d07 5 #include "rtos.h"
Jeej 0:e9dd36a15d07 6 #include "WizziDebug.h"
Jeej 0:e9dd36a15d07 7 #include "WizziCom.h"
Jeej 0:e9dd36a15d07 8
Jeej 0:e9dd36a15d07 9 #include "hwcfg.h"
Jeej 0:e9dd36a15d07 10 #include "ram_fs.h"
Jeej 0:e9dd36a15d07 11
Jeej 38:0263914280b7 12 #include "alp.h"
Jeej 38:0263914280b7 13 #include "alp_fs.h"
Jeej 0:e9dd36a15d07 14 #include "alp_helpers.h"
Jeej 38:0263914280b7 15 #include "alp_lwan.h"
Jeej 38:0263914280b7 16 #include "alp_spec.h"
Jeej 0:e9dd36a15d07 17 #include "d7a_1x.h"
Jeej 0:e9dd36a15d07 18 #include "d7a_1x_fs.h"
Jeej 38:0263914280b7 19 #include "kal_fs.h"
Jeej 38:0263914280b7 20 #include "kal_math.h"
Jeej 38:0263914280b7 21 #include "modem_ref.h"
Jeej 38:0263914280b7 22 #include "revision.h"
Jeej 29:5815b6886bbe 23
Jeej 0:e9dd36a15d07 24
Jeej 1:0ec0bae00588 25 #define D7A_CTF_VAL(mant,exp) ((uint8_t)(mant|(exp<<5)))
Jeej 1:0ec0bae00588 26 #define ALP_ITF_TYPE_D7A 0xD7
Jeej 1:0ec0bae00588 27 #define WM_FID_ALP_CFG 50
Jeej 1:0ec0bae00588 28
Jeej 1:0ec0bae00588 29 TYPEDEF_STRUCT_PACKED {
Jeej 1:0ec0bae00588 30 uint8_t type;
Jeej 1:0ec0bae00588 31 d7a_sp_cfg_t cfg;
Jeej 1:0ec0bae00588 32 } alp_d7a_itf_t;
Jeej 1:0ec0bae00588 33
Jeej 0:e9dd36a15d07 34 void modem_helper_open(modem_callbacks_t* callbacks);
Jeej 0:e9dd36a15d07 35 void modem_update_file(uint8_t fid, alp_file_header_t* header, uint8_t* data);
Jeej 0:e9dd36a15d07 36
Jeej 1:0ec0bae00588 37 #define D7_ITF_SIZE(_itf) (1+my_alp_itf_d7a_cfg_size(&(_itf)->cfg))
Jeej 1:0ec0bae00588 38 int my_alp_itf_d7a_cfg_size(d7a_sp_cfg_t* cfg);
Jeej 1:0ec0bae00588 39
Jeej 0:e9dd36a15d07 40 #endif