5.11.0.0R3
Software Development Kit
 
Loading...
Searching...
No Matches
CyPE Functions

Macros

#define WICED_POWER_LOGGER(proc_id, event_id, event_state)
 
#define WICED_POWER_LOGGER_DATA(proc_id, event_id, event_state, data)
 
#define WPL_START()
 

Detailed Description

CyPE provides power event logging APIs in the platform.

Macro Definition Documentation

◆ 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

#define WPL_START ( )

Initializes and starts CyPE's power logging module.

Parameters
NOparameters required.
Returns
NO return value.