C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
rtos_rotary_encoder.h
Go to the documentation of this file.
1
11
12#pragma once
13
15
18
33{
34private:
36 uint dt_gpio;
37 // /// @brief the function pointer that will processes the event such as PUSH, RELEASE, INCREMENT, DECREMENT etc.
38 // control_event_processor_t event_processor;
39
40public:
41
50 rtosRotaryEncoder(uint encoder_clk_gpio,
51 uint encoder_dt_gpio,
52 gpio_irq_callback_t call_back, QueueHandle_t in_switch_button_queue, QueueHandle_t out_control_event_queue,
53 struct_rtosConfigSwitchButton conf = {}, uint32_t event_mask_config = GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE);
54
60
61 void rtos_process_IRQ_event() override;
62
63};
~rtosRotaryEncoder()
Destroy the Rotary Encoder object.
Definition rtos_rotary_encoder.cpp:20
rtosRotaryEncoder(uint encoder_clk_gpio, uint encoder_dt_gpio, gpio_irq_callback_t call_back, QueueHandle_t in_switch_button_queue, QueueHandle_t out_control_event_queue, struct_rtosConfigSwitchButton conf={}, uint32_t event_mask_config=GPIO_IRQ_EDGE_FALL|GPIO_IRQ_EDGE_RISE)
Construct a new Rotary Encoder object compliant with FreeRTOS.
Definition rtos_rotary_encoder.cpp:6
void rtos_process_IRQ_event() override
Process IRQ event and sent the resulting event to the event queue.
Definition rtos_rotary_encoder.cpp:24
rtosSwitchButton(uint gpio, gpio_irq_callback_t call_back, QueueHandle_t in_switch_button_queue, QueueHandle_t out_control_event_queue, struct_rtosConfigSwitchButton conf={}, uint32_t event_mask_config=GPIO_IRQ_EDGE_FALL|GPIO_IRQ_EDGE_RISE)
Construct a new rtos Switch Button object.
Definition rtos_switch_button.cpp:5
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 delays related to action of the button (and ge...
Definition rtos_switch_button.h:91
UIControlEvent
The list of predefined events that a button, or more generally an User Interface Controller,...
Definition ui_control_event.h:18