Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
DigitalIOHandler.h
Go to the documentation of this file.
1 /*
2  * DigitalIOHandler.h
3  *
4  * Created on: Sep 20, 2016
5  * Author: mitydsp
6  */
7 
8 #ifndef DIGITALIOHANDLER_H_
9 #define DIGITALIOHANDLER_H_
10 
11 #include "AbstractHandler.h"
13 
14 namespace SocCamera {
15 
20 {
21 public:
23  tcAbstractHandler *apNextHandler = NULL, std::map<std::string, tcAbstractHandler*> *apMap = NULL);
24  virtual ~tcDigitalIOHandler();
25 
29  virtual std::string execute(std::string& arCommandString,
30  std::string& arParameters);
31 
32  virtual void update(tsUpdate asMessage);
33  virtual void notifyRead(int64_t anAddr, int64_t anOffset, int64_t anLen) const override;
34 
35 private:
36  void updateGpio(unsigned int IoPin);
37 
38  unsigned int mnIoSelect;
39  unsigned int mnLineMode[4];
40  unsigned int mnLineSource[4]; // Cached output mode.
41  unsigned int mnUserOutputSelector; // User output selector
42  unsigned int mnUserOutputSource[4]; // current state (high/low) of the user output.
43  unsigned int mnLineInverter[4]; // Cached line inverter state
44 };
45 
46 }
47 
48 #endif /* DIGITALIOHANDLER_H_ */
tsUpdate
Definition: Observer.h:6
tcRegisterFileObserver
Definition: RegisterFileObserver.h:7
RegisterFileObserver.h
SocCamera::tcDigitalIOHandler
Definition: DigitalIOHandler.h:19
SocCamera::tcDigitalIOHandler::tcDigitalIOHandler
tcDigitalIOHandler(tcSensorBoard *apSensor, tcAbstractHandler *apNextHandler=NULL, std::map< std::string, tcAbstractHandler * > *apMap=NULL)
Definition: DigitalIOHandler.cpp:13
SocCamera::tcAbstractHandler
Definition: AbstractHandler.h:24
SocCamera::tcDigitalIOHandler::update
virtual void update(tsUpdate asMessage)
Definition: DigitalIOHandler.cpp:39
SocCamera
Definition: CameraTypes.h:7
SocCamera::tcDigitalIOHandler::notifyRead
virtual void notifyRead(int64_t anAddr, int64_t anOffset, int64_t anLen) const override
notifyRead - a pre-read notification hook
Definition: DigitalIOHandler.cpp:118
AbstractHandler.h
SocCamera::tcDigitalIOHandler::~tcDigitalIOHandler
virtual ~tcDigitalIOHandler()
Definition: DigitalIOHandler.cpp:29
SocCamera::tcSensorBoard
Definition: SensorBoard.h:40
SocCamera::tcDigitalIOHandler::execute
virtual std::string execute(std::string &arCommandString, std::string &arParameters)
Definition: DigitalIOHandler.cpp:33