PS_Fgen_FW  4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
Loading...
Searching...
No Matches
UserInputHandlerClass Class Reference

Class used to enqueue and process user inputs. More...

#include <UserInputHandler.h>

Public Member Functions

void EnqueueKeyInput (Keys_t userKeyInput)
 Enqueue the given key into the circular buffer for later processing.
 
void EnqueueUsartInput (uint8_t userDataInput)
 Enqueue the given Usart character into the circular buffer for later processing.
 
void EnqueueOnOffButtonInput (OnOffButtons_t userButtonInput)
 Enqueue the given on/off button into the circular buffer for later processing.
 
void EnqueueTouchInput (uint16_t touchX, uint16_t touchY, TouchTypes touchType)
 Enqueue the given touch input into the circular buffer for later processing.
 
void ProcessInputs ()
 Process all user inputs in the circular buffer until it is empty.
 

Private Attributes

CircularBuffer< UserInputData, USERINPUT_QUEUE_LENGTH_userInputRingBuffer
 Circular buffer holding all user inputs.
 

Detailed Description

Class used to enqueue and process user inputs.

Member Function Documentation

◆ EnqueueKeyInput()

void UserInputHandlerClass::EnqueueKeyInput ( Keys_t userKeyInput)
inline

Enqueue the given key into the circular buffer for later processing.

The key is only enqueued and no further actions are taken.

Parameters
userKeyInputKey that should be enqueued.

◆ EnqueueOnOffButtonInput()

void UserInputHandlerClass::EnqueueOnOffButtonInput ( OnOffButtons_t userButtonInput)
inline

Enqueue the given on/off button into the circular buffer for later processing.

The button is only enqueued and no further actions are taken.

Parameters
userButtonInputButton that should be enqueued.

◆ EnqueueTouchInput()

void UserInputHandlerClass::EnqueueTouchInput ( uint16_t touchX,
uint16_t touchY,
TouchTypes touchType )
inline

Enqueue the given touch input into the circular buffer for later processing.

The touch input is only enqueued and no further actions are taken.

Parameters
touchXX touch position that should be enqueued.
touchYY touch position that should be enqueued.
touchTypeTouch type that should be enqueued.

◆ EnqueueUsartInput()

void UserInputHandlerClass::EnqueueUsartInput ( uint8_t userDataInput)
inline

Enqueue the given Usart character into the circular buffer for later processing.

The character is only enqueued and no further actions are taken.

Parameters
userDataInputUsart character that should be enqueued.

◆ ProcessInputs()

void UserInputHandlerClass::ProcessInputs ( )

Process all user inputs in the circular buffer until it is empty.

Keys are send to the ScreenManager, Usart characters to the SCPI parser.


The documentation for this class was generated from the following files: