22 #define ODB_NO_BASE_VERSION 32 #pragma db model version(1, 1, open) 45 #pragma db object callback(validation_callback) table("HARDWARE_RFIDReader_Wiegand") 49 :
mode(
"SIMPLE_WIEGAND")
58 template <
typename DevicePtrT>
107 "WIEGAND_PIN_BUFFERED",
108 "WIEGAND_CARD_PIN_4BITS",
109 "WIEGAND_CARD_PIN_8BITS",
110 "WIEGAND_CARD_PIN_BUFFERED",
127 const std::vector<WiegandReaderConfigPtr> &readers()
const;
void validation_callback(odb::callback_event, odb::database &) const
ODB callback wrt database operation.
An instance of this class represents the configuration of one Wiegand reader.
std::shared_ptr< GPIO > GPIOPtr
This is the header file for a generated source file, GitSHA1.cpp.
std::shared_ptr< WiegandReaderConfig > WiegandReaderConfigPtr
std::chrono::milliseconds pin_timeout
std::string device_name(const DevicePtrT &dev) const
Returns the name of a device, or the empty string.
Abstraction of a RFID Reader device.
std::string green_led_name() const
std::shared_ptr< LED > LEDPtr
std::string buzzer_name() const
Hardware::GPIOPtr gpio_high_
Hardware::GPIOPtr gpio_low_
std::vector< WiegandReaderConfigPtr > readers_
Transient configuration object that stores the list of reader use/configure.
static constexpr std::array< const char *const, 8 > valid_operation_modes
List of valid operation mode for a reader.
std::shared_ptr< Buzzer > BuzzerPtr
Hardware::LEDPtr green_led_
std::string gpio_low_name() const
Hardware::BuzzerPtr buzzer_
std::string gpio_high_name() const