Neonode zForce(TM) SDK

DetectedObjectSizeRestrictionMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_DETECTEDOBJECTSIZERESTRICTIONMESSAGE_DETECTEDOBJECTSIZERESTRICTIONMESSAGE_H
9 #define MESSAGE_DETECTEDOBJECTSIZERESTRICTIONMESSAGE_DETECTEDOBJECTSIZERESTRICTIONMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
21 struct DetectedObjectSizeRestrictionMessage
22 {
28 MessageType MessageType;
34 MessageGroup MessageGroup;
40 bool Error;
46 int ErrorCode;
52 uint64_t SerialNumber;
58 void ( * Destructor)(Message * self);
59 uint32_t MinimumSize;
60 uint32_t MaximumSize;
61 bool HasMinimumSize;
62 bool HasMaximumSize;
63 };
64
65 #ifdef __cplusplus
66 extern "C"
67 {
68 #endif // __cplusplus
69
85 DLLINTERNAL DetectedObjectSizeRestrictionMessage * DetectedObjectSizeRestrictionMessage_New
86 (MessageGroup messageGroup, uint32_t size);
87
88 #ifdef __cplusplus
89 }
90 #endif // __cplusplus
91
92 #endif // MESSAGE_DETECTEDOBJECTSIZERESTRICTIONMESSAGE_DETECTEDOBJECTSIZERESTRICTIONMESSAGE_H
DetectedObjectSizeRestrictionMessage_New
DLLINTERNAL DetectedObjectSizeRestrictionMessage * DetectedObjectSizeRestrictionMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for DetectedObjectSizeRestrictionMessage.
DetectedObjectSizeRestrictionMessage
This structure represents a detected object size restriction message.
Definition: DetectedObjectSizeRestrictionMessage.h:22
DetectedObjectSizeRestrictionMessage::MessageGroup
MessageGroup MessageGroup
Definition: DetectedObjectSizeRestrictionMessage.h:34
DetectedObjectSizeRestrictionMessage::HasMaximumSize
bool HasMaximumSize
True when MaximumSize is valid.
Definition: DetectedObjectSizeRestrictionMessage.h:62
DetectedObjectSizeRestrictionMessage::Error
bool Error
Definition: DetectedObjectSizeRestrictionMessage.h:40
DetectedObjectSizeRestrictionMessage::ErrorCode
int ErrorCode
Definition: DetectedObjectSizeRestrictionMessage.h:46
DetectedObjectSizeRestrictionMessage::HasMinimumSize
bool HasMinimumSize
True when MinimumSize is valid.
Definition: DetectedObjectSizeRestrictionMessage.h:61
DetectedObjectSizeRestrictionMessage::MaximumSize
uint32_t MaximumSize
Maximum size for device to detect.
Definition: DetectedObjectSizeRestrictionMessage.h:60
DetectedObjectSizeRestrictionMessage::SerialNumber
uint64_t SerialNumber
Definition: DetectedObjectSizeRestrictionMessage.h:52
DetectedObjectSizeRestrictionMessage::Destructor
void(* Destructor)(Message *self)
Definition: DetectedObjectSizeRestrictionMessage.h:58
DetectedObjectSizeRestrictionMessage::MessageType
MessageType MessageType
Definition: DetectedObjectSizeRestrictionMessage.h:28
DetectedObjectSizeRestrictionMessage::MinimumSize
uint32_t MinimumSize
Minimum size for device to detect.
Definition: DetectedObjectSizeRestrictionMessage.h:59
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