#include <manual_interaction.h>
|
static void | s_IntrAddToButtonDequeUp () |
| Hardware Interrrupt for up [red colored] button check for valid interrupt by software debouncing,switch state cheking and adds it to the button deque up. More...
|
|
static void | s_IntrAddToButtonDequeDown () |
| Hardware Interrrupt for down [black colored] button check for valid interrupt by software debouncing,switch state cheking and adds it to the button deque down. More...
|
|
◆ ManualInteraction()
ManualInteraction::ManualInteraction |
( |
int |
freq_to_run_deque_analyser, |
|
|
std::shared_ptr< Logging > & |
logging |
|
) |
| |
◆ ~ManualInteraction()
ManualInteraction::~ManualInteraction |
( |
| ) |
|
◆ ButtonstateDequeAnalyser()
void ManualInteraction::ButtonstateDequeAnalyser |
( |
| ) |
|
|
private |
thread function to check the deque status and identify the manual interaction mode Function will check state and time of occurance for objects in deque for determining mode
◆ GetManualActionAndTime()
Get the Manual Action And Time object.
- Returns
- std::tuple<CONFIG_SET::MANUAL_PUSH, CONFIG_SET::time_var>
◆ s_IntrAddToButtonDequeDown()
void ManualInteraction::s_IntrAddToButtonDequeDown |
( |
| ) |
|
|
static |
Hardware Interrrupt for down [black colored] button check for valid interrupt by software debouncing,switch state cheking and adds it to the button deque down.
◆ s_IntrAddToButtonDequeUp()
void ManualInteraction::s_IntrAddToButtonDequeUp |
( |
| ) |
|
|
static |
Hardware Interrrupt for up [red colored] button check for valid interrupt by software debouncing,switch state cheking and adds it to the button deque up.
◆ SetCurrentButtonState()
Set the CurrentButtonState object Function to sets the current buttonstate [0 ->NO_PUSH, 1->LONGPRESS, 2->DOUBLETAP].
- Parameters
-
[in] | button_press_deque_ | deque to analyse and set button_state |
[out] | button_state | refrence to button_state passed |
[out] | time | refrence to time variable for change of button_state |
◆ SetManualActionAndTime()
Set the Manual Action And Time object sets manual_action_ and manual_action_time_.
- Parameters
-
[in] | button_1_state | current button state 1 [red] |
[in] | button_2_state | current button state 2 [black] |
[in] | time_button_1 | time the current button state 1 was set |
[in] | time_button_2 | time the current button state 2 was set |
◆ StartButtonDequeAnalyserFn()
void ManualInteraction::StartButtonDequeAnalyserFn |
( |
| ) |
|
start button deque analyser function thread start button deque analyser function thread
◆ StopButtonDequeAnalyserFn()
void ManualInteraction::StopButtonDequeAnalyserFn |
( |
| ) |
|
Stop button deque analyser function set_button_deque_analyser varible to ture so it stops the threaded function.
◆ delay_to_run_deque_analyser_
int ManualInteraction::delay_to_run_deque_analyser_ |
|
private |
◆ deque_analyser_
std::unique_ptr<std::thread> ManualInteraction::deque_analyser_ {nullptr} |
|
private |
◆ freq_to_run_deque_analyser_
const int ManualInteraction::freq_to_run_deque_analyser_ |
|
private |
◆ logger_
std::shared_ptr<Logging> ManualInteraction::logger_ {nullptr} |
|
private |
◆ manual_action_
◆ manual_action_time_
◆ s_button_state_deque_down_
◆ s_button_state_deque_up_
◆ s_class_setup_flag_
bool ManualInteraction::s_class_setup_flag_ = false |
|
staticprivate |
◆ s_deque_mutex_
std::mutex ManualInteraction::s_deque_mutex_ |
|
staticprivate |
◆ stop_button_deque_analyser_
bool ManualInteraction::stop_button_deque_analyser_ = true |
|
private |
The documentation for this class was generated from the following files: