|
| | DataClass () |
| |
| | ~DataClass () |
| |
| bool | GetConfigIDFromHardwareConfig (QFile &hardwareConfigFile, int configID) |
| | GetConfigIDFromHardwareConfig - method returns config ID from project config which should currently used. More...
|
| |
| void | AddPinStateAction (const unsigned pinNumber, const PinState pinState, const DigitalInputPinAction action, const bool invertPinState=false, QString additionalData="") |
| | AddPinStateAction - metod attaches action that will be called if pinNumber will change to pinState. More...
|
| |
| void | AddPinAction (const unsigned pinNumber, const DigitalInputPinAction action, const bool invertPinState=false, QString additionalData="") |
| | AddPinAction - metod attaches action that will be called if pinNumber will change (in both pin states) More...
|
| |
| bool | IsPinStateInverted (const unsigned pinNumber, const PinState pinState) |
| | IsPinStateInverted - metod checks if pin with specific number and specific state has inverted logic. More...
|
| |
| DigitalInputPinBusinessLogic::DataClass::DataClass |
( |
| ) |
|
|
inline |
| DigitalInputPinBusinessLogic::DataClass::~DataClass |
( |
| ) |
|
|
inline |
| void DigitalInputPinBusinessLogic::DataClass::AddPinAction |
( |
const unsigned |
pinNumber, |
|
|
const DigitalInputPinAction |
action, |
|
|
const bool |
invertPinState = false, |
|
|
QString |
additionalData = "" |
|
) |
| |
AddPinAction - metod attaches action that will be called if pinNumber will change (in both pin states)
- Parameters
-
| pinNumber | - pin number from connboard |
| action | - action that handles pin change |
| invertPinState | - if pin number has inveted logic, action will be called with inverted pin state |
| additionalData | - additional data for pin number |
| void DigitalInputPinBusinessLogic::DataClass::AddPinStateAction |
( |
const unsigned |
pinNumber, |
|
|
const PinState |
pinState, |
|
|
const DigitalInputPinAction |
action, |
|
|
const bool |
invertPinState = false, |
|
|
QString |
additionalData = "" |
|
) |
| |
AddPinStateAction - metod attaches action that will be called if pinNumber will change to pinState.
- Parameters
-
| pinNumber | - pin number from connboard |
| pinState | - pin signal state from connboard |
| action | - action that handles pin change |
| invertPinState | - if pin number & pin state has inverted logic, action will be called with inverted pin state |
| additionalData | - additional data for pin number |
| bool DigitalInputPinBusinessLogic::DataClass::GetConfigIDFromHardwareConfig |
( |
QFile & |
hardwareConfigFile, |
|
|
int |
configID |
|
) |
| |
GetConfigIDFromHardwareConfig - method returns config ID from project config which should currently used.
- Parameters
-
| hardwareConfigFile | - hwConfig.xml |
| configID | - this config ID from projectConfig.xml will be used |
- Returns
- true on success, false otherwise
| bool DigitalInputPinBusinessLogic::DataClass::IsPinStateInverted |
( |
const unsigned |
pinNumber, |
|
|
const PinState |
pinState |
|
) |
| |
IsPinStateInverted - metod checks if pin with specific number and specific state has inverted logic.
- Parameters
-
| pinNumber | - pin number from connboard |
| pinState | - action that handles pin change |
- Returns
- true - pin has inverted logic, false - pin doesn't have inverted logic
| QMap<unsigned, QString> DigitalInputPinBusinessLogic::DataClass::mPinAdditionalData |
| PinsActions DigitalInputPinBusinessLogic::DataClass::mPinStateActions |
The documentation for this class was generated from the following file: