Macros | Functions
gr55xx_ll_ddvs.h File Reference

Header file containing functions prototypes of DDVS LL library. More...

`#include "gr55xx_hal.h"`
Include dependency graph for gr55xx_ll_ddvs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
#define | LL_DDVS_DIS (0U)
| DDVS Disable(default) More...
#define | LL_DDVS_EN (1U)
| DDVS Enable. More...
#define | LL_DDVS_AUTO_MODE (0U)
| DDVS Auto Mode(default) More...
#define | LL_DDVS_MALNUAL_MODE (1U)
| DDVS Manual Mode. More...
#define | LL_DDVS_RINGO_0_EN (1<<0U)
| DDVS Ringo_0 Enable. More...
#define | LL_DDVS_RINGO_1_EN (1<<1U)
| DDVS Ringo_1 Enable. More...
#define | LL_DDVS_RINGO_2_EN (1<<2U)
| DDVS Ringo_2 Enable. More...
#define | LL_DDVS_RINGO_3_EN (1<<3U)
| DDVS Ringo_3 Enable. More...
#define | LL_DDVS_RINGO_ALL_EN (0xFU)
| DDVS All Ringos Enable. More...
#define | LL_DDVS_RINGO_ALL_DIS (0x0U)
| DDVS All Ringos Disable. More...
#define | LL_DDVS_DIVIDE_FACTOR_8K (0U)
| DDVS div_factor 8k. More...
#define | LL_DDVS_DIVIDE_FACTOR_4K (1U)
| DDVS div_factor 4k. More...
#define | LL_DDVS_DIVIDE_FACTOR_16K (2U)
| DDVS div_factor 16k. More...
#define | LL_DDVS_CLK_SEL_XO_32M (0U)
| DDVS Clock Select XO_32M. More...
#define | LL_DDVS_CLK_SEL_XO_16M (1U)
| DDVS Clock Select XO_16M. More...
#define | LL_DDVS_CLK_SEL_SYS_32M (2U)
| DDVS Clock Select SYS_32M. More...
#define | LL_DDVS_CLK_SEL_SYS_16M (3U)
| DDVS Clock Select SYS_16M. More...
#define | LL_DDVS_CLK_DIS (0U)
| DDVS Clock Disable(default) More...
#define | LL_DDVS_CLK_EN (1U)
| DDVS Clock Enable. More...

## Functions
__STATIC_INLINE void | ll_ddvs_enable_set (uint8_t enable)
| DDVS enable state set. More...
__STATIC_INLINE uint8_t | ll_ddvs_enable_get (void)
| DDVS enable state get. More...
__STATIC_INLINE void | ll_ddvs_mode_set (uint8_t mode)
| DDVS mode set 0b - DDVS automatic mode (default) 1b - DDVS manual mode. More...
__STATIC_INLINE uint8_t | ll_ddvs_mode_get (void)
| DDVS mode get 0b - DDVS automatic mode (default) 1b - DDVS manual mode. More...
__STATIC_INLINE void | ll_ddvs_slow_threshold_set (uint16_t threshold)
| DDVS Slow threshold(limit for ringo goes bigger) set This is the limitation of ringo being bigger than target_cnt. More...
__STATIC_INLINE uint16_t | ll_ddvs_slow_threshold_get (void)
| DDVS Slow threshold(limit for ringo goes bigger) get This is the limitation of ringo being bigger than target_cnt. More...
__STATIC_INLINE void | ll_ddvs_target_cnt_set (uint16_t target_cnt)
| DDVS Target count set. More...
__STATIC_INLINE uint16_t | ll_ddvs_target_cnt_get (void)
| DDVS Target count get. More...
__STATIC_INLINE void | ll_ddvs_fast_threshold_set (uint16_t threshold)
| DDVS Fast threshold set This is the limitation of ringo being smaller than target_cnt. More...
__STATIC_INLINE uint16_t | ll_ddvs_fast_threshold_get (void)
| DDVS Fast threshold get This is the limitation of ringo being smaller than target_cnt. More...
__STATIC_INLINE void | ll_ddvs_err_int_enable (void)
| DDVS Error interrupt enable. More...
__STATIC_INLINE void | ll_ddvs_err_int_disable (void)
| DDVS Error interrupt disable. More...
__STATIC_INLINE void | ll_ddvs_err_int_clear (void)
| DDVS Error interrupt clear From Spec, the ddvs mode shall set to manual mode before clear the interrupt When the error happens, it means the target_cnt shall be increased. More...
__STATIC_INLINE void | ll_ddvs_manual_vref_set (uint8_t vref)
| DDVS Manual vref set. More...
__STATIC_INLINE uint8_t | ll_ddvs_manual_vref_get (void)
| DDVS Manual vref get. More...
__STATIC_INLINE void | ll_ddvs_ringo_en_set (uint8_t ringo_bits)
| DDVS Ringo enable set 0000b - disable all 4 ringos (default) 0001b~1111b - enable corresponding ringos. More...
__STATIC_INLINE uint8_t | ll_ddvs_ringo_en_get (void)
| DDVS Ringo enable get 0000b - disable all 4 ringos (default) 0001b~1111b - enable corresponding ringos. More...
__STATIC_INLINE void | ll_ddvs_div_factor_set (uint8_t factor)
| DDVS Ringo frequency divide factor set 00b - 8K (default) 01b - 4K 10b - 16K 11b - Reserved. More...
__STATIC_INLINE uint8_t | ll_ddvs_div_factor_get (void)
| DDVS Ringo frequency divide factor get 00b - 8K (default) 01b - 4K 10b - 16K 11b - Reserved. More...
__STATIC_INLINE uint16_t | ll_ddvs_ringo_0_cnt_get (void)
| DDVS Ringo_0 count get. More...
__STATIC_INLINE uint16_t | ll_ddvs_ringo_1_cnt_get (void)
| DDVS Ringo_1 count get. More...
__STATIC_INLINE uint16_t | ll_ddvs_ringo_2_cnt_get (void)
| DDVS Ringo_2 count get. More...
__STATIC_INLINE uint16_t | ll_ddvs_ringo_3_cnt_get (void)
| DDVS Ringo_3 count get. More...
__STATIC_INLINE uint8_t | ll_ddvs_fsm_state_get (void)
| DDVS FSM state get. More...
__STATIC_INLINE void | ll_ddvs_clk_enable_set (uint8_t enable)
| DDVS Clock enable set. More...
__STATIC_INLINE uint8_t | ll_ddvs_clk_enable_get (void)
| DDVS Clock enable get. More...
__STATIC_INLINE void | ll_ddvs_clk_sel_set (uint8_t clk_sel)
| DDVS Clock selection set 0: xo_32MHz(default), 1: xo_16MHz, 2: sys_32MHz, 3: sys_16MHz. More...
__STATIC_INLINE uint8_t | ll_ddvs_clk_sel_get (void)
| DDVS Clock selection get 0: xo_32MHz(default), 1: xo_16MHz, 2: sys_32MHz, 3: sys_16MHz. More...

## Detailed Description

Header file containing functions prototypes of DDVS LL library.

Author
  BLE RD

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

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 gr55xx_ll_ddvs.h.