Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_hal_power.h
Go to the documentation of this file.
1
10
11#ifndef TR_HAL_POWER_H_
12#define TR_HAL_POWER_H_
13
14#include "tr_hal_platform.h"
15
16
22
23// this is to set the power mode to wake, lite sleep, deep sleep, power down
24// this calls all the HAL modules so they are in the correct state
25// not yet implemented
26//tr_hal_status_t tr_hal_power_set_power_mode(tr_hal_power_mode_t power_mode);
27
28// we have some specific functions for enabling, disabling, and reading enabled
29// state of clocks
33 bool* is_enabled);
34
35
39
40
41#endif //TR_HAL_POWER_H_
tr_hal_status_t
Definition tr_hal_common.h:25
tr_hal_clock_t
enum for the different clocks some of these can be disabled and some cannot, the crystal oscillator c...
Definition T32CZ20_power.h:202
tr_hal_status_t tr_hal_power_is_clock_enabled(tr_hal_clock_t clock, bool *is_enabled)
tr_hal_status_t tr_hal_power_disable_clock(tr_hal_clock_t clock)
tr_hal_status_t tr_hal_power_enable_clock(tr_hal_clock_t clock)