Neonode zForce(TM) SDK

EnableMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_ENABLEMESSAGE_ENABLEMESSAGE_H
9 #define MESSAGE_ENABLEMESSAGE_ENABLEMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
21 struct EnableMessage
22 {
28 MessageType MessageType;
34 MessageGroup MessageGroup;
40 bool Error;
46 int ErrorCode;
52 uint64_t SerialNumber;
58 void ( * Destructor)(Message * self);
59 bool Enabled;
60 bool ContinuousMode;
61 uint32_t NumberOfMessages;
62 };
63
64 #ifdef __cplusplus
65 extern "C"
66 {
67 #endif // __cplusplus
68
84 DLLINTERNAL EnableMessage * EnableMessage_New (MessageGroup messageGroup, uint32_t size);
85
86 #ifdef __cplusplus
87 }
88 #endif // __cplusplus
89
90 #endif // MESSAGE_ENABLEMESSAGE_ENABLEMESSAGE_H
EnableMessage_New
DLLINTERNAL EnableMessage * EnableMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for EnableMessage.
EnableMessage
This structure represents an enable message.
Definition: EnableMessage.h:22
EnableMessage::ErrorCode
int ErrorCode
Definition: EnableMessage.h:46
EnableMessage::SerialNumber
uint64_t SerialNumber
Definition: EnableMessage.h:52
EnableMessage::MessageGroup
MessageGroup MessageGroup
Definition: EnableMessage.h:34
EnableMessage::Error
bool Error
Definition: EnableMessage.h:40
EnableMessage::Destructor
void(* Destructor)(Message *self)
Definition: EnableMessage.h:58
EnableMessage::MessageType
MessageType MessageType
Definition: EnableMessage.h:28
EnableMessage::Enabled
bool Enabled
True when device is enabled.
Definition: EnableMessage.h:59
EnableMessage::ContinuousMode
bool ContinuousMode
True when device is set to Continuous Mode.
Definition: EnableMessage.h:60
EnableMessage::NumberOfMessages
uint32_t NumberOfMessages
Number Of Messages.
Definition: EnableMessage.h:61
Message
The main Message struct.
Definition: Message.h:21
MessageGroup
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:134
MessageType
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:104