Neonode zForce(TM) SDK

OperationModesMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_OPERATIONMODESMESSAGE_OPERATIONMODESMESSAGE_H
9 #define MESSAGE_OPERATIONMODESMESSAGE_OPERATIONMODESMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
23 struct OperationModesMessage
24 {
30 MessageType MessageType;
36 MessageGroup MessageGroup;
42 bool Error;
48 int ErrorCode;
54 uint64_t SerialNumber;
60 void ( * Destructor)(Message * self);
61 OperationModes Mask;
62 OperationModes Values;
63 };
64
65 #ifdef __cplusplus
66 extern "C"
67 {
68 #endif // __cplusplus
69
85 DLLINTERNAL OperationModesMessage * OperationModesMessage_New (MessageGroup messageGroup, uint32_t size);
86
87 #ifdef __cplusplus
88 }
89 #endif // __cplusplus
90
91 #endif // MESSAGE_OPERATIONMODESMESSAGE_OPERATIONMODESMESSAGE_H
OperationModesMessage_New
DLLINTERNAL OperationModesMessage * OperationModesMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for OperationModesMessage.
Message
The main Message struct.
Definition: Message.h:21
OperationModesMessage
This structure represents a operation mode message.
Definition: OperationModesMessage.h:24
OperationModesMessage::MessageType
MessageType MessageType
Definition: OperationModesMessage.h:30
OperationModesMessage::Error
bool Error
Definition: OperationModesMessage.h:42
OperationModesMessage::Mask
OperationModes Mask
Mode Mask.
Definition: OperationModesMessage.h:61
OperationModesMessage::SerialNumber
uint64_t SerialNumber
Definition: OperationModesMessage.h:54
OperationModesMessage::MessageGroup
MessageGroup MessageGroup
Definition: OperationModesMessage.h:36
OperationModesMessage::Destructor
void(* Destructor)(Message *self)
Definition: OperationModesMessage.h:60
OperationModesMessage::Values
OperationModes Values
Mode Values.
Definition: OperationModesMessage.h:62
OperationModesMessage::ErrorCode
int ErrorCode
Definition: OperationModesMessage.h:48
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
OperationModes
OperationModes
Enum describing the OperationModes that a sensor can operate in.
Definition: zForceTypes.h:155