52 gpio_irq_callback_t call_back,
~RotaryEncoder()
Destroy the Rotary Encoder object.
Definition rotary_encoder.cpp:24
void update_event_processor(control_event_processor_t event_processor)
This member is used to update the function pointer to the UIController.
Definition rotary_encoder.cpp:46
control_event_processor_t event_processor
the function pointer that will processes the event such as PUSH, RELEASE, INCREMENT,...
Definition rotary_encoder.h:38
RotaryEncoder(uint encoder_clk_gpio, uint encoder_dt_gpio, gpio_irq_callback_t call_back, control_event_processor_t event_processor, struct_ConfigSwitchButton clk_conf={})
Construct a new Rotary Encoder object.
Definition rotary_encoder.cpp:6
uint dt_gpio
the GPIO pin connected to the Data pin of the rotary encoder
Definition rotary_encoder.h:36
void interrupt_service_routine(uint32_t irq_event_mask)
the ISR that process the IRQ and send UIControlEvent to the Model currentControlledObject.
Definition rotary_encoder.cpp:28
void(* control_event_processor_t)(struct_ControlEventData event)
this is a function pointer used as rotary encoder constructor paramater
Definition rotary_encoder.h:17
this is the structure used to transmit control event through a RTOS queue
Definition ui_control_event.h:46