42 HW_INFRARED_EVENT_TIMEOUT = (1 << 0),
43 HW_INFRARED_EVENT_MARK = (1 << 1),
44 HW_INFRARED_EVENT_SPACE = (1 << 2)
void hw_infrared_rx_finalize(hw_infrared_rx_t *rx)
Finalize and release an Infrared receiver.
bool hw_infrared_rx_valid(hw_infrared_rx_t *rx)
Check if an Infrared receiver is valid.
hw_infrared_event_t
Infrared events.
void * ctx
Context data for the receiver.
hw_infrared_rx_t hw_infrared_rx_init(uint8_t gpio, hw_infrared_rx_callback_t callback, void *user_data)
Initialize a Infrared receiver.
struct hw_infrared_rx_t hw_infrared_rx_t
Infrared receiver.
void(* hw_infrared_rx_callback_t)(hw_infrared_event_t event, uint32_t duration_us, void *user_data)
Infrared receiver.