Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
PCA9553Status.h
Go to the documentation of this file.
1 #ifndef LEDSTATUS_H
2 #define LEDSTATUS_H
3 
4 #include "StatusReporter.h"
5 #include "libdaq/pca9553.h"
6 #include <string>
7 
8 #include "Utility/Types.h"
9 
19 {
20 public:
21  tcPCA9553Status(std::string *apInformation = NULL);
22 
23  virtual ~tcPCA9553Status();
24 
30  virtual void updateStatus(teStatus aeStatus, const char *apMessage) override;
31 
32  virtual void disableIndicators(bool abDisable) override;
33 
34 private:
35 
36  void setColor(MityDSP::tcPca9553::teLed &arToSet, int32 anToParse);
37 
38  MityDSP::tcPca9553 *mpLedDriver;
39 
40  MityDSP::tcPca9553::teLed maColors[3];
41 
42  teStatus meLastStatus;
43  teStatus meLastLEDStatus;
44  bool mbDisabled;
45 };
46 
47 #endif // LEDSTATUS_H
48 
tcPCA9553Status::tcPCA9553Status
tcPCA9553Status(std::string *apInformation=NULL)
Definition: PCA9553Status.cpp:30
int32
int32_t int32
Definition: Types.h:8
tcStatusReporter::teStatus
teStatus
Definition: StatusReporter.h:32
Types.h
tcPCA9553Status::updateStatus
virtual void updateStatus(teStatus aeStatus, const char *apMessage) override
Definition: PCA9553Status.cpp:106
tcStatusReporter
Base Class for status reporting interface.
Definition: StatusReporter.h:16
tcPCA9553Status
The tcPCA9553Status changes an onboard tri-color LED based on updateStatus() reports.
Definition: PCA9553Status.h:18
StatusReporter.h
tcPCA9553Status::disableIndicators
virtual void disableIndicators(bool abDisable) override
Turn on/off the attached Tri-Color LED.
Definition: PCA9553Status.cpp:84
tcPCA9553Status::~tcPCA9553Status
virtual ~tcPCA9553Status()
Definition: PCA9553Status.cpp:72