Macros | Functions
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"`
Include dependency graph for gr55xx_hal_pwr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
#define | PWR_WKUP_COND_EXT LL_PWR_WKUP_COND_EXT
| External wakeup: AON_GPIO More...
#define | PWR_WKUP_COND_TIMER LL_PWR_WKUP_COND_TIMER
| AON Timer wakeup More...
#define | PWR_WKUP_COND_BLE LL_PWR_WKUP_COND_BLE
| BLE wakeup More...
#define | PWR_WKUP_COND_CLDR LL_PWR_WKUP_COND_CLDR
| Calendar wakeup More...
#define | PWR_WKUP_COND_BOD_FEDGE LL_PWR_WKUP_COND_BOD_FEDGE
| PMU Bod falling edge wakeup More...
#define | PWR_WKUP_COND_MSIO_COMP LL_PWR_WKUP_COND_COMP
| Msio comparator wakeup More...
#define | PWR_WKUP_COND_AUSB LL_PWR_WKUP_COND_AUSB
| USB attach wakeup event More...
#define | PWR_WKUP_COND_DUSB LL_PWR_WKUP_COND_DUSB
| USB detach wakeup event More...
#define | PWR_WKUP_COND_BLE_IRQ LL_PWR_WKUP_COND_BLE_IRQ
| BLE IRQ wakeup event More...
#define | PWR_WKUP_COND_CLDR_TICK LL_PWR_WKUP_COND_CLDR_TICK
| Calendar Tick wakeup event More...
#define | PWR_WKUP_COND_AON_WDT LL_PWR_WKUP_COND_AON_WDT
| AON WDT Alarm wakeup event More...
#define | PWR_WKUP_COND_ALL LL_PWR_WKUP_COND_ALL
| All wakeup sources mask More...
#define | PWR_TIMER_TYPE_CAL_TIMER 0
| Calendar timer More...
#define | PWR_TIMER_TYPE_AON_WDT 1
| AON watchdog alarm timer More...
#define | PWR_TIMER_TYPE_SLP_TIMER 2
| Sleep timer More...
#define | PWR_TIMER_TYPE_CAL_ALARM 3
| Calendar alarm timer More...
#define | PWR_TIMER_TYPE_AON_WDT_TIMER 4
| AON watchdog timer timer(B0) More...
#define | PWR_MEM_POWER_OFF LL_PWR_MEM_POWER_OFF
| Power off. More...
#define | PWR_MEM_POWER_FULL LL_PWR_MEM_POWER_FULL
| Full power. More...
#define | PWR_MEM_POWER_RETENTION LL_PWR_MEM_POWER_RETENTION
| Power retention, low valtage mode. More...
#define | HAL_PWR_TIMEOUT_DEFAULT_VALUE ((uint32_t)0x000FFFFF)
| 0xFFFFF counts More...
#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.