This file contains all the functions prototypes for the HAL module driver. More...
Include dependency graph for gr55xx_hal_pwr_mgmt.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | ALL_DEVICES_SLEEP (0xFFFFFFFFU) |
| All peripherals sleep More... | |
| #define | ALL_DEVICES_BACKUP (0x00000000U) |
| All peripherals backed up. More... | |
Typedefs | |
| typedef hal_status_t(* | p_device_suspend_func) (void *p_dev_handle) |
| Peripheral suspend callback definition. More... | |
| typedef hal_status_t(* | p_device_resume_func) (void *p_dev_handle) |
| Peripheral resume callback definition. More... | |
Variables | |
| volatile uint32_t | g_devices_state |
| All peripheral status.When all are idle, the system can sleep. More... | |
| volatile uint32_t | g_devices_renew |
| Peripheral updata flag.If peripherals have been used, they need to be backed up. More... | |
| volatile uint32_t | g_devices_sleep |
| Peripheral sleep flag.Go to sleep as 0xFFFFFFFF.The corresponding bit is cleared to 0 after wake-up recovery. More... | |
| p_device_suspend_func | devices_suspend_cb [MAX_PERIPH_DEVICE_NUM] |
| Store the suspend function of all peripherals. More... | |
| p_device_resume_func | devices_resume_cb [MAX_PERIPH_DEVICE_NUM] |
| Store the resume function of all peripherals. More... | |
| void * | devices_handle [MAX_PERIPH_DEVICE_NUM] |
| Store the handle addresses of all peripheral instances. More... | |
| volatile uint32_t | g_extra_devices_state |
| All extra devices status.When all are idle, the system can sleep. More... | |
| volatile uint32_t | g_extra_devices_renew |
| Extra devices updata flag.If extra devices have been used, they need to be backed up. More... | |
| p_device_suspend_func | extra_devices_suspend_cb [MAX_EXTRA_DEVICE_NUM] |
| Store the suspend function of all extra devices. More... | |
| p_device_resume_func | extra_devices_resume_cb [MAX_EXTRA_DEVICE_NUM] |
| Store the resume function of all extra devices. More... | |
| void * | extra_devices_handle [MAX_EXTRA_DEVICE_NUM] |
| Store the handle addresses of all extra devices instances. More... | |
This file contains all the functions prototypes for the HAL module driver.
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_mgmt.h.