EventNotificationMessage Struct
Notification of a system event for logging purposes (MessageType::EVENT_NOTIFICATION, version 1). More...
Declaration
struct point_one::fusion_engine::messages::EventNotificationMessage { ... }
Base struct
Enumerations Index
Public Member Attributes Index
Public Static Functions Index
Public Static Attributes Index
Description
Notification of a system event for logging purposes (MessageType::EVENT_NOTIFICATION, version 1).
This message is followed by a string describing the event or additional binary content, depending on the type of event. The length of the description is event_description_len_bytes. Strings are not null-terminated.
{MessageHeader, EventNotificationMessage, "Description"}
Definition at line 213 of file device.h.
Enumerations
EventType
| enum class point_one::fusion_engine::messages::EventNotificationMessage::EventType : uint8_t |
|
strong
|
- Enumeration values
-
| LOG | Event containing a logged message string from the device (= 0) |
| RESET | Event indicating a device reset occurred (= 1) |
| CONFIG_CHANGE | Notification that the user configuration has been changed (= 2) |
| COMMAND | Notification that the user performed a command (e.g., configuration request, fault injection enable/disable) (= 3) |
| COMMAND_RESPONSE | Record containing the response to a user command (= 4) |
Definition at line 214 of file device.h.
215
216
217
219
220
221
222
223
224 RESET = 1,
225
226
227
228
229 CONFIG_CHANGE = 2,
230
231
232
233
234 COMMAND = 3,
235
236
237
238
239
241 };
Public Member Attributes
event_description_len_bytes
| uint16_t point_one::fusion_engine::messages::EventNotificationMessage::event_description_len_bytes = 0 |
|
The number of bytes in the event description string.
Definition at line 278 of file device.h.
event_flags
| uint64_t point_one::fusion_engine::messages::EventNotificationMessage::event_flags = 0 |
|
A bitmask of flags associated with the event.
Definition at line 275 of file device.h.
system_time_ns
| int64_t point_one::fusion_engine::messages::EventNotificationMessage::system_time_ns = 0 |
|
The system time when the event occurred (in ns).
Definition at line 272 of file device.h.
type
| EventType point_one::fusion_engine::messages::EventNotificationMessage::type = EventType::LOG |
|
The type of event that occurred.
Definition at line 267 of file device.h.
Public Static Functions
to_string()
| P1_CONSTEXPR_FUNC const char * point_one::fusion_engine::messages::EventNotificationMessage::to_string (EventType type) |
|
inline
static
|
Definition at line 243 of file device.h.
244 switch (type) {
245 case EventType::LOG:
246 return "Log";
247
248 case EventType::RESET:
249 return "Reset";
250
251 case EventType::CONFIG_CHANGE:
252 return "Config Change";
253
254 case EventType::COMMAND:
255 return "Command";
256
257 case EventType::COMMAND_RESPONSE:
258 return "Command Response";
259 }
260 return "Unknown";
261 }
Public Static Attributes
MESSAGE_TYPE
MESSAGE_VERSION
| constexpr uint8_t point_one::fusion_engine::messages::EventNotificationMessage::MESSAGE_VERSION = 0 |
|
constexpr
static
|
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.