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 
21 {
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
DLLINTERNAL FloatingProtectionMessage * FloatingProtectionMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for FloatingProtectionMessage.
This structure represents a floating protection message.
Definition: FloatingProtectionMessage.h:21
uint32_t Time
Floating Protection time in ms.
Definition: FloatingProtectionMessage.h:60
bool Enabled
True when Floating Protection is enabled.
Definition: FloatingProtectionMessage.h:58
bool HasTime
True when Time is valid.
Definition: FloatingProtectionMessage.h:61
void(* Destructor)(Message *self)
Definition: FloatingProtectionMessage.h:57
MessageGroup MessageGroup
Definition: FloatingProtectionMessage.h:33
bool HasEnabled
True when Enabled is valid.
Definition: FloatingProtectionMessage.h:59
int ErrorCode
Definition: FloatingProtectionMessage.h:45
uint64_t SerialNumber
Definition: FloatingProtectionMessage.h:51
bool Error
Definition: FloatingProtectionMessage.h:39
MessageType MessageType
Definition: FloatingProtectionMessage.h:27
The main Message struct.
Definition: Message.h:21
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:134
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:104