Skip to content

Device Registry

Yağızhan Dinçkurt edited this page Oct 30, 2025 · 3 revisions

Device Registry Device registry system stores every device's information inside a global registry for system to see it. Its an automated registry system. Only thing you need to do is implement the registry macro. To implement the macro you can write anywhere in your device's cpp file:

REGISTER_DEVICE(class, "Name");

Registration process is automatic but you need to do one more step. Every device registry holds a device information struct

struct DeviceInfo { string deviceName; string serialNumber; string model; string firmwareVersion; }

thus in order the system to work you need to set this struct inside your device class with

static inline const DeviceRegistry::RegistryEntry::DeviceInfo deviceInfo = {"Device Name", "Serial Number", "Model", "FWV"};

Thats all you need to know about registry. RadCat uses its registry to decide what to do and when to activate its devices.

Clone this wiki locally