|
APCIE-3660 API
1719
|
Functions | |
| int | i_APCIE3660_Read4DigitalInputs (uint8_t boardId, uint8_t *portValues) |
| int | i_APCIE3660_Read1DigitalInput (uint8_t boardId, uint8_t input, uint8_t *inputValue) |
| int | i_APCIE3660_SetDigitalOutputMemoryOn (uint8_t boardId) |
| int | i_APCIE3660_SetDigitalOutputMemoryOff (uint8_t boardId) |
| int | i_APCIE3660_Set4DigitalOutputsOn (uint8_t boardId, uint8_t mask) |
| int | i_APCIE3660_Set4DigitalOutputsOff (uint8_t boardId, uint8_t mask) |
| int | i_APCIE3660_Set1DigitalOutputOn (uint8_t boardId, uint8_t outputChannel) |
| int | i_APCIE3660_Set1DigitalOutputOff (uint8_t boardId, uint8_t outputChannel) |
| int i_APCIE3660_Read4DigitalInputs | ( | uint8_t | boardId, |
| uint8_t * | portValues | ||
| ) |
Read 4 digital inputs of the board
| [in] | boardId | Target board index |
| [out] | portValues | Status of the digital inputs |
| 0 | No error |
| -1 | The boardId is wrong |
| -14 | An error occurred while calling the IOCTL function |
| int i_APCIE3660_Read1DigitalInput | ( | uint8_t | boardId, |
| uint8_t | input, | ||
| uint8_t * | inputValue | ||
| ) |
Read 1 digital input of the board
| [in] | boardId | Target board index |
| [in] | input | Digital input (0 to 7) |
| [out] | inputValue | Status of the digital input |
| 0 | No error |
| -1 | The boardId is wrong |
| -2 | The input is wrong |
| -14 | An error occurred while calling the IOCTL function |
| int i_APCIE3660_SetDigitalOutputMemoryOn | ( | uint8_t | boardId | ) |
Enables the digital output memory When digital output memory is enabled, the active channels stay active until a SetDigitalOutputOff function is called. When digital output memory is disabled, the active channels are reset at each call of a SetDigitalOutputOn function. SetXDigitalOutputOff functions return an error.
| [in] | boardId | Target board index |
| 0 | No error |
| -1 | The boardId is wrong |
| -14 | An error occurred while calling the IOCTL function |
| int i_APCIE3660_SetDigitalOutputMemoryOff | ( | uint8_t | boardId | ) |
Disables the digital output memory When digital output memory is enabled, the active channels stay active until a SetDigitalOutputOff function is called. When digital output memory is disabled, the active channels are reset at each call of a SetDigitalOutputOn function. SetXDigitalOutputOff functions return an error.
| [in] | boardId | Target board index |
| 0 | No error |
| -1 | The boardId is wrong |
| -14 | An error occurred while calling the IOCTL function |
| int i_APCIE3660_Set4DigitalOutputsOn | ( | uint8_t | boardId, |
| uint8_t | mask | ||
| ) |
Permits to set digital outputs of the board
| [in] | boardId | Target board index |
| [in] | mask | Digital output port to set (0 to 15) |
| 0 | No error |
| -1 | The boardId is wrong |
| -2 | The mask value is wrong |
| -14 | An error occurred while calling the IOCTL function |
| int i_APCIE3660_Set4DigitalOutputsOff | ( | uint8_t | boardId, |
| uint8_t | mask | ||
| ) |
Permits to reset digital Outputs of the board
| [in] | boardId | Target board index |
| [in] | mask | Digital output port to reset (0 to 15) |
| 0 | No error |
| -1 | The boardId is wrong |
| -2 | The mask value is wrong |
| -3 | Digital output memory not set - Cannot set outputs to 0 |
| -14 | An error occurred while calling the IOCTL function |
| int i_APCIE3660_Set1DigitalOutputOn | ( | uint8_t | boardId, |
| uint8_t | outputChannel | ||
| ) |
Sets 1 digital output to HIGH
| [in] | boardId | Target board index |
| [in] | outputChannel | Digital output to set (0 to 3) |
| 0 | No error |
| -1 | The boardId is wrong |
| -2 | The outputChannel is wrong |
| -14 | An error occurred while calling the IOCTL function |
| int i_APCIE3660_Set1DigitalOutputOff | ( | uint8_t | boardId, |
| uint8_t | outputChannel | ||
| ) |
Sets 1 digital output to LOW
| [in] | boardId | Target board index |
| [in] | outputChannel | Digital output to reset (0 to 3) |
| 0 | No error |
| -1 | The boardId is wrong |
| -2 | The outputChannel is wrong |
| -3 | Digital output memory not set - Cannot set outputs to 0 |
| -14 | An error occurred while calling the IOCTL function |