Go to the documentation of this file.
32 #include <libphidget22/phidget22.h>
40 std::function<
void(
const char *, uint32_t,
int)> code_handler)
41 : code_handler_(code_handler)
44 PhidgetReturnCode ret = PhidgetIR_create(&
ir_handle_);
45 if (ret != EPHIDGET_OK)
51 serial_number, 0,
false, 0);
59 PhidgetHandle handle =
reinterpret_cast<PhidgetHandle
>(
ir_handle_);
69 uint32_t bit_count,
int is_repeat)
71 ((
IR *)ctx)->codeHandler(code, bit_count, is_repeat);
IR(int32_t serial_number, std::function< void(const char *, uint32_t, int)> code_handler)
std::function< void(const char *, uint32_t, int)> code_handler_
PhidgetIRHandle ir_handle_
void openWaitForAttachment(PhidgetHandle handle, int32_t serial_number, int hub_port, bool is_hub_port_device, int channel)
void closeAndDelete(PhidgetHandle *handle) noexcept
static void CodeHandler(PhidgetIRHandle ir, void *ctx, const char *code, uint32_t bit_count, int is_repeat)
void codeHandler(const char *code, uint32_t bit_count, int is_repeat) const
phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Sun May 11 2025 02:20:27