ecdev::DeviceIdentityMatch
Exact device identity a device class serves. More...
#include <identity_profile.hpp>
Public Functions
| Name | |
|---|---|
| bool | matches(const eni::SlaveConfig & slave) const |
Public Attributes
| Name | |
|---|---|
| std::uint32_t | vendor_id |
| std::uint32_t | revision_min 0 = no lower bound. |
| std::uint32_t | revision_max 0 = no upper bound (any revision). |
| std::uint32_t | product_code |
Detailed Description
struct ecdev::DeviceIdentityMatch;
Exact device identity a device class serves.
Matching is explicit: a slave matches only when its vendor_id and product_code are equal and (when bounded) its revision falls in the inclusive [revision_min, revision_max] window. A bound of 0 means "unbounded on that side", so the common {vendor, product} form matches every revision.
Public Functions Documentation
function matches
bool matches(
const eni::SlaveConfig & slave
) const
Public Attributes Documentation
variable vendor_id
std::uint32_t vendor_id {0};
variable revision_min
std::uint32_t revision_min {0};
0 = no lower bound.
variable revision_max
std::uint32_t revision_max {0};
0 = no upper bound (any revision).
variable product_code
std::uint32_t product_code {0};
Updated on 2026-07-13 at 20:44:41 +0000