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

Class that holds one user input made by keys (or encoder) or USART. More...

#include <UserInputHandler.h>

Public Member Functions

 UserInputData ()
 Empty Constructor.
 
 UserInputData (Keys_t key)
 Constructor for the UserInputData class.
 
 UserInputData (uint8_t usartChr)
 Constructor for the UserInputData class.
 
 UserInputData (OnOffButtons_t button)
 Constructor for the UserInputData class.
 
 UserInputData (uint16_t touchX, uint16_t touchY, TouchTypes touchType)
 Constructor for the UserInputData class.
 

Public Attributes

UserInputDataTypes_t DataType
 Type of the user input data.
 
Keys_t Key
 Key pressed by the user if the DataType is USERDATA_KEY.
 
uint8_t UsartChr
 Character received via Usart if the DataType is USERDATA_USART.
 
OnOffButtons_t OnOffButton
 on/off button pressed by the user if the DataType is USERDATA_ON_OFF_BUTTONS
 
uint16_t TouchX
 X touch position if the DataType is USERDATA_TOUCH.
 
uint16_t TouchY
 Y touch position if the DataType is USERDATA_TOUCH.
 
TouchTypes TouchType
 Touch type if the DataType is USERDATA_TOUCH.
 

Detailed Description

Class that holds one user input made by keys (or encoder) or USART.

Constructor & Destructor Documentation

◆ UserInputData() [1/4]

UserInputData::UserInputData ( Keys_t key)
inline

Constructor for the UserInputData class.

Use this constructor to initialize for a key.

Parameters
keyKey that should be stored with this class.

◆ UserInputData() [2/4]

UserInputData::UserInputData ( uint8_t usartChr)
inline

Constructor for the UserInputData class.

Use this constructor to initialize for a Usart character.

Parameters
usartChrCharacter that should be stored with this class.

◆ UserInputData() [3/4]

UserInputData::UserInputData ( OnOffButtons_t button)
inline

Constructor for the UserInputData class.

Use this constructor to initialize for a physical on/off button.

Parameters
buttonon/off button that should be stored with this class.

◆ UserInputData() [4/4]

UserInputData::UserInputData ( uint16_t touchX,
uint16_t touchY,
TouchTypes touchType )
inline

Constructor for the UserInputData class.

Use this constructor to initialize for a touch input.

Parameters
touchXX touch position that should be stored with this class.
touchYY touch position that should be stored with this class.
touchTypeTouch type that should be stored with this class.

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