CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API DIGIOHANDLE CCAUXDLL_CALLING_CONV | GetDigIO (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | DigIO_release (DIGIOHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | DigIO_getDigIO (DIGIOHANDLE, uint8_t *status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | DigIO_setDigIO (DIGIOHANDLE, uint8_t state) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | DigIO_getDigPowerOutput (DIGIOHANDLE, PowerOutput output, CCStatus *enabled, uint8_t *status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | DigIO_setDigPowerOutput (DIGIOHANDLE, PowerOutput output, CCStatus enabled) |
Functions in the DigIO class
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::DigIO_getDigIO | ( | DIGIOHANDLE | , |
uint8_t * | status | ||
) |
Get Digital inputs.
Supported Platform(s): XL, XM, XS, XA
status | Status of the four digital input pins. Bit0: Digital input 1. Bit1: Digital input 2. Bit2: Digital input 3. Bit3: Digital input 4. Bit 4..7 are always zero. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::DigIO_getDigPowerOutput | ( | DIGIOHANDLE | , |
PowerOutput | output, | ||
CCStatus * | enabled, | ||
uint8_t * | status | ||
) |
Get digital power output status.
Supported Platform(s): VS
output | Which output to read |
enabled | State of the power output signal. |
status | Error status of the power output signal. |
Error status: The error status byte can be used to detect certain error conditions. If the error status byte is set to 1, this indicates an error (0 is no error).
If the signal state is Enabled (high), the following error conditions gererates an error status: "Short circuit to GND" or "Over temperature". SS monitors the signal and turns it off immediately if an error is indicated when the signal has been set high. This means that "enabled" will be read as disabled and in this case the status may have any value - although in most cases it will be set to no error since the signal is now turned off.
If the signal is disabled (low), these error conditions generates an error status: "Short circuit to VDD" or "Off state open load".
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::DigIO_release | ( | DIGIOHANDLE | ) |
Delete the DigIO object.
Supported Platform(s): XL, XM, XS, XA
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::DigIO_setDigIO | ( | DIGIOHANDLE | , |
uint8_t | state | ||
) |
Set Digital outputs.
Supported Platform(s): XA, XS
state | State of the four digital output pins. Bit0: Digital output 1. Bit1: Digital output 2. Bit2: Digital output 3. Bit3: Digital output 4. Bit 4..7 not used. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::DigIO_setDigPowerOutput | ( | DIGIOHANDLE | , |
PowerOutput | output, | ||
CCStatus | enabled | ||
) |
Set Digital power outputs.
Supported Platform(s): VS
output | The output to set |
enabled | State of the power output signal. |
Outputs 1 and 2 can also be set to be turned on automatically at system startup using: Config_setDigPowerOutputStartupConfig.
Example Usage:
EXTERN_C CCAUXDLL_API DIGIOHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetDigIO | ( | void | ) |
Factory function that creates instances of the DigIO object.
Supported Platform(s): XL, XM, XS, XA
Example Usage: