version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
cc3000_nvmem.h@0:615c697c33b0, 2013-09-19 (annotated)
- Committer:
- Kojto
- Date:
- Thu Sep 19 07:55:14 2013 +0000
- Revision:
- 0:615c697c33b0
- Child:
- 20:30b6ed7bf8fd
initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 0:615c697c33b0 | 1 | /***************************************************************************** |
Kojto | 0:615c697c33b0 | 2 | * |
Kojto | 0:615c697c33b0 | 3 | * C++ interface/implementation created by Martin Kojtal (0xc0170). Thanks to |
Kojto | 0:615c697c33b0 | 4 | * Jim Carver and Frank Vannieuwkerke for their inital cc3000 mbed port and |
Kojto | 0:615c697c33b0 | 5 | * provided help. |
Kojto | 0:615c697c33b0 | 6 | * |
Kojto | 0:615c697c33b0 | 7 | * This version of "host driver" uses CC3000 Host Driver Implementation. Thus |
Kojto | 0:615c697c33b0 | 8 | * read the following copyright: |
Kojto | 0:615c697c33b0 | 9 | * |
Kojto | 0:615c697c33b0 | 10 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ |
Kojto | 0:615c697c33b0 | 11 | * |
Kojto | 0:615c697c33b0 | 12 | * Redistribution and use in source and binary forms, with or without |
Kojto | 0:615c697c33b0 | 13 | * modification, are permitted provided that the following conditions |
Kojto | 0:615c697c33b0 | 14 | * are met: |
Kojto | 0:615c697c33b0 | 15 | * |
Kojto | 0:615c697c33b0 | 16 | * Redistributions of source code must retain the above copyright |
Kojto | 0:615c697c33b0 | 17 | * notice, this list of conditions and the following disclaimer. |
Kojto | 0:615c697c33b0 | 18 | * |
Kojto | 0:615c697c33b0 | 19 | * Redistributions in binary form must reproduce the above copyright |
Kojto | 0:615c697c33b0 | 20 | * notice, this list of conditions and the following disclaimer in the |
Kojto | 0:615c697c33b0 | 21 | * documentation and/or other materials provided with the |
Kojto | 0:615c697c33b0 | 22 | * distribution. |
Kojto | 0:615c697c33b0 | 23 | * |
Kojto | 0:615c697c33b0 | 24 | * Neither the name of Texas Instruments Incorporated nor the names of |
Kojto | 0:615c697c33b0 | 25 | * its contributors may be used to endorse or promote products derived |
Kojto | 0:615c697c33b0 | 26 | * from this software without specific prior written permission. |
Kojto | 0:615c697c33b0 | 27 | * |
Kojto | 0:615c697c33b0 | 28 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
Kojto | 0:615c697c33b0 | 29 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
Kojto | 0:615c697c33b0 | 30 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
Kojto | 0:615c697c33b0 | 31 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
Kojto | 0:615c697c33b0 | 32 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
Kojto | 0:615c697c33b0 | 33 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
Kojto | 0:615c697c33b0 | 34 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
Kojto | 0:615c697c33b0 | 35 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
Kojto | 0:615c697c33b0 | 36 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
Kojto | 0:615c697c33b0 | 37 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 0:615c697c33b0 | 38 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 0:615c697c33b0 | 39 | * |
Kojto | 0:615c697c33b0 | 40 | *****************************************************************************/ |
Kojto | 0:615c697c33b0 | 41 | #ifndef CC3000_NVMEM_H |
Kojto | 0:615c697c33b0 | 42 | #define CC3000_NVMEM_H |
Kojto | 0:615c697c33b0 | 43 | |
Kojto | 0:615c697c33b0 | 44 | #define NVMEM_READ_PARAMS_LEN (12) |
Kojto | 0:615c697c33b0 | 45 | #define NVMEM_CREATE_PARAMS_LEN (8) |
Kojto | 0:615c697c33b0 | 46 | #define NVMEM_WRITE_PARAMS_LEN (16) |
Kojto | 0:615c697c33b0 | 47 | |
Kojto | 0:615c697c33b0 | 48 | |
Kojto | 0:615c697c33b0 | 49 | /**************************************************************************** |
Kojto | 0:615c697c33b0 | 50 | ** |
Kojto | 0:615c697c33b0 | 51 | ** Definitions for File IDs |
Kojto | 0:615c697c33b0 | 52 | ** |
Kojto | 0:615c697c33b0 | 53 | ****************************************************************************/ |
Kojto | 0:615c697c33b0 | 54 | /* --------------------------------------------------------- EEPROM FAT table --------------------------------------------------------- |
Kojto | 0:615c697c33b0 | 55 | |
Kojto | 0:615c697c33b0 | 56 | File ID Offset File Size Used Size Parameter |
Kojto | 0:615c697c33b0 | 57 | # ID address (bytes) (bytes) |
Kojto | 0:615c697c33b0 | 58 | -------------------------------------------------------------------------------------------------------------------------------------- |
Kojto | 0:615c697c33b0 | 59 | 0 NVMEM_NVS_FILEID 0x50 0x1A0 0x1A RF Calibration results table(generated automatically by TX Bip) |
Kojto | 0:615c697c33b0 | 60 | 1 NVMEM_NVS_SHADOW_FILEID 0x1F0 0x1A0 0x1A NVS Shadow |
Kojto | 0:615c697c33b0 | 61 | 2 NVMEM_WLAN_CONFIG_FILEID 0x390 0x1000 0x64 WLAN configuration |
Kojto | 0:615c697c33b0 | 62 | 3 NVMEM_WLAN_CONFIG_SHADOW_FILEID 0x1390 0x1000 0x64 WLAN configuration shadow |
Kojto | 0:615c697c33b0 | 63 | 4 NVMEM_WLAN_DRIVER_SP_FILEID 0x2390 0x2000 variable WLAN Driver ROM Patches |
Kojto | 0:615c697c33b0 | 64 | 5 NVMEM_WLAN_FW_SP_FILEID 0x4390 0x2000 variable WLAN FW Patches |
Kojto | 0:615c697c33b0 | 65 | 6 NVMEM_MAC_FILEID 0x6390 0x10 0x10 6 bytes of MAC address |
Kojto | 0:615c697c33b0 | 66 | 7 NVMEM_FRONTEND_VARS_FILEID 0x63A0 0x10 0x10 Frontend Vars |
Kojto | 0:615c697c33b0 | 67 | 8 NVMEM_IP_CONFIG_FILEID 0x63B0 0x40 0x40 IP configuration |
Kojto | 0:615c697c33b0 | 68 | 9 NVMEM_IP_CONFIG_SHADOW_FILEID 0x63F0 0x40 0x40 IP configuration shadow |
Kojto | 0:615c697c33b0 | 69 | 10 NVMEM_BOOTLOADER_SP_FILEID 0x6430 0x400 variable Bootloader Patches |
Kojto | 0:615c697c33b0 | 70 | 11 NVMEM_RM_FILEID 0x6830 0x200 0x7F Radio parameters |
Kojto | 0:615c697c33b0 | 71 | 12 NVMEM_AES128_KEY_FILEID 0x6A30 0x10 0x10 AES128 key file |
Kojto | 0:615c697c33b0 | 72 | 13 NVMEM_SHARED_MEM_FILEID 0x6A40 0x50 0x44 Host-CC3000 shared memory file |
Kojto | 0:615c697c33b0 | 73 | 14 NVMEM_USER_FILE_1_FILEID 0x6A90 variable variable 1st user file |
Kojto | 0:615c697c33b0 | 74 | 15 NVMEM_USER_FILE_2_FILEID variable variable variable 2nd user file |
Kojto | 0:615c697c33b0 | 75 | */ |
Kojto | 0:615c697c33b0 | 76 | /* NVMEM file ID - system files*/ |
Kojto | 0:615c697c33b0 | 77 | #define NVMEM_NVS_FILEID (0) |
Kojto | 0:615c697c33b0 | 78 | #define NVMEM_NVS_SHADOW_FILEID (1) |
Kojto | 0:615c697c33b0 | 79 | #define NVMEM_WLAN_CONFIG_FILEID (2) |
Kojto | 0:615c697c33b0 | 80 | #define NVMEM_WLAN_CONFIG_SHADOW_FILEID (3) |
Kojto | 0:615c697c33b0 | 81 | #define NVMEM_WLAN_DRIVER_SP_FILEID (4) |
Kojto | 0:615c697c33b0 | 82 | #define NVMEM_WLAN_FW_SP_FILEID (5) |
Kojto | 0:615c697c33b0 | 83 | #define NVMEM_MAC_FILEID (6) |
Kojto | 0:615c697c33b0 | 84 | #define NVMEM_FRONTEND_VARS_FILEID (7) |
Kojto | 0:615c697c33b0 | 85 | #define NVMEM_IP_CONFIG_FILEID (8) |
Kojto | 0:615c697c33b0 | 86 | #define NVMEM_IP_CONFIG_SHADOW_FILEID (9) |
Kojto | 0:615c697c33b0 | 87 | #define NVMEM_BOOTLOADER_SP_FILEID (10) |
Kojto | 0:615c697c33b0 | 88 | #define NVMEM_RM_FILEID (11) |
Kojto | 0:615c697c33b0 | 89 | |
Kojto | 0:615c697c33b0 | 90 | /* NVMEM file ID - user files*/ |
Kojto | 0:615c697c33b0 | 91 | #define NVMEM_AES128_KEY_FILEID (12) |
Kojto | 0:615c697c33b0 | 92 | #define NVMEM_SHARED_MEM_FILEID (13) |
Kojto | 0:615c697c33b0 | 93 | #define NVMEM_USER_FILE_1_FILEID (14) |
Kojto | 0:615c697c33b0 | 94 | #define NVMEM_USER_FILE_2_FILEID (15) |
Kojto | 0:615c697c33b0 | 95 | |
Kojto | 0:615c697c33b0 | 96 | /* max entry in order to invalid nvmem */ |
Kojto | 0:615c697c33b0 | 97 | #define NVMEM_MAX_ENTRY (16) |
Kojto | 0:615c697c33b0 | 98 | |
Kojto | 0:615c697c33b0 | 99 | |
Kojto | 0:615c697c33b0 | 100 | #endif |