Neonode zForce(TM) SDK

FloatingProtectionMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_FLOATINGPROTECTIONMESSAGE_FLOATINGPROTECTIONMESSAGE_H
9 #define MESSAGE_FLOATINGPROTECTIONMESSAGE_FLOATINGPROTECTIONMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
20 struct FloatingProtectionMessage
21 {
27 MessageType MessageType;
33 MessageGroup MessageGroup;
39 bool Error;
45 int ErrorCode;
51 uint64_t SerialNumber;
57 void ( * Destructor)(Message * self);
58 bool Enabled;
59 bool HasEnabled;
60 uint32_t Time;
61 bool HasTime;
62 };
63
64 #ifdef __cplusplus
65 extern "C"
66 {
67 #endif // __cplusplus
68
84 DLLINTERNAL FloatingProtectionMessage * FloatingProtectionMessage_New (MessageGroup messageGroup, uint32_t size);
85
86 #ifdef __cplusplus
87 }
88 #endif // __cplusplus
89
90 #endif // MESSAGE_FLOATINGPROTECTIONMESSAGE_FLOATINGPROTECTIONMESSAGE_H
FloatingProtectionMessage_New
DLLINTERNAL FloatingProtectionMessage * FloatingProtectionMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for FloatingProtectionMessage.
FloatingProtectionMessage
This structure represents a floating protection message.
Definition: FloatingProtectionMessage.h:21
FloatingProtectionMessage::Time
uint32_t Time
Floating Protection time in ms.
Definition: FloatingProtectionMessage.h:60
FloatingProtectionMessage::Enabled
bool Enabled
True when Floating Protection is enabled.
Definition: FloatingProtectionMessage.h:58
FloatingProtectionMessage::HasTime
bool HasTime
True when Time is valid.
Definition: FloatingProtectionMessage.h:61
FloatingProtectionMessage::Destructor
void(* Destructor)(Message *self)
Definition: FloatingProtectionMessage.h:57
FloatingProtectionMessage::MessageGroup
MessageGroup MessageGroup
Definition: FloatingProtectionMessage.h:33
FloatingProtectionMessage::HasEnabled
bool HasEnabled
True when Enabled is valid.
Definition: FloatingProtectionMessage.h:59
FloatingProtectionMessage::ErrorCode
int ErrorCode
Definition: FloatingProtectionMessage.h:45
FloatingProtectionMessage::SerialNumber
uint64_t SerialNumber
Definition: FloatingProtectionMessage.h:51
FloatingProtectionMessage::Error
bool Error
Definition: FloatingProtectionMessage.h:39
FloatingProtectionMessage::MessageType
MessageType MessageType
Definition: FloatingProtectionMessage.h:27
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