![]() |
GM6000 Digital Heater Controller Build: 20 (Branch = develop)
SDX-1330
|
This concrete class implements MApp the monitors the output of the specialized Eros Thermistor driver and periodically writes the temperature and ADC-bits values to the trace output. More...
This concrete class implements MApp the monitors the output of the specialized Eros Thermistor driver and periodically writes the temperature and ADC-bits values to the trace output.
The MApp also collects some metrics
#include <Api.h>
Public Member Functions | |
| Api (Cpl::Container::SList< MAppApi > &mappList, Cpl::Dm::MailboxServer &myMbox, Cpl::Dm::Mp::ArrayInt32< 2 > &mpDriverSamples, const char *name=DEFAULT_NAME) | |
| Constructor. | |
Public Member Functions inherited from Cpl::MApp::MApp_ | |
| const char * | getName () const noexcept |
| See Cpl::MApp::Api. | |
| const char * | getDescription () const noexcept |
| See Cpl::MApp::Api. | |
| const char * | getUsage () const noexcept |
| See Cpl::MApp::Api. | |
Public Member Functions inherited from Cpl::MApp::MAppApi | |
| virtual | ~MAppApi () |
| Virtual destructor. | |
Public Member Functions inherited from Cpl::Container::Item | |
| bool | insert_ (void *newContainerPtr) |
| Helper method to trap when inserting an item in multiple containers. | |
| bool | isInContainer_ (const void *containerPtr) const noexcept |
| Returns 'true' if the instance is in the specified container. | |
Static Public Attributes | |
| static constexpr const char * | DEFAULT_NAME = "thermistor" |
| The default MApp Name. | |
| static constexpr const char * | USAGE |
| Usage string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 12345678901234567890123456789012345678901234567890123456789012345678901234567890. | |
| static constexpr const char * | DESCRIPTION = "Periodically Samples temperature and displays sample/metric values." |
| Description string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 12345678901234567890123456789012345678901234567890123456789012345678901234567890. | |
Protected Member Functions | |
| void | intialize_ () noexcept |
| See Cpl::MApp::Api. | |
| bool | start_ (char *args) noexcept |
| See Cpl::MApp::Api. | |
| void | stop_ () noexcept |
| See Cpl::MApp::Api. | |
| void | shutdown_ () noexcept |
| See Cpl::MApp::Api. | |
| bool | parse (char *args) noexcept |
| Helper method to parse the 'command line' options. | |
| void | changedADCSample (Cpl::Dm::Mp::ArrayInt32< 2 > &mpThatChanged, Cpl::Dm::SubscriberApi &clientObserver) noexcept |
| Change notification for new ADC Sample available. | |
Protected Member Functions inherited from Cpl::MApp::MApp_ | |
| MApp_ (Cpl::Container::SList< MAppApi > &mappList, const char *mappName, const char *description, const char *usage) | |
| Constructor. | |
Protected Member Functions inherited from Cpl::Container::Item | |
| Item () | |
| Constructor. | |
| Item (const char *) | |
| Constructor used ONLY with the child class MapItem: -->special constructor to allow a Map to be statically allocated. | |
Protected Attributes | |
| Cpl::Dm::Mp::ArrayInt32< 2 > & | m_mpSample |
| Model point that contains the ADC samples. | |
| Cpl::Dm::SubscriberComposer< Api, Cpl::Dm::Mp::ArrayInt32< 2 > > | m_obSample |
| Observer for change notifications. | |
| int64_t | m_sumTemp |
| Cumulative sum Temp. | |
| uint64_t | m_sumADCBits |
| Cumulative sum ADC-Bits. | |
| int32_t | m_maxTemp |
| Maximum Temp. sampled. | |
| int32_t | m_minTemp |
| Minimum Temp. sampled. | |
| uint32_t | m_maxADCBits |
| Maximum ADC-Bits. sampled. | |
| uint32_t | m_minADCBits |
| Minimum ADC-Bits. sampled. | |
| uint32_t | m_numSamples |
| Number of samples. | |
| uint32_t | m_displayMs |
| Display interval time. | |
| uint32_t | m_timeMarkerMs |
| Time marker of last display action. | |
| bool | m_invalidData |
| Track my invalid data state. | |
Protected Attributes inherited from Cpl::MApp::MApp_ | |
| const char * | m_name |
| Command name. | |
| const char * | m_description |
| Description. | |
| const char * | m_usage |
| Usage. | |
| bool | m_started |
| Started state. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Cpl::Container::Item | |
| static void | remove_ (Item *itemPtr) noexcept |
| Helper method to do the proper 'clean-up' for the multiple-containers-error-trap when removing an item from a container. | |
Public Attributes inherited from Cpl::Container::Item | |
| void * | m_nextPtr_ |
| The link field. | |
| void * | m_inListPtr_ |
| Debug field. | |
| Eros::Test::Thermistor::Api::Api | ( | Cpl::Container::SList< MAppApi > & | mappList, |
| Cpl::Dm::MailboxServer & | myMbox, | ||
| Cpl::Dm::Mp::ArrayInt32< 2 > & | mpDriverSamples, | ||
| const char * | name = DEFAULT_NAME ) |
Constructor.
|
protectednoexcept |
Change notification for new ADC Sample available.
|
protectedvirtualnoexcept |
See Cpl::MApp::Api.
Implements Cpl::MApp::MAppApi.
|
protectednoexcept |
Helper method to parse the 'command line' options.
|
protectedvirtualnoexcept |
See Cpl::MApp::Api.
Implements Cpl::MApp::MAppApi.
|
protectedvirtualnoexcept |
See Cpl::MApp::Api.
Implements Cpl::MApp::MAppApi.
|
protectedvirtualnoexcept |
See Cpl::MApp::Api.
Implements Cpl::MApp::MAppApi.
|
staticconstexpr |
The default MApp Name.
|
staticconstexpr |
Description string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 12345678901234567890123456789012345678901234567890123456789012345678901234567890.
|
protected |
Display interval time.
|
protected |
Track my invalid data state.
|
protected |
Maximum ADC-Bits. sampled.
|
protected |
Maximum Temp. sampled.
|
protected |
Minimum ADC-Bits. sampled.
|
protected |
Minimum Temp. sampled.
|
protected |
Model point that contains the ADC samples.
|
protected |
Number of samples.
|
protected |
Observer for change notifications.
|
protected |
Cumulative sum ADC-Bits.
|
protected |
Cumulative sum Temp.
|
protected |
Time marker of last display action.
|
staticconstexpr |
Usage string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 12345678901234567890123456789012345678901234567890123456789012345678901234567890.