/* * SPDX-FileCopyrightText: 2016-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */#ifndefPHY_INIT_DATA_H#definePHY_INIT_DATA_H/* don't use #pragma once here, we compile this file sometimes */#include"esp_phy_init.h"#include"sdkconfig.h"#ifdef__cplusplusextern"C"{#endif// constrain a value between 'low' and 'high', inclusive#defineLIMIT(val,low,high)((val<low)?low:(val>high)?high:val)#definePHY_INIT_MAGIC"PHYINIT"#definePHY_INIT_MAGIC_LEN8// should be strlen(PHY_INIT_MAGIC) + 1// define the lowest tx power as LOWEST_PHY_TX_POWER#definePHY_TX_POWER_LOWESTLIMIT(CONFIG_ESP_PHY_MAX_TX_POWER*4,0,52)#definePHY_TX_POWER_OFFSET44#definePHY_TX_POWER_NUM56 defines#ifCONFIG_ESP_PHY_MULTIPLE_INIT_DATA_BIN#definePHY_CRC_ALGORITHM1#definePHY_COUNTRY_CODE_LEN2#definePHY_INIT_DATA_TYPE_OFFSET126#definePHY_SUPPORT_MULTIPLE_BIN_OFFSET125/* ... */#endifexternconstcharphy_init_magic_pre[];externconstesp_phy_init_data_tphy_init_data;externconstcharphy_init_magic_post[];#ifCONFIG_ESP_PHY_MULTIPLE_INIT_DATA_BIN/** * @brief PHY init data control information structure *//* ... */typedefstruct{uint8_tcontrol_info_checksum[4];/*!< 4-byte control information checksum */uint8_tmultiple_bin_checksum[4];/*!< 4-byte multiple bin checksum */uint8_tcheck_algorithm;/*!< check algorithm */uint8_tversion;/*!< PHY init data bin version */uint8_tnumber;/*!< PHY init data bin number */uint8_tlength[2];/*!< Length of each PHY init data bin */uint8_treserved[19];/*!< 19-byte reserved */}{...}__attribute__((packed))phy_control_info_data_t;/** * @brief Country corresponds to PHY init data type structure *//* ... */typedefstruct{charcc[PHY_COUNTRY_CODE_LEN];uint8_ttype;}{...}phy_country_to_bin_type_t;/* ... */#endif#ifdef__cplusplus}{...}#endif/* ... */#endif/* PHY_INIT_DATA_H */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.