1 // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 #ifndef __FE_REG_H__ 15 #define __FE_REG_H__ 16 17 #pragma once 18 19 #include "soc/soc.h" 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif /* __cplusplus */ 24 25 /* Some of the RF frontend control registers. 26 * PU/PD fields defined here are used in sleep related functions. 27 */ 28 29 #define FE_GEN_CTRL (DR_REG_FE_BASE + 0x0090) 30 #define FE_IQ_EST_FORCE_PU (BIT(5)) 31 #define FE_IQ_EST_FORCE_PU_M (BIT(5)) 32 #define FE_IQ_EST_FORCE_PU_V 1 33 #define FE_IQ_EST_FORCE_PU_S 5 34 #define FE_IQ_EST_FORCE_PD (BIT(4)) 35 #define FE_IQ_EST_FORCE_PD_M (BIT(4)) 36 #define FE_IQ_EST_FORCE_PD_V 1 37 #define FE_IQ_EST_FORCE_PD_S 4 38 39 #define FE2_TX_INTERP_CTRL (DR_REG_FE2_BASE + 0x00f0) 40 #define FE2_TX_INF_FORCE_PU (BIT(10)) 41 #define FE2_TX_INF_FORCE_PU_M (BIT(10)) 42 #define FE2_TX_INF_FORCE_PU_V 1 43 #define FE2_TX_INF_FORCE_PU_S 10 44 #define FE2_TX_INF_FORCE_PD (BIT(9)) 45 #define FE2_TX_INF_FORCE_PD_M (BIT(9)) 46 #define FE2_TX_INF_FORCE_PD_V 1 47 #define FE2_TX_INF_FORCE_PD_S 9 48 49 #ifdef __cplusplus 50 } 51 #endif /* __cplusplus */ 52 #endif /* __FE_REG_H__ */