kopia lustrzana https://github.com/espressif/esp-idf
52 wiersze
1.6 KiB
C
52 wiersze
1.6 KiB
C
|
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
||
|
//
|
||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
// you may not use this file except in compliance with the License.
|
||
|
// You may obtain a copy of the License at
|
||
|
//
|
||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||
|
//
|
||
|
// Unless required by applicable law or agreed to in writing, software
|
||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
// See the License for the specific language governing permissions and
|
||
|
// limitations under the License.
|
||
|
|
||
|
#pragma once
|
||
|
#include "esp_phy_init.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/**
|
||
|
* @file phy.h
|
||
|
* @brief Declarations for functions provided by libphy.a
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* @brief Initialize function pointer table in PHY library.
|
||
|
* @note This function should be called before register_chipv7_phy.
|
||
|
*/
|
||
|
void phy_get_romfunc_addr(void);
|
||
|
|
||
|
/**
|
||
|
* @brief Initialize PHY module and do RF calibration
|
||
|
* @param[in] init_data Initialization parameters to be used by the PHY
|
||
|
* @param[inout] cal_data As input, calibration data previously obtained. As output, will contain new calibration data.
|
||
|
* @param[in] cal_mode RF calibration mode
|
||
|
* @return reserved for future use
|
||
|
*/
|
||
|
int register_chipv7_phy(const esp_phy_init_data_t* init_data, esp_phy_calibration_data_t *cal_data, esp_phy_calibration_mode_t cal_mode);
|
||
|
|
||
|
/**
|
||
|
* @brief Get the format version of calibration data used by PHY library.
|
||
|
* @return Format version number
|
||
|
*/
|
||
|
uint32_t phy_get_rf_cal_version();
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|