C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
rotary_encoder.h
Go to the documentation of this file.
1
11
12#pragma once
13
15
18
33{
34private:
36 uint dt_gpio;
38 control_event_processor_t event_processor;
39
40public:
50 RotaryEncoder(uint encoder_clk_gpio,
51 uint encoder_dt_gpio,
52 gpio_irq_callback_t call_back,
53 control_event_processor_t event_processor,
54 struct_ConfigSwitchButton clk_conf = {});
55
67 void interrupt_service_routine(uint32_t irq_event_mask);
68
77};
78
79
~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:43
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
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
SwitchButtonWithIRQ(uint gpio, gpio_irq_callback_t call_back, struct_ConfigSwitchButton conf={}, uint32_t event_mask_config=GPIO_IRQ_EDGE_FALL|GPIO_IRQ_EDGE_RISE)
Construct a new SwitchButtonWithIRQ object.
Definition switch_button.cpp:97
void(* control_event_processor_t)(UIControlEvent event)
this is a function pointer used as rotary encoder constructor paramater
Definition rotary_encoder.h:17
These are the values used to configure a switch button (0) debounce_delay_us (1) long_release_delay_u...
Definition switch_button.h:63
UIControlEvent
The list of predefined events that a button, or more generally an User Interface Controller,...
Definition ui_control_event.h:18