Header file containing functions prototypes of CLOCK LL library. More...
#include "hal.h"
Go to the source code of this file.
Macros | |
#define | LL_CLK_CAL_CLK_SOURCE_RTC_32K (0 << CLK_CAL_SL_CLK_SEL_VAL_POS) |
#define | LL_CLK_CAL_CLK_SOURCE_RNG_40K (1 << CLK_CAL_SL_CLK_SEL_VAL_POS) |
#define | LL_CLK_CAL_CLK_SOURCE_RNG_32K (2 << CLK_CAL_SL_CLK_SEL_VAL_POS) |
Functions | |
__STATIC_INLINE void | ll_sl_clk_cal_enable (void) |
Enable the clock calibration block. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_disable (void) |
Disable the clock calibration block. More... | |
__STATIC_INLINE uint32_t | ll_sl_clk_cal_is_enable (void) |
Is the clock calibration block. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_set_slow_count (uint32_t count) |
Set the slow clock calibration count. More... | |
__STATIC_INLINE uint32_t | ll_sl_clk_cal_get_slow_count (void) |
Get the slow clock calibration setting count. More... | |
__STATIC_INLINE uint32_t | ll_sl_clk_cal_is_done (void) |
Get the clock calibration done status. More... | |
__STATIC_INLINE uint32_t | ll_sl_clk_cal_is_overflow (void) |
Get the clock calibration overflow status. More... | |
__STATIC_INLINE uint32_t | ll_sl_clk_cal_get_fast_count (void) |
Get the fast clock calibration count value. More... | |
__STATIC_INLINE uint32_t | ll_sl_clk_cal_get_slow_cur_count (void) |
Get the slow clock calibration current count value. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_set_clk_source (uint32_t clk_source) |
Set the clock calibration clock source. More... | |
__STATIC_INLINE uint32_t | ll_sl_clk_cal_get_clk_source (void) |
Get the clock calibration clock source. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_enable_done_it (void) |
Enable the clock calibration done interrupt. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_disable_done_it (void) |
Disable the clock calibration done interrupt. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_enable_over_it (void) |
Enable the clock calibration overflow interrupt. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_disable_over_it (void) |
Disable the clock calibration overflow interrupt. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_clear_done_it (void) |
Clear the clock calibration done interrupt. More... | |
__STATIC_INLINE void | ll_sl_clk_cal_clear_over_it (void) |
Clear the clock calibration over interrupt. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_enable (void) |
Enable the clock calibration block. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_disable (void) |
Disable the clock calibration block. More... | |
__STATIC_INLINE uint32_t | ll_hs_clk_cal_is_enable (void) |
Is the clock calibration block. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_set_slow_count (uint32_t count) |
Set the slow clock calibration count. More... | |
__STATIC_INLINE uint32_t | ll_hs_clk_cal_get_slow_count (void) |
Get the slow clock setting count. More... | |
__STATIC_INLINE uint32_t | ll_hs_clk_cal_is_done (void) |
Get the clock calibration done status. More... | |
__STATIC_INLINE uint32_t | ll_hs_clk_cal_is_overflow (void) |
Get the clock calibration overflow status. More... | |
__STATIC_INLINE uint32_t | ll_hs_clk_cal_get_fast_count (void) |
Get the fast clock calibration count value. More... | |
__STATIC_INLINE uint32_t | ll_hs_clk_cal_get_slow_cur_count (void) |
Get the slow clock calibration current count value. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_set_clk_source (uint32_t clk_source) |
Set the clock calibration clock source. More... | |
__STATIC_INLINE uint32_t | ll_hs_clk_cal_get_clk_source (void) |
Get the clock calibration clock source. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_enable_done_it (void) |
Enable the clock calibration done interrupt. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_disable_done_it (void) |
Disable the clock calibration done interrupt. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_enable_over_it (void) |
Enable the clock calibration overflow interrupt. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_disable_over_it (void) |
Disable the clock calibration overflow interrupt. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_clear_done_it (void) |
Clear the clock calibration done interrupt. More... | |
__STATIC_INLINE void | ll_hs_clk_cal_clear_over_it (void) |
Clear the clock calibration over interrupt. More... | |
Header file containing functions prototypes of CLOCK LL library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file ll_clk_cal.h.