Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
cc3000_nvmem.h
00001 /***************************************************************************** 00002 * 00003 * C++ interface/implementation created by Martin Kojtal (0xc0170). Thanks to 00004 * Jim Carver and Frank Vannieuwkerke for their inital cc3000 mbed port and 00005 * provided help. 00006 * 00007 * This version of "host driver" uses CC3000 Host Driver Implementation. Thus 00008 * read the following copyright: 00009 * 00010 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 00011 * 00012 * Redistribution and use in source and binary forms, with or without 00013 * modification, are permitted provided that the following conditions 00014 * are met: 00015 * 00016 * Redistributions of source code must retain the above copyright 00017 * notice, this list of conditions and the following disclaimer. 00018 * 00019 * Redistributions in binary form must reproduce the above copyright 00020 * notice, this list of conditions and the following disclaimer in the 00021 * documentation and/or other materials provided with the 00022 * distribution. 00023 * 00024 * Neither the name of Texas Instruments Incorporated nor the names of 00025 * its contributors may be used to endorse or promote products derived 00026 * from this software without specific prior written permission. 00027 * 00028 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00029 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00030 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00031 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00032 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00033 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00034 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00035 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00036 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00037 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00038 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00039 * 00040 *****************************************************************************/ 00041 #ifndef CC3000_NVMEM_H 00042 #define CC3000_NVMEM_H 00043 00044 #define NVMEM_READ_PARAMS_LEN (12) 00045 #define NVMEM_CREATE_PARAMS_LEN (8) 00046 #define NVMEM_WRITE_PARAMS_LEN (16) 00047 00048 00049 /**************************************************************************** 00050 ** 00051 ** Definitions for File IDs 00052 ** 00053 ****************************************************************************/ 00054 /* --------------------------------------------------------- EEPROM FAT table --------------------------------------------------------- 00055 00056 File ID Offset File Size Used Size Parameter 00057 # ID address (bytes) (bytes) 00058 -------------------------------------------------------------------------------------------------------------------------------------- 00059 0 NVMEM_NVS_FILEID 0x50 0x1A0 0x1A RF Calibration results table(generated automatically by TX Bip) 00060 1 NVMEM_NVS_SHADOW_FILEID 0x1F0 0x1A0 0x1A NVS Shadow 00061 2 NVMEM_WLAN_CONFIG_FILEID 0x390 0x1000 0x64 WLAN configuration 00062 3 NVMEM_WLAN_CONFIG_SHADOW_FILEID 0x1390 0x1000 0x64 WLAN configuration shadow 00063 4 NVMEM_WLAN_DRIVER_SP_FILEID 0x2390 0x2000 variable WLAN Driver ROM Patches 00064 5 NVMEM_WLAN_FW_SP_FILEID 0x4390 0x2000 variable WLAN FW Patches 00065 6 NVMEM_MAC_FILEID 0x6390 0x10 0x10 6 bytes of MAC address 00066 7 NVMEM_FRONTEND_VARS_FILEID 0x63A0 0x10 0x10 Frontend Vars 00067 8 NVMEM_IP_CONFIG_FILEID 0x63B0 0x40 0x40 IP configuration 00068 9 NVMEM_IP_CONFIG_SHADOW_FILEID 0x63F0 0x40 0x40 IP configuration shadow 00069 10 NVMEM_BOOTLOADER_SP_FILEID 0x6430 0x400 variable Bootloader Patches 00070 11 NVMEM_RM_FILEID 0x6830 0x200 0x7F Radio parameters 00071 12 NVMEM_AES128_KEY_FILEID 0x6A30 0x10 0x10 AES128 key file 00072 13 NVMEM_SHARED_MEM_FILEID 0x6A40 0x50 0x44 Host-CC3000 shared memory file 00073 14 NVMEM_USER_FILE_1_FILEID 0x6A90 variable variable 1st user file 00074 15 NVMEM_USER_FILE_2_FILEID variable variable variable 2nd user file 00075 */ 00076 /* NVMEM file ID - system files*/ 00077 #define NVMEM_NVS_FILEID (0) 00078 #define NVMEM_NVS_SHADOW_FILEID (1) 00079 #define NVMEM_WLAN_CONFIG_FILEID (2) 00080 #define NVMEM_WLAN_CONFIG_SHADOW_FILEID (3) 00081 #define NVMEM_WLAN_DRIVER_SP_FILEID (4) 00082 #define NVMEM_WLAN_FW_SP_FILEID (5) 00083 #define NVMEM_MAC_FILEID (6) 00084 #define NVMEM_FRONTEND_VARS_FILEID (7) 00085 #define NVMEM_IP_CONFIG_FILEID (8) 00086 #define NVMEM_IP_CONFIG_SHADOW_FILEID (9) 00087 #define NVMEM_BOOTLOADER_SP_FILEID (10) 00088 #define NVMEM_RM_FILEID (11) 00089 00090 /* NVMEM file ID - user files*/ 00091 #define NVMEM_AES128_KEY_FILEID (12) 00092 #define NVMEM_SHARED_MEM_FILEID (13) 00093 #define NVMEM_USER_FILE_1_FILEID (14) 00094 #define NVMEM_USER_FILE_2_FILEID (15) 00095 00096 /* max entry in order to invalid nvmem */ 00097 #define NVMEM_MAX_ENTRY (16) 00098 00099 00100 #endif
Generated on Tue Jul 12 2022 18:37:32 by
