#include "../capnp_wrapper.h"
#include "header.capnp.h"
#include "voyant_version_wrapper.hpp"
#include <cstdint>
#include <string>
Go to the source code of this file.
◆ DeviceClass
Device class types for Voyant hardware.
Enumerator |
---|
Unknown | Unknown device class (default)
|
Mdl | MeadowLark device class.
|
Ldk | Lark Dev Kit (legacy) device class.
|
◆ deviceClassFromDeviceId()
DeviceClass deviceClassFromDeviceId |
( |
const std::string & |
device_id | ) |
|
Extract device class from device ID string.
- Parameters
-
device_id | Device ID string in format "CLASS-NUMBER" (e.g., "MDL-012", "LDK-001") |
- Returns
- DeviceClass enum value, or DeviceClass::Unknown if parsing fails
◆ deviceNumberFromDeviceId()
uint16_t deviceNumberFromDeviceId |
( |
const std::string & |
device_id | ) |
|
Extract device number from device ID string.
- Parameters
-
device_id | Device ID string in format "CLASS-NUMBER" (e.g., "MDL-012", "LDK-001") |
- Returns
- Device number as uint16_t, or 0 if parsing fails