1 // Copyright 2015-2020 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 15 #pragma once 16 17 #include "soc/soc.h" 18 19 /* Some of the WiFi RX control registers. 20 * PU/PD fields defined here are used in sleep related functions. 21 */ 22 23 #define NRXPD_CTRL (DR_REG_NRX_BASE + 0x00d4) 24 #define NRX_CHAN_EST_FORCE_PU (BIT(7)) 25 #define NRX_CHAN_EST_FORCE_PU_M (BIT(7)) 26 #define NRX_CHAN_EST_FORCE_PU_V 1 27 #define NRX_CHAN_EST_FORCE_PU_S 7 28 #define NRX_CHAN_EST_FORCE_PD (BIT(6)) 29 #define NRX_CHAN_EST_FORCE_PD_M (BIT(6)) 30 #define NRX_CHAN_EST_FORCE_PD_V 1 31 #define NRX_CHAN_EST_FORCE_PD_S 6 32 #define NRX_RX_ROT_FORCE_PU (BIT(5)) 33 #define NRX_RX_ROT_FORCE_PU_M (BIT(5)) 34 #define NRX_RX_ROT_FORCE_PU_V 1 35 #define NRX_RX_ROT_FORCE_PU_S 5 36 #define NRX_RX_ROT_FORCE_PD (BIT(4)) 37 #define NRX_RX_ROT_FORCE_PD_M (BIT(4)) 38 #define NRX_RX_ROT_FORCE_PD_V 1 39 #define NRX_RX_ROT_FORCE_PD_S 4 40 #define NRX_VIT_FORCE_PU (BIT(3)) 41 #define NRX_VIT_FORCE_PU_M (BIT(3)) 42 #define NRX_VIT_FORCE_PU_V 1 43 #define NRX_VIT_FORCE_PU_S 3 44 #define NRX_VIT_FORCE_PD (BIT(2)) 45 #define NRX_VIT_FORCE_PD_M (BIT(2)) 46 #define NRX_VIT_FORCE_PD_V 1 47 #define NRX_VIT_FORCE_PD_S 2 48 #define NRX_DEMAP_FORCE_PU (BIT(1)) 49 #define NRX_DEMAP_FORCE_PU_M (BIT(1)) 50 #define NRX_DEMAP_FORCE_PU_V 1 51 #define NRX_DEMAP_FORCE_PU_S 1 52 #define NRX_DEMAP_FORCE_PD (BIT(0)) 53 #define NRX_DEMAP_FORCE_PD_M (BIT(0)) 54 #define NRX_DEMAP_FORCE_PD_V 1 55 #define NRX_DEMAP_FORCE_PD_S 0 56