Exportable version of WizziLab's modem driver.

Dependents:   modem_ref_helper

Committer:
Jeej
Date:
Wed Jul 31 16:48:48 2019 +0000
Revision:
46:9b83866cef2c
Parent:
19:701d5669f2e9
Updated for mbed-os 5.13

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jeej 0:027760f45e2c 1 /// @copyright
Jeej 0:027760f45e2c 2 /// ========================================================================={{{
Jeej 0:027760f45e2c 3 /// Copyright (c) 2012-2017 WizziLab /
Jeej 0:027760f45e2c 4 /// All rights reserved /
Jeej 0:027760f45e2c 5 /// /
Jeej 0:027760f45e2c 6 /// IMPORTANT: This Software may not be modified, copied or distributed unless /
Jeej 0:027760f45e2c 7 /// embedded on a WizziLab product. Other than for the foregoing purpose, this /
Jeej 0:027760f45e2c 8 /// Software and/or its documentation may not be used, reproduced, copied, /
Jeej 0:027760f45e2c 9 /// prepared derivative works of, modified, performed, distributed, displayed /
Jeej 0:027760f45e2c 10 /// or sold for any purpose. For the sole purpose of embedding this Software /
Jeej 0:027760f45e2c 11 /// on a WizziLab product, copy, modification and distribution of this /
Jeej 0:027760f45e2c 12 /// Software is granted provided that the following conditions are respected: /
Jeej 0:027760f45e2c 13 /// /
Jeej 0:027760f45e2c 14 /// * Redistributions of source code must retain the above copyright notice, /
Jeej 0:027760f45e2c 15 /// this list of conditions and the following disclaimer /
Jeej 0:027760f45e2c 16 /// /
Jeej 0:027760f45e2c 17 /// * Redistributions in binary form must reproduce the above copyright /
Jeej 0:027760f45e2c 18 /// notice, this list of conditions and the following disclaimer in the /
Jeej 0:027760f45e2c 19 /// documentation and/or other materials provided with the distribution. /
Jeej 0:027760f45e2c 20 /// /
Jeej 0:027760f45e2c 21 /// * The name of WizziLab can not be used to endorse or promote products /
Jeej 0:027760f45e2c 22 /// derived from this software without specific prior written permission. /
Jeej 0:027760f45e2c 23 /// /
Jeej 0:027760f45e2c 24 /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS /
Jeej 0:027760f45e2c 25 /// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED /
Jeej 0:027760f45e2c 26 /// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR /
Jeej 0:027760f45e2c 27 /// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR /
Jeej 0:027760f45e2c 28 /// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, /
Jeej 0:027760f45e2c 29 /// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, /
Jeej 0:027760f45e2c 30 /// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, /
Jeej 0:027760f45e2c 31 /// OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY /
Jeej 0:027760f45e2c 32 /// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING /
Jeej 0:027760f45e2c 33 /// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS /
Jeej 0:027760f45e2c 34 /// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /
Jeej 0:027760f45e2c 35 /// WIZZILAB HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, /
Jeej 0:027760f45e2c 36 /// ENHANCEMENTS OR MODIFICATIONS. /
Jeej 0:027760f45e2c 37 /// /
Jeej 0:027760f45e2c 38 /// Should you have any questions regarding your right to use this Software, /
Jeej 0:027760f45e2c 39 /// contact WizziLab at www.wizzilab.com. /
Jeej 0:027760f45e2c 40 /// /
Jeej 0:027760f45e2c 41 /// =========================================================================}}}
Jeej 0:027760f45e2c 42 /// @endcopyright
Jeej 0:027760f45e2c 43
Jeej 0:027760f45e2c 44 #ifndef __REVISION_H__
Jeej 0:027760f45e2c 45 #define __REVISION_H__
Jeej 0:027760f45e2c 46
Jeej 0:027760f45e2c 47 #include "hal_types.h"
Jeej 0:027760f45e2c 48
Jeej 0:027760f45e2c 49 //======================================================================
Jeej 0:027760f45e2c 50 // Firmware version Structure
Jeej 0:027760f45e2c 51 //
Jeej 0:027760f45e2c 52 // Used within the revision structure
Jeej 0:027760f45e2c 53 //======================================================================
Jeej 0:027760f45e2c 54 TYPEDEF_STRUCT_PACKED
Jeej 0:027760f45e2c 55 {
Jeej 0:027760f45e2c 56 u8 id;
Jeej 0:027760f45e2c 57 u8 major;
Jeej 0:027760f45e2c 58 u8 minor;
Jeej 0:027760f45e2c 59 u16 patch;
Jeej 0:027760f45e2c 60 u32 hash;
Jeej 0:027760f45e2c 61 } fw_version_t;
Jeej 0:027760f45e2c 62
Jeej 0:027760f45e2c 63 //======================================================================
Jeej 0:027760f45e2c 64 // Revision Structure
Jeej 0:027760f45e2c 65 //
Jeej 0:027760f45e2c 66 // Usage within D7B server:
Jeej 0:027760f45e2c 67 // An XML describing the File system of a device is associated to a
Jeej 0:027760f45e2c 68 // couple manufacturer_id/device_id (==Device).
Jeej 0:027760f45e2c 69 // Different versions of the Device's XML can exist and can be mapped
Jeej 0:027760f45e2c 70 // according to fw_version
Jeej 0:027760f45e2c 71 //======================================================================
Jeej 0:027760f45e2c 72 TYPEDEF_STRUCT_PACKED
Jeej 0:027760f45e2c 73 {
Jeej 0:027760f45e2c 74 /// Manufacturer ID: provided by Wizzilab
Jeej 0:027760f45e2c 75 // comes from: here
Jeej 0:027760f45e2c 76 u32 manufacturer_id;
Jeej 0:027760f45e2c 77 /// Device ID: Arbitrary number, at user/customer choice
Jeej 0:027760f45e2c 78 // comes from: application
Jeej 0:027760f45e2c 79 u32 device_id;
Jeej 0:027760f45e2c 80 /// Hardware Board ID:
Jeej 0:027760f45e2c 81 // comes from: board definition
Jeej 0:027760f45e2c 82 u32 hw_version;
Jeej 0:027760f45e2c 83 /// Firmware Version: made of
Jeej 0:027760f45e2c 84 /// - major,minor and patch indexes : comes from versioning tool
Jeej 0:027760f45e2c 85 /// - fw_id : "build-flavour" : comes from build setup
Jeej 0:027760f45e2c 86 /// FW_ID | MAJOR | MINOR | PATCH | HASH |
Jeej 0:027760f45e2c 87 // 1B | 1B | 1B | 2B | 4B |
Jeej 0:027760f45e2c 88 fw_version_t fw_version;
Jeej 13:10589aaf8853 89 /// Max CUP file size
Jeej 13:10589aaf8853 90 u32 cup_max_size;
Jeej 0:027760f45e2c 91 } revision_t;
Jeej 0:027760f45e2c 92
Jeej 0:027760f45e2c 93 //======================================================================
Jeej 0:027760f45e2c 94 // Identification / Revision numbers
Jeej 0:027760f45e2c 95 //======================================================================
Jeej 0:027760f45e2c 96 #define __MFGID_WIZZILAB__ 0x01BC50C7
Jeej 0:027760f45e2c 97 #define __MANUFACTURER_ID__ __MFGID_WIZZILAB__
Jeej 0:027760f45e2c 98 #endif // __REVISION_H__
Jeej 0:027760f45e2c 99
Jeej 0:027760f45e2c 100