Inheritance diagram for BlueSense::SwitchInputDevice:

Public Types | |
| enum | RotaryEnum |
| enum | PortEnum |
Public Member Functions | |
| SwitchInputDevice (Master master, ushort deviceId) | |
| bool | getLastSampledInput (PortEnum port) |
| ushort | getLastSampledInputs () |
| uint | getLastSampledCounter (PortEnum port) |
| int | getLastSampledRotary (RotaryEnum rport) |
| uint | getSampleCount () |
| bool | getRequestGetInputsDone () |
| void | requestGetInputs () |
| void | requestNeedsBooleans (byte side, bool needs) |
| void | requestNeedsCounter (PortEnum port, bool needs) |
| void | requestNeedsRotary (RotaryEnum rport, bool needs) |
| bool | usesBooleans (byte side) |
| bool | usesCounter (PortEnum port) |
| bool | usesRotary (RotaryEnum rport) |
| bool | configPending () |
| bool | getRequestGetConfigDone () |
| bool | getRequestSetConfigDone () |
| void | requestGetConfiguration () |
| void | requestSetConfiguration (int boolsMask, int rotaryMask, int counterMask) |
| uint | getTimeOutUs () |
| void | setTimeOutUs (uint timeOutUs) |
|
|
Enum describing the switch inputs pA_5 is a switch connected to side A pin 5 |
|
|
Enum describing the rotary port values rA_1_2 is a rotary connected to side A, ports 1 and 2 |
|
||||||||||||
|
Creates a 'software' switchInput device with a given id. The device will inacessible until a physical device with the same id is detected.
|
|
|
Checks if a configuration is being currently being set or being retrieved
|
|
|
returns the last received counter value
|
|
|
returns the last taken bit sample on a specific port
|
|
|
returns the last taken multiplexed bit sample. A multiplexed sample is built as: port[0]+port[1]*2+port[2]*4+port[3]*8+...+port[11]*2048
|
|
|
returns the last received rotary value
|
|
|
Checks if the configuration request is finished
|
|
|
Checks if an 'input values' request is finished
|
|
|
Checks if the configuration set request is finished
|
|
|
returns the total number of samples taken since the start of the application
|
|
|
Returns the current set time out delay. The time out delay is used to check if a request was acknowledged in the set time. If an answer to a request is not received within the set time, the request is resent.
|
|
|
Request to obtain the configuration settings from a adcInput Device. |
|
|
Send a request to obtain the values of the switch inputs |
|
||||||||||||
|
Sends a request: request that the device should not/should send bool states
|
|
||||||||||||
|
Sends a request: request that the device should not/should send counter states
|
|
||||||||||||
|
Sends a request: request that the device should not/should send rotary encoder states
|
|
||||||||||||||||
|
Request the switchInput device to set the input types
|
|
|
Sets the time out value which is used to check if a request was acknowledged in the set time. If an answer to a request is not received within the set time, the request is resent.
|
|
|
Find out if we receive the bool states of hardware side A or B.
|
|
|
Find out if we receive counter states.
|
|
|
Find out if we receive rotary states.
|
1.4.4