Added support for WNC M14A2A Cellular LTE Data Module.
Dependencies: WNC14A2AInterface
Dependents: http-example-wnc http-example-wnc-modified
spirit1-const.h
00001 /* 00002 * Copyright (c) 2012, STMicroelectronics. 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions 00007 * are met: 00008 * 1. Redistributions of source code must retain the above copyright 00009 * notice, this list of conditions and the following disclaimer. 00010 * 2. Redistributions in binary form must reproduce the above copyright 00011 * notice, this list of conditions and the following disclaimer in the 00012 * documentation and/or other materials provided with the distribution. 00013 * 3. Neither the name of the copyright holder nor the names of its 00014 * contributors may be used to endorse or promote products derived 00015 * from this software without specific prior written permission. 00016 * 00017 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00018 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00019 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00020 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00021 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00022 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00023 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00024 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00025 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 00026 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00027 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 00028 * OF THE POSSIBILITY OF SUCH DAMAGE. 00029 * 00030 */ 00031 /*---------------------------------------------------------------------------*/ 00032 #ifndef __SPIRIT1_CONST_H__ 00033 #define __SPIRIT1_CONST_H__ 00034 /*---------------------------------------------------------------------------*/ 00035 00036 /*---------------------------------------------------------------------------*/ 00037 00038 /* The state bitfield and values for different states, as read from MC_STATE[1:0] registers, 00039 which are returned on any SPI read or write operation. */ 00040 #define SPIRIT1_STATE_STATEBITS (0x00FE) 00041 /*---------------------------------------------------------------------------*/ 00042 00043 #define SPIRIT1_STATE_STANDBY ((0x0040)<<1) 00044 #define SPIRIT1_STATE_SLEEP ((0x0036)<<1) 00045 #define SPIRIT1_STATE_READY ((0x0003)<<1) 00046 #define SPIRIT1_STATE_LOCK ((0x000F)<<1) 00047 #define SPIRIT1_STATE_RX ((0x0033)<<1) 00048 #define SPIRIT1_STATE_TX ((0x005F)<<1) 00049 /* NB the below states were extracted from ST drivers, but are not specified in the datasheet */ 00050 #define SPIRIT1_STATE_PM_SETUP ((0x003D)<<1) 00051 #define SPIRIT1_STATE_XO_SETTLING ((0x0023)<<1) 00052 #define SPIRIT1_STATE_SYNTH_SETUP ((0x0053)<<1) 00053 #define SPIRIT1_STATE_PROTOCOL ((0x001F)<<1) 00054 #define SPIRIT1_STATE_SYNTH_CALIBRATION ((0x004F)<<1) 00055 /*---------------------------------------------------------------------------*/ 00056 /* strobe commands */ 00057 #define SPIRIT1_STROBE_TX 0x60 00058 #define SPIRIT1_STROBE_RX 0x61 00059 #define SPIRIT1_STROBE_READY 0x62 00060 #define SPIRIT1_STROBE_STANDBY 0x63 00061 #define SPIRIT1_STROBE_SLEEP 0x64 00062 #define SPIRIT1_STROBE_SABORT 0x67 00063 #define SPIRIT1_STROBE_SRES 0x70 00064 #define SPIRIT1_STROBE_FRX 0x71 00065 #define SPIRIT1_STROBE_FTX 0x72 00066 /*---------------------------------------------------------------------------*/ 00067 00068 00069 00070 /* Exported types ------------------------------------------------------------*/ 00071 /*------------------------------------------------------------------*/ 00072 00073 00074 #endif /* __SPIRIT1_CONST_H__ */ 00075 /*---------------------------------------------------------------------------*/
Generated on Tue Jul 12 2022 17:40:25 by 1.7.2