15#include "sensorring/platform/SensorringExport.hpp"
SENSORRING_EXPORT bool deviceMatchesExpected(DeviceType actual, DeviceType expected) noexcept
Returns true if actual matches expected exactly, or if expected is a category wildcard and actual bel...
DeviceType
Supported device hardware types used for device registration and grouping.
Definition DeviceType.hpp:27
@ AnyDepth
Category wildcard: matches any depth sensor (VL53L8CX, TMF8829, ...).
Definition DeviceType.hpp:41
@ HTPA32
Thermal sensor (HTPA32).
Definition DeviceType.hpp:33
@ WS2812b
LED strip (WS2812b).
Definition DeviceType.hpp:35
@ AnyThermal
Category wildcard: matches any thermal sensor (HTPA32, ...).
Definition DeviceType.hpp:43
@ SensorBoard
Base board (for reset, firmware revision, etc.).
Definition DeviceType.hpp:29
@ AnyLight
Category wildcard: matches any light device (WS2812b, ...).
Definition DeviceType.hpp:45
@ VL53L8CX
Time-of-flight sensor (VL53L8CX).
Definition DeviceType.hpp:31
@ TMF8829
Time-of-flight sensor (TMF8829).
Definition DeviceType.hpp:37
SENSORRING_EXPORT bool isCategory(DeviceType type) noexcept
Returns true if type is a category wildcard (AnyDepth, AnyThermal, AnyLight).
SENSORRING_EXPORT std::ostream & operator<<(std::ostream &os, ResolutionMode mode) noexcept
Output stream operator for the ResolutionMode enum class members.
SENSORRING_EXPORT std::string toString(ResolutionMode mode) noexcept
Function to convert the ResolutionMode enum class members to string.