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:
Thu May 18 08:55:29 2017 +0000
Revision:
1:0ec0bae00588
Parent:
0:e9dd36a15d07
Child:
4:55a405258993
Fixed hwcfg

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 0:e9dd36a15d07 12 #include "revision.h"
Jeej 0:e9dd36a15d07 13 #include "alp_spec.h"
Jeej 0:e9dd36a15d07 14 #include "alp_helpers.h"
Jeej 0:e9dd36a15d07 15 #include "modem_ref.h"
Jeej 0:e9dd36a15d07 16 #include "kal_fs.h"
Jeej 0:e9dd36a15d07 17 #include "d7a_1x.h"
Jeej 0:e9dd36a15d07 18 #include "d7a_1x_fs.h"
Jeej 0:e9dd36a15d07 19 #include "alp.h"
Jeej 0:e9dd36a15d07 20
Jeej 0:e9dd36a15d07 21 #define MODEM_VERSION_MAJOR 4
Jeej 0:e9dd36a15d07 22 #define MODEM_VERSION_MINOR 8
Jeej 0:e9dd36a15d07 23
Jeej 1:0ec0bae00588 24 #define D7A_CTF_VAL(mant,exp) ((uint8_t)(mant|(exp<<5)))
Jeej 1:0ec0bae00588 25 #define ALP_ITF_TYPE_D7A 0xD7
Jeej 1:0ec0bae00588 26 #define WM_FID_ALP_CFG 50
Jeej 1:0ec0bae00588 27
Jeej 1:0ec0bae00588 28 TYPEDEF_STRUCT_PACKED {
Jeej 1:0ec0bae00588 29 uint8_t type;
Jeej 1:0ec0bae00588 30 d7a_sp_cfg_t cfg;
Jeej 1:0ec0bae00588 31 } alp_d7a_itf_t;
Jeej 1:0ec0bae00588 32
Jeej 0:e9dd36a15d07 33 void modem_helper_open(modem_callbacks_t* callbacks);
Jeej 0:e9dd36a15d07 34 void modem_update_file(uint8_t fid, alp_file_header_t* header, uint8_t* data);
Jeej 0:e9dd36a15d07 35
Jeej 1:0ec0bae00588 36 #define D7_ITF_SIZE(_itf) (1+my_alp_itf_d7a_cfg_size(&(_itf)->cfg))
Jeej 1:0ec0bae00588 37 int my_alp_itf_d7a_cfg_size(d7a_sp_cfg_t* cfg);
Jeej 1:0ec0bae00588 38
Jeej 0:e9dd36a15d07 39 #endif