livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
Loading...
Searching...
No Matches
livox::mid360::Event Struct Reference

One notification. kind selects which fields are meaningful; the rest are default. More...

#include <livox/mid360/event.hpp>

Public Types

enum class  Kind : std::uint8_t {
  kStateChanged , kHms , kDiagChanged , kDisconnected ,
  kReconnected , kStats , kFirmwareLogGap
}
 What happened; selects the meaningful fields. More...

Public Attributes

Kind kind = Kind::kStats
 which notification this is
std::uint64_t time_ns = 0
 host time of the observation
DisconnectReason reason = DisconnectReason::kNone
 kDisconnected / kReconnected
std::uint32_t attempts = 0
 kReconnected: attempts including the successful one
WorkState old_state = WorkState::kIdle
 kStateChanged
WorkState new_state = WorkState::kIdle
 kStateChanged
std::array< HmsCode, 8 > hms {}
 kHms: key 0x8011 slots, inactive ones raw == 0
HmsLevel hms_level = HmsLevel::kNone
 kHms: highest level among the active slots
DiagStatus diag_old
 kDiagChanged (all normal before the first push)
DiagStatus diag_new
 kDiagChanged
DeviceStats stats
 kStats
std::uint8_t log_file_index = 0
 kFirmwareLogGap
std::uint32_t log_expected = 0
 kFirmwareLogGap: trans_index expected
std::uint32_t log_actual = 0
 kFirmwareLogGap: trans_index received

Detailed Description

One notification. kind selects which fields are meaningful; the rest are default.

Member Enumeration Documentation

◆ Kind

enum class livox::mid360::Event::Kind : std::uint8_t
strong

What happened; selects the meaningful fields.

Enumerator
kStateChanged 

old_state -> new_state seen in a 0x0102 push

kHms 

the set of active hms codes changed; see hms_level

kDiagChanged 

key 0x800E changed: diag_old -> diag_new (#55)

kDisconnected 

see reason (#8); commands fail with kDisconnected until kReconnected

kReconnected 

session, host setup and sampling re-established after attempts

kStats 

periodic stats snapshot (#6)

kFirmwareLogGap 

log trans_index jumped inside one file (#44); see log_*


The documentation for this struct was generated from the following file: