• ENERGEST_TIME_T ENERGEST_CURRENT_TIME() |
• Get the system time from the Energest time source. |
• ENERGEST_SECOND |
• The number of ticks per second from the Energest time source. |
• ENERGEST_ON(type) |
• Set the specified type to on and start tracking the time. |
• ENERGEST_OFF(type) |
• Set the specified type to off and update the total time. |
• ENERGEST_SWITCH(type_off, type_on) |
• Switch from tracking time for the first type to the second type. |
• ENERGEST_GET_TOTAL_TIME() |
• Get the total time Energest has been tracking. |
• void energest_flush(void) |
• Flush the Energest times for all components that are currently turned on. |
• uint64_t energest_type_time(energest_type_t type) |
• Read the total time the specified type has been turned on. |
• void energest_init(void) |
• Initialize the Energest module. |