/* * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... *//** * SAR related peripherals are interdependent. This file * provides a united control to these registers, as multiple * components require these controls. * * See target/sar_periph_ctrl.c to know involved peripherals *//* ... */#pragmaonce#include<stdint.h>#include<stdbool.h>#ifdef__cplusplusextern"C"{#endif/** * Initialise SAR related peripheral register settings * Should only be used when running into app stage *//* ... */voidsar_periph_ctrl_init(void);/*------------------------------------------------------------------------------* ADC Power*----------------------------------------------------------------------------*//* ... *//** * @brief Acquire the ADC oneshot mode power *//* ... */voidsar_periph_ctrl_adc_oneshot_power_acquire(void);/** * @brief Release the ADC oneshot mode power *//* ... */voidsar_periph_ctrl_adc_oneshot_power_release(void);/** * @brief Acquire the ADC continuous mode power *//* ... */voidsar_periph_ctrl_adc_continuous_power_acquire(void);/** * @brief Release the ADC ADC continuous mode power *//* ... */voidsar_periph_ctrl_adc_continuous_power_release(void);/*------------------------------------------------------------------------------* PWDET Power*----------------------------------------------------------------------------*//* ... *//** * @brief Acquire the PWDET Power *//* ... */voidsar_periph_ctrl_pwdet_power_acquire(void);/** * @brief Release the PWDET Power *//* ... */voidsar_periph_ctrl_pwdet_power_release(void);/** * @brief Acquire the temperature sensor power *//* ... */voidtemperature_sensor_power_acquire(void);/** * @brief Release the temperature sensor power *//* ... */voidtemperature_sensor_power_release(void);/** * @brief Get the temperature value and choose the temperature sensor range. Will be both used in phy and peripheral. * * @param range_changed Pointer to whether range has been changed here. If you don't need this param, you can * set NULL directly. * * @return temperature sensor value. *//* ... */int16_ttemp_sensor_get_raw_value(bool*range_changed);/** * @brief Synchronize the tsens_idx between sar_periph and driver * * @param tsens_idx index value of temperature sensor attribute *//* ... */voidtemp_sensor_sync_tsens_idx(inttsens_idx);/** * @brief Enable SAR power when system wakes up *//* ... */voidsar_periph_ctrl_power_enable(void);/** * @brief Disable SAR power when system goes to sleep *//* ... */voidsar_periph_ctrl_power_disable(void);#ifdef__cplusplus}{...}#endif
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.