gr55xx_hal_pwr.h File Reference

Header file containing functions prototypes of PWR HAL library. More...

#include "gr55xx_ll_pwr.h"
#include "gr55xx_hal_def.h"

Go to the source code of this file.

Macros

#define PWR_WKUP_COND_EXT   LL_PWR_WKUP_COND_EXT
 
#define PWR_WKUP_COND_TIMER   LL_PWR_WKUP_COND_TIMER
 
#define PWR_WKUP_COND_BLE   LL_PWR_WKUP_COND_BLE
 
#define PWR_WKUP_COND_CLDR   LL_PWR_WKUP_COND_CLDR
 
#define PWR_WKUP_COND_BOD_FEDGE   LL_PWR_WKUP_COND_BOD_FEDGE
 
#define PWR_WKUP_COND_MSIO_COMP   LL_PWR_WKUP_COND_COMP
 
#define PWR_WKUP_COND_AUSB   LL_PWR_WKUP_COND_AUSB
 
#define PWR_WKUP_COND_DUSB   LL_PWR_WKUP_COND_DUSB
 
#define PWR_WKUP_COND_BLE_IRQ   LL_PWR_WKUP_COND_BLE_IRQ
 
#define PWR_WKUP_COND_CLDR_TICK   LL_PWR_WKUP_COND_CLDR_TICK
 
#define PWR_WKUP_COND_AON_WDT   LL_PWR_WKUP_COND_AON_WDT
 
#define PWR_WKUP_COND_ALL   LL_PWR_WKUP_COND_ALL
 
#define PWR_TIMER_TYPE_CAL_TIMER   0
 
#define PWR_TIMER_TYPE_AON_WDT   1
 
#define PWR_TIMER_TYPE_SLP_TIMER   2
 
#define PWR_TIMER_TYPE_CAL_ALARM   3
 
#define PWR_TIMER_TYPE_AON_WDT_TIMER   4
 
#define PWR_MEM_POWER_OFF   LL_PWR_MEM_POWER_OFF
 
#define PWR_MEM_POWER_FULL   LL_PWR_MEM_POWER_FULL
 
#define PWR_MEM_POWER_RETENTION   LL_PWR_MEM_POWER_RETENTION
 
#define HAL_PWR_TIMEOUT_DEFAULT_VALUE   ((uint32_t)0x000FFFFF)
 
#define IS_PWR_WAKEUP_CONDITION(__COND__)
 Check if PWR wakeup condition is valid. More...
 
#define IS_PWR_MEM_BLOCK(__BLOCK__)
 Check if PWR memory block is valid. More...
 
#define IS_PWR_MEM_POWER_STAT(__STATE__)
 Check if PWR memory power state is valid. More...
 
#define IS_PWR_PWR_TIMER_TYPE(__TYPE__)
 Check if PWR sleep timer type is valid. More...
 

Functions

void hal_pwr_enter_chip_deepsleep (void)
 Enters DeepSleep mode. More...
 
hal_status_t hal_pwr_get_timer_current_value (uint32_t timer_type, uint32_t *p_value)
 Get the current value of specified timer. More...
 

Detailed Description

Header file containing functions prototypes of PWR HAL 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_hal_pwr.h.