1#ifndef Eros_Test_Thermistor_Api_h_
2#define Eros_Test_Thermistor_Api_h_
9#include "colony_config.h"
17#ifndef OPTION_EROS_TEST_THERMISTOR_DISPLAY_INTERVAL_MS
18#define OPTION_EROS_TEST_THERMISTOR_DISPLAY_INTERVAL_MS (10*1000)
44 static constexpr const char*
USAGE =
"args: [<displayms>]\n"
45 " <displayms> milliseconds between outputs. Default is 10000ms";
51 static constexpr const char*
DESCRIPTION =
"Periodically Samples temperature and displays sample/metric values.";
76 bool parse(
char* args ) noexcept;
This template class implements a THREAD SAFE Ring Buffer.
Definition RingBufferMT.h:33
This class extends the Cpl::Dm::EventLoop and Cpl::Itc:Mailbox classes to support the asynchronous ch...
Definition MailboxServer.h:43
int32_t Array
Definition Array.h:457
This partial concrete class provide common infrastructure that is common to all MApp instances.
Definition MApp_.h:23
This concrete class implements MApp the monitors the output of the specialized Eros Thermistor driver...
Definition Api.h:35
uint32_t m_displayMs
Display interval time.
Definition Api.h:111
void shutdown_() noexcept
See Cpl::MApp::Api.
Cpl::Dm::SubscriberComposer< Api, Cpl::Dm::Mp::ArrayInt32< 2 > > m_obSample
Observer for change notifications.
Definition Api.h:87
uint32_t m_maxADCBits
Maximum ADC-Bits. sampled.
Definition Api.h:102
static constexpr const char * DEFAULT_NAME
The default MApp Name.
Definition Api.h:38
int64_t m_sumTemp
Cumulative sum Temp.
Definition Api.h:90
int32_t m_minTemp
Minimum Temp. sampled.
Definition Api.h:99
Cpl::Dm::Mp::ArrayInt32< 2 > & m_mpSample
Model point that contains the ADC samples.
Definition Api.h:84
Api(Cpl::Container::Map< MAppApi > &mappList, Cpl::Dm::MailboxServer &myMbox, Cpl::Dm::Mp::ArrayInt32< 2 > &mpDriverSamples, const char *name=DEFAULT_NAME)
Constructor.
uint32_t m_timeMarkerMs
Time marker of last display action.
Definition Api.h:114
static constexpr const char * DESCRIPTION
Description string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 123456789012345678...
Definition Api.h:51
void stop_() noexcept
See Cpl::MApp::Api.
bool start_(char *args) noexcept
See Cpl::MApp::Api.
uint32_t m_minADCBits
Minimum ADC-Bits. sampled.
Definition Api.h:105
void intialize_() noexcept
See Cpl::MApp::Api.
int32_t m_maxTemp
Maximum Temp. sampled.
Definition Api.h:96
bool parse(char *args) noexcept
Helper method to parse the 'command line' options.
bool m_invalidData
Track my invalid data state.
Definition Api.h:117
static constexpr const char * USAGE
Usage string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 123456789012345678901234...
Definition Api.h:44
void changedADCSample(Cpl::Dm::Mp::ArrayInt32< 2 > &mpThatChanged, Cpl::Dm::SubscriberApi &clientObserver) noexcept
Change notification for new ADC Sample available.
uint32_t m_numSamples
Number of samples.
Definition Api.h:108
uint64_t m_sumADCBits
Cumulative sum ADC-Bits.
Definition Api.h:93
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20
The 'Eros' namespace is the root name space all of the GM6000 Engineering Test Application specific s...
Definition screens.h:22