livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
Loading...
Searching...
No Matches
hms.hpp File Reference

HMS (health management system) diagnostic code decoding for the Mid-360. More...

#include <cstdint>
#include <string_view>
#include "livox/mid360/export.hpp"

Go to the source code of this file.

Classes

struct  livox::mid360::HmsCode
 One decoded HMS code (one of the eight uint32 slots of key 0x8011). More...

Namespaces

namespace  livox
 Livox LiDAR drivers.
namespace  livox::mid360
 The livox_mid360_core library: everything declared by the public headers.

Enumerations

enum class  livox::mid360::HmsLevel : std::uint8_t {
  livox::mid360::kNone = 0 , kInfo = 1 , kWarning = 2 , kError = 3 ,
  kFatal = 4
}
 Abnormal level, byte 0 of an HMS code. More...

Functions

constexpr HmsCode livox::mid360::decode_hms (std::uint32_t raw) noexcept
 Splits a raw HMS code into its fields.
std::string_view livox::mid360::to_string (HmsLevel l) noexcept
 Name of the level, e.g. "warning".
std::string_view livox::mid360::hms_description (std::uint16_t abnormal_id) noexcept
 Human-readable description for an abnormal ID from the official table, or "" if unknown.
std::string_view livox::mid360::hms_suggestion (std::uint16_t abnormal_id) noexcept
 Suggested action from the official table, or "" if unknown.

Detailed Description

HMS (health management system) diagnostic code decoding for the Mid-360.

Reference: wiki "HMS Diagnostic Code Introduction" (key 0x8011 hms_code, uint32[8]).

byte[3:2] abnormal ID | byte[1] reserved | byte[0] abnormal level