Header file containing functions prototypes of CALENDAR LL library. More...
#include "gr5x.h"
Go to the source code of this file.
Classes | |
struct | _ll_bod_init |
LL BOD init Structure definition. More... | |
Macros | |
#define | LL_BOD_BOD_ENABLE (0x1U) |
#define | LL_BOD_BOD_DISABLE (0x0U) |
#define | LL_BOD_BOD2_ENABLE (0x1U) |
#define | LL_BOD_BOD2_DISABLE (0x0U) |
#define | LL_BOD_STATIC_ENABLE (0x1U) |
#define | LL_BOD_STATIC_DISABLE (0x0U) |
#define | LL_BOD_BOD2_AUTO_POWER_BYPASS_ENABLE (0x1U) |
#define | LL_BOD_BOD2_AUTO_POWER_BYPASS_DISABLE (0x0U) |
#define | LL_BOD_BOD2_LEVEL_0 (0x0U) |
#define | LL_BOD_BOD2_LEVEL_1 (0x1U) |
#define | LL_BOD_BOD2_LEVEL_2 (0x2U) |
#define | LL_BOD_BOD2_LEVEL_3 (0x3U) |
#define | LL_BOD_BOD2_LEVEL_4 (0x4U) |
#define | LL_BOD_BOD2_LEVEL_5 (0x5U) |
#define | LL_BOD_BOD2_LEVEL_6 (0x6U) |
#define | LL_BOD_BOD2_LEVEL_7 (0x7U) |
Typedefs | |
typedef struct _ll_bod_init | ll_bod_init_t |
LL BOD init Structure definition. More... | |
Functions | |
__STATIC_INLINE void | ll_bod_bod_enable (void) |
Enable the bod. More... | |
__STATIC_INLINE void | ll_bod_bod_disable (void) |
Disable the bod. More... | |
__STATIC_INLINE void | ll_bod_bod2_enable (void) |
Enable the bod2. More... | |
__STATIC_INLINE void | ll_bod_bod2_disable (void) |
Disable the bod2. More... | |
__STATIC_INLINE void | ll_bod_bod2_lvl_ctrl_lv_set (uint8_t lvl_ctrl_lv) |
Set bod control level. More... | |
__STATIC_INLINE void | ll_bod_static_enable (void) |
enable bod static lv More... | |
__STATIC_INLINE void | ll_bod_static_disable (void) |
disable bod static lv More... | |
__STATIC_INLINE void | ll_bod_bod2_auto_power_bypass_enable (void) |
Enable the bod2 auto power bypass. More... | |
__STATIC_INLINE void | ll_bod_bod2_auto_power_bypass_disable (void) |
Disable the bod2 auto power bypass. More... | |
__STATIC_INLINE uint32_t | ll_bod_bod2_is_active_flag_bod_ok (void) |
Indicate if the BOD Power Flag is set or not. More... | |
__STATIC_INLINE uint32_t | ll_bod_bod2_is_active_flag_bod2_pwr_ctrl_post (void) |
Indicate if the BOD2 Power Flag is set or not. More... | |
__STATIC_INLINE uint32_t | ll_bod_bod2_is_active_flag_pmu_bod_intr (void) |
Indicate if the BOD INTR Flag is set or not. More... | |
__STATIC_INLINE void | ll_bod_bod2_enable_fedge (void) |
enable BOD FEDGE Event. More... | |
__STATIC_INLINE void | ll_bod_bod2_disable_fedge (void) |
disable BOD FEDGE Event. More... | |
__STATIC_INLINE void | ll_bod_bod2_enable_redge (void) |
enable BOD REDGE Event. More... | |
__STATIC_INLINE void | ll_bod_bod2_disable_redge (void) |
disable BOD REDGE Event. More... | |
__STATIC_INLINE uint32_t | ll_bod_bod2_is_active_flag_fedge (void) |
Indicate if the BOD FEDGE Event Flag is set or not. More... | |
__STATIC_INLINE void | ll_bod_bod2_clear_flag_fedge (void) |
Clear Interrupt Status flag. More... | |
__STATIC_INLINE uint32_t | ll_bod_bod2_is_active_flag_redge (void) |
Indicate if the BOD REDGE Event Flag is set or not. More... | |
__STATIC_INLINE void | ll_bod_bod2_clear_flag_redge (void) |
Clear Interrupt Status flag. More... | |
void | ll_bod_deinit (void) |
De-initialize the BOD registers to their default reset values. More... | |
void | ll_bod_init (const ll_bod_init_t *p_bod_init) |
Initialize the BOD registers according to the specified parameters in p_bod_init. More... | |
void | ll_bod_struct_init (ll_bod_init_t *p_bod_init) |
Set each field of a p_bod_init type structure to default value. More... | |
Header file containing functions prototypes of CALENDAR 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_bod.h.