-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMMALMirrorUnit.h
49 lines (35 loc) · 937 Bytes
/
MMMALMirrorUnit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* MMMALMirrorUnit.h
*
* Created on: Jul 13, 2013
* Author: Ji-Yu
*/
#ifndef MMMALMIRRORUNIT_H_
#define MMMALMIRRORUNIT_H_
#include "DeviceBase.h"
#include "MMMALHub.h"
namespace MMMAL
{
class MMMALMirrorUnit : public CStateDeviceBase<MMMALMirrorUnit>
{
public:
static const char * const DeviceName_;
static const char * const Description_;
static const char * const Keyword_N_Positions_;
MMMALMirrorUnit();
~MMMALMirrorUnit();
// MMDevice API
int Initialize();
int Shutdown();
void GetName(char *pszName) const;
bool Busy();
unsigned long GetNumberOfPositions() const;
// action interface
int OnState(MM::PropertyBase* pProp, MM::ActionType eAct);
int StateChanged();
private:
bool initialized_;
MMMALHub* hub_;
};
}
#endif /* MMMALMIRRORUNIT_H_ */