Modules#
Coulomb Counter#
API and Callbacks for the Coulomb Counter Component.
Approximates energy consumption by keeping time spent in different device states. This is used for testing.
API#
Return the current core mode.
Return the current state of all additive modes.
Return the cumulative energy usage metric since last value reset.
Reset the energy usage metric.
Enumerations#
Macros#
API Documentation#
emberAfPluginCommandCoulombCounterGetCurrentCoreMode#
uint16_t emberAfPluginCommandCoulombCounterGetCurrentCoreMode (void )
Return the current core mode.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns the current core mode of the system. The core mode is the basis for energy consumption measurements. Each core mode is mutually exclusive.
Returns
the current core mode.
emberAfPluginCommandCoulombCounterGetAdditiveModesBitfield#
uint16_t emberAfPluginCommandCoulombCounterGetAdditiveModesBitfield (void )
Return the current state of all additive modes.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns the current state of all additive modes. All bits raised in the bitfield indicate that the state is current 'On'.
Returns
the current additive modes bitfield.
emberAfPluginCommandCoulombCounterGetEnergyUsage#
uint32_t emberAfPluginCommandCoulombCounterGetEnergyUsage (void )
Return the cumulative energy usage metric since last value reset.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns the cumulative energy usage metric since last value reset. This value is in the same unit as all other provided values and is persisted until explicitly reset.
Returns
the currently recorded energy usage.
emberAfPluginCommandCoulombCounterResetEnergyUsage#
void emberAfPluginCommandCoulombCounterResetEnergyUsage (void )
Reset the energy usage metric.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Resets the energy usage metric. This calls clears both the volatile and non volatile values.
Enumeration Documentation#
EmberAfPluginCoulombCounterCoreMode#
EmberAfPluginCoulombCounterCoreMode
Enumerator | |
---|---|
EMBER_AF_PLUGIN_COULOMB_COUNTER_RADIO_MODE_RX_SHIFT | |
EMBER_AF_PLUGIN_COULOMB_COUNTER_RADIO_MODE_TX_SHIFT | |
EMBER_AF_PLUGIN_COULOMB_COUNTER_CORE_MODE_SLEEP_SHIFT | |
EMBER_AF_PLUGIN_COULOMB_COUNTER_CORE_MODE_IDLE_SHIFT | |
EMBER_AF_PLUGIN_COULOMB_COUNTER_CORE_MODE_AWAKE_SHIFT | |
EMBER_AF_PLUGIN_COULOMB_COUNTER_EEPROM_STATE_SHIFT | |
EMBER_AF_PLUGIN_COULOMB_COUNTER_CORE_MODE_MAX |