|
Defines |
| #define | SWITCH_INPUT_COUNT 12 |
Typedefs |
| typedef _bsSwitchInputDevice_specificsStruct * | bsSwitchInputDevice_specifics_t |
Enumerations |
| enum | bsSwitchInputDevice_portEnum |
| enum | bsSwitchInputDevice_rotaryEnum |
Functions |
| DECLSPEC bsSwitchInputDevice_specifics_t | bsSwitchInputDevice_getDeviceSpecifics (bsDeviceTable_deviceInfo_t deviceInstancePtr) |
| DECLSPEC uint8_t | bsSwitchInputDevice_requestGetInputs (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint8_t | bsSwitchInputDevice_getRequestGetInputsDone (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint32_t | bsSwitchInputDevice_getSampleCount (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint8_t | bsSwitchInputDevice_getLastSampledInput (bsSwitchInputDevice_specifics_t switchIn, bsSwitchInputDevice_portEnum port) |
| DECLSPEC uint16_t | bsSwitchInputDevice_getLastSampledInputs (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC int32_t | bsSwitchInputDevice_getLastSampledRotary (bsSwitchInputDevice_specifics_t switchIn, bsSwitchInputDevice_rotaryEnum rport) |
| DECLSPEC uint32_t | bsSwitchInputDevice_getLastSampledCounter (bsSwitchInputDevice_specifics_t switchIn, bsSwitchInputDevice_portEnum port) |
| DECLSPEC uint8_t | bsSwitchInputDevice_getRequestSetConfigDone (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint8_t | bsSwitchInputDevice_getRequestGetConfigDone (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint8_t | bsSwitchInputDevice_configPending (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint8_t | bsSwitchInputDevice_usesBooleans (bsSwitchInputDevice_specifics_t switchIn, uint8_t side) |
| DECLSPEC uint8_t | bsSwitchInputDevice_requestNeedsBooleans (bsSwitchInputDevice_specifics_t switchIn, uint8_t side, uint8_t needs) |
| DECLSPEC uint8_t | bsSwitchInputDevice_usesRotary (bsSwitchInputDevice_specifics_t switchIn, bsSwitchInputDevice_rotaryEnum rport) |
| DECLSPEC uint8_t | bsSwitchInputDevice_requestNeedsRotary (bsSwitchInputDevice_specifics_t switchIn, bsSwitchInputDevice_rotaryEnum rport, uint8_t needs) |
| DECLSPEC uint8_t | bsSwitchInputDevice_usesCounter (bsSwitchInputDevice_specifics_t switchIn, bsSwitchInputDevice_portEnum port) |
| DECLSPEC uint8_t | bsSwitchInputDevice_requestNeedsCounter (bsSwitchInputDevice_specifics_t switchIn, bsSwitchInputDevice_portEnum port, uint8_t needs) |
| DECLSPEC uint8_t | bsSwitchInputDevice_requestSetConfiguration (bsSwitchInputDevice_specifics_t switchIn, uint8_t booleansMask, uint16_t rotaryMask, uint16_t counterMask) |
| uint8_t | bsSwitchInputDevice_requestGetConfiguration (bsSwitchInputDevice_specifics_t switchIn) |
| void | bsSwitchInputDevice_reset (bsSwitchInputDevice_specifics_t switchIn) |
| void | bsSwitchInputDevice_setTimeOutUs (bsSwitchInputDevice_specifics_t switchIn, uint32_t timeOutUs) |
| DECLSPEC uint32_t | bsSwitchInputDevice_getTimeOutUs (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint16_t | bsSwitchInputDevice_getChangedInputsMask (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint16_t | bsSwitchInputDevice_getChangedRotariesMask (bsSwitchInputDevice_specifics_t switchIn) |
| DECLSPEC uint16_t | bsSwitchInputDevice_getChangedCountersMask (bsSwitchInputDevice_specifics_t switchIn) |
The BM7001 allows you to measure the state of 12 different switches. Besides 12 normal switch the device has been programmed with special software to support automatic measurement of up to six rotary encoders. This means that you don't have to write complicated code anymore. The device simply outputs a number which determines the state of the rotary encoder. Each input can have a configured counter which counts the number of switch state changes. Because these features have been implemented in the device itself you can be sure that your software won't miss any information.