gr55xx_ll_bod.h File Reference

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

#include "gr55xx.h"

Go to the source code of this file.

Classes

struct  _ll_bod_init
 LL BOD init Structure definition. More...
 

Macros

#define LL_BOD_ENABLE   0x1
 
#define LL_BOD_DISABLE   0x0
 
#define LL_BOD2_ENABLE   0x1
 
#define LL_BOD2_DISABLE   0x0
 
#define LL_BOD_STATIC_ENABLE   (0x1)
 
#define LL_BOD_STATIC_DISABLE   (0x0)
 
#define LL_BOD2_LEVEL_0   0x0
 
#define LL_BOD2_LEVEL_1   0x1
 
#define LL_BOD2_LEVEL_2   0x2
 
#define LL_BOD2_LEVEL_3   0x3
 
#define LL_BOD2_LEVEL_4   0x4
 
#define LL_BOD2_LEVEL_5   0x5
 
#define LL_BOD2_LEVEL_6   0x6
 
#define LL_BOD2_LEVEL_7   0x7
 
#define LL_BOD2_LEVEL_8   0x8
 
#define LL_BOD2_LEVEL_9   0x9
 
#define LL_BOD2_LEVEL_10   0xA
 
#define LL_BOD2_LEVEL_11   0xB
 
#define LL_BOD2_LEVEL_12   0xC
 
#define LL_BOD2_LEVEL_13   0xD
 
#define LL_BOD2_LEVEL_14   0xE
 
#define LL_BOD2_LEVEL_15   0xF
 

Typedefs

typedef struct _ll_bod_init ll_bod_init_t
 LL BOD init Structure definition. More...
 

Functions

__STATIC_INLINE void ll_bod_enable (void)
 Enable the bod. More...
 
__STATIC_INLINE void ll_bod_disable (void)
 Disable the bod. More...
 
__STATIC_INLINE void ll_bod2_enable (void)
 Enable the bod2. More...
 
__STATIC_INLINE void ll_bod2_disable (void)
 Disable the bod2. More...
 
__STATIC_INLINE void ll_bod2_lvl_ctrl_lv_set (uint8_t lvl_ctrl_lv)
 Set bod control level. More...
 
__STATIC_INLINE void ll_bod_static_lv_enable (void)
 enable bod static lv More...
 
__STATIC_INLINE void ll_bod_static_lv_disable (void)
 disable bod static lv More...
 
__STATIC_INLINE void ll_bod_enable_fedge (void)
 enable BOD FEDGE Event. More...
 
__STATIC_INLINE void ll_bod_disable_fedge (void)
 disable BOD FEDGE Event. More...
 
__STATIC_INLINE uint32_t ll_bod_is_active_flag_redge (void)
 Indicate if the BOD REDGE Event Flag is set or not. More...
 
__STATIC_INLINE void ll_bod_clear_flag_redge (void)
 Clear Interrupt Status flag. More...
 
__STATIC_INLINE uint32_t ll_bod_is_active_flag_fedge (void)
 Indicate if the BOD FEDGE Event Flag is set or not. More...
 
__STATIC_INLINE void ll_bod_clear_flag_fedge (void)
 Clear Interrupt Status flag. More...
 
error_status_t ll_bod_deinit (void)
 De-initialize the BOD registers to their default reset values. More...
 
error_status_t ll_bod_init (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 ll_pdm_init_t type structure to default value. More...
 

Detailed Description

Header file containing functions prototypes of CALENDAR LL library.

Author
BLE Driver Team
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_bod.h.