SLAA638A august 2014 – may 2023 MSP430I2040 , MSP430I2041
The embedded metering library uses callbacks to call to functions defined in the application program as an indication of events. The callbacks are declared in “emeter-metrology.h” and the function implementation must be provided in the application code (even an empty function is acceptable, in case there is no need to process the event). In the provided application example, the callback functions are implemented in “emeter-main.c”.
Called when background process starts
Called when background process finished
Called when foreground process starts
Called when foreground process finished.
Called when voltage signal is zero crossing from positive to negative
Called when voltage signal is zero crossing from negative to positive
Called when entering AC measurement mode
Called when leaving AC measurement mode
Called when entering DC measurement mode
Called when leaving DC measurement mode
Called when an energy pulse output is going from idle to pulsing state.
Called when an energy pulse output is going from pulsing to idle