CyPE provides power event logging APIs in the platform.
◆ WICED_POWER_LOGGER
| #define WICED_POWER_LOGGER |
( |
| proc_id, |
|
|
| event_id, |
|
|
| event_state ) |
Logs time for a supported power event. Current time is logged as the start time for the specified event_state. The time spent from previous logging is added into the previous event_state
- Parameters
-
| proc_id | : Processor ID |
| event_id | : Event ID |
| event_state | : Descriptor ID, represents different states assumed by the power events (for example, an MCU Power event can have event descriptors like: Active, Sleep etc.) |
- Returns
- NO return value.
◆ WICED_POWER_LOGGER_DATA
| #define WICED_POWER_LOGGER_DATA |
( |
| proc_id, |
|
|
| event_id, |
|
|
| event_state, |
|
|
| data ) |
Logs data value for a supported power event. Resets the current data value of event_state with the specified data
- Parameters
-
| proc_id | : Processor ID |
| event_id | : Event ID |
| event_state | : Descriptor ID, represents different states assumed by the power events (for example, an MCU Power event can have event descriptors like: Active, Sleep etc.) |
| data | : Data value to be put for event_state. |
- Returns
- NO return value.
◆ WPL_START
Initializes and starts CyPE's power logging module.
- Parameters
-
- Returns
- NO return value.