Header file containing functions prototypes of DDVS LL library. More...
#include "gr55xx_hal.h"
Go to the source code of this file.
Macros | |
#define | LL_DDVS_DIS (0U) |
#define | LL_DDVS_EN (1U) |
#define | LL_DDVS_AUTO_MODE (0U) |
#define | LL_DDVS_MALNUAL_MODE (1U) |
#define | LL_DDVS_RINGO_0_EN (1<<0U) |
#define | LL_DDVS_RINGO_1_EN (1<<1U) |
#define | LL_DDVS_RINGO_2_EN (1<<2U) |
#define | LL_DDVS_RINGO_3_EN (1<<3U) |
#define | LL_DDVS_RINGO_ALL_EN (0xFU) |
#define | LL_DDVS_RINGO_ALL_DIS (0x0U) |
#define | LL_DDVS_DIVIDE_FACTOR_8K (0U) |
#define | LL_DDVS_DIVIDE_FACTOR_4K (1U) |
#define | LL_DDVS_DIVIDE_FACTOR_16K (2U) |
#define | LL_DDVS_CLK_SEL_XO_32M (0U) |
#define | LL_DDVS_CLK_SEL_XO_16M (1U) |
#define | LL_DDVS_CLK_SEL_SYS_32M (2U) |
#define | LL_DDVS_CLK_SEL_SYS_16M (3U) |
#define | LL_DDVS_CLK_DIS (0U) |
#define | LL_DDVS_CLK_EN (1U) |
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 Register|BitsName --------|-------- DDVS_CFG_1 | CONF_DDVS_MODE. More... | |
__STATIC_INLINE uint8_t | ll_ddvs_mode_get (void) |
DDVS mode get 0b - DDVS automatic mode (default) 1b - DDVS manual mode Register|BitsName --------|-------- DDVS_CFG_1 | CONF_DDVS_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 Register|BitsName --------|-------- DDVS_CFG_1 | CONF_THRESHOLD_SLOW. 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 Register|BitsName --------|-------- DDVS_CFG_1 | CONF_THRESHOLD_SLOW. 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 Register|BitsName --------|-------- DDVS_CFG_2 | CONF_THRESHOLD_FAST. 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 Register|BitsName --------|-------- DDVS_CFG_2 | CONF_THRESHOLD_FAST. 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 Register|BitsName --------|-------- DDVS_CFG_1 | ERR_INT. 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 Register|BitsName --------|-------- DDVS_CFG_1 | CONF_RINGO_EN. 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 Register|BitsName --------|-------- DDVS_CFG_1 | CONF_RINGO_EN. 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 Register|BitsName --------|-------- DDVS_CFG_1 | CONF_DIV_FACTOR. 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 Register|BitsName --------|-------- DDVS_CFG_1 | CONF_DIV_FACTOR. More... | |
__STATIC_INLINE uint16_t | ll_ddvs_ringo_0_cnt_get (void) |
DDVS Ringo_0 count get Register|BitsName --------|-------- DDVS_RINGO_CNT_01 | RINGO_0_CNT. More... | |
__STATIC_INLINE uint16_t | ll_ddvs_ringo_1_cnt_get (void) |
DDVS Ringo_1 count get Register|BitsName --------|-------- DDVS_RINGO_CNT_01 | RINGO_1_CNT. More... | |
__STATIC_INLINE uint16_t | ll_ddvs_ringo_2_cnt_get (void) |
DDVS Ringo_2 count get Register|BitsName --------|-------- DDVS_RINGO_CNT_23 | RINGO_2_CNT. More... | |
__STATIC_INLINE uint16_t | ll_ddvs_ringo_3_cnt_get (void) |
DDVS Ringo_3 count get Register|BitsName --------|-------- DDVS_RINGO_CNT_23 | RINGO_3_CNT. More... | |
__STATIC_INLINE uint8_t | ll_ddvs_fsm_state_get (void) |
DDVS FSM state get Register|BitsName --------|-------- DDVS_FSM | STS_FSM_CURR. More... | |
__STATIC_INLINE void | ll_ddvs_clk_enable_set (uint8_t enable) |
DDVS Clock enable set Register|BitsName --------|-------- DDVS_CLK_CTRL | DDVS_CLK_EN. More... | |
__STATIC_INLINE uint8_t | ll_ddvs_clk_enable_get (void) |
DDVS Clock enable get Register|BitsName --------|-------- DDVS_CLK_CTRL | DDVS_CLK_EN. 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 Register|BitsName --------|-------- DDVS_CLK_CTRL | CONF_RINGO_EN. 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 Register|BitsName --------|-------- DDVS_CLK_CTRL | CONF_RINGO_EN. More... | |
Header file containing functions prototypes of DDVS 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 gr55xx_ll_ddvs.h.