CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API CFGINHANDLE CCAUXDLL_CALLING_CONV | GetCfgIn (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | CfgIn_release (CFGINHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_setCfgInMode (CFGINHANDLE, uint8_t channel, CfgInModeEnum set_mode) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_getCfgInMode (CFGINHANDLE, uint8_t channel, CfgInModeEnum *get_mode) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_getValue (CFGINHANDLE, uint8_t channel, uint16_t *sample_value) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_getPwmValue (CFGINHANDLE, uint8_t channel, float32_t *frequency, uint16_t *duty_cycle) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_getFrequencyValue (CFGINHANDLE, uint8_t channel, float32_t *frequency) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_getMinFrequencyThreshold (CFGINHANDLE, uint8_t channel, float32_t *frequency) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_setMinFrequencyThreshold (CFGINHANDLE, uint8_t channel, float32_t frequency) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_setFrequencyFilterLevel (CFGINHANDLE, uint8_t level) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_getActiveIomcu (CFGINHANDLE, uint8_t *ioindex) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CfgIn_setActiveIomcu (CFGINHANDLE, uint8_t ioindex) |
Functions in the CfgIn class
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_getActiveIomcu | ( | CFGINHANDLE | , |
uint8_t * | ioindex | ||
) |
Get active io mcu
Supported Platform(s): Yukon, V510, V710
ioindex | Io mcu number, valid values are 1-4. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_getCfgInMode | ( | CFGINHANDLE | , |
uint8_t | channel, | ||
CfgInModeEnum * | get_mode | ||
) |
Get current input mode
Supported Platform(s): Yukon, V510, V710
channel | Channel to get. Numbering starts from 1. |
get_mode | The current input mode |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_getFrequencyValue | ( | CFGINHANDLE | , |
uint8_t | channel, | ||
float32_t * | frequency | ||
) |
Read the sampled frequency value from configurable input in frequency mode
Supported Platform(s): Yukon, V510, V710
channel | Channel to get. Numbering starts from 1. |
frequency | Read signal frequency in Hz (0 - 50000.0Hz) |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_getMinFrequencyThreshold | ( | CFGINHANDLE | , |
uint8_t | channel, | ||
float32_t * | frequency | ||
) |
Read the configured minimum frequency threshold for input in frequency measurement mode (CFGIN_FREQ_PD_5V, CFGIN_FREQ_F_5V, CFGIN_FREQ_PU_5V). The frequency threshold is set to 1Hz at device start-up. Use the frequency threshold to set up how low frequencies the unit are able to measure, if frequency is below this value a frequency of 0 is reported. This value will affect how long it will take to detect that the signal frequency has gone to 0.
Supported Platform(s): Yukon, V510, V710
channel | Channel to get. Numbering starts from 1. |
frequency | Minimum frequency threshold (1.0 - 15000Hz) for Yukon, V510, V710. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_getPwmValue | ( | CFGINHANDLE | , |
uint8_t | channel, | ||
float32_t * | frequency, | ||
uint16_t * | duty_cycle | ||
) |
Read the sampled value from configurable input in frequency or duty-cycle measurement mode
Yukon, V510, V710: CFGIN_FREQ_PD_5V CFGIN_FREQ_F_5V CFGIN_FREQ_PU_5V CFGIN_DC_PD_5V CFGIN_DC_F_5V CFGIN_DC_PU_5V
Supported Platform(s): Yukon, V510, V710
channel | Channel to get. Numbering starts from 1. |
frequency | Read signal frequency (0.0 - 50000.0 Hz) |
duty_cycle | Read signal duty cycle (0-4095) which corresponds to 0-100%. Valid only in duty cycle-mode. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_getValue | ( | CFGINHANDLE | , |
uint8_t | channel, | ||
uint16_t * | sample_value | ||
) |
Read the sampled value from configurable input, when in modes other than frequency and duty-cycle mode
For Yukon, V510, V710 platform: CFGIN_VOLTAGE_5V - sample_value in mV, CFGIN_RESISTANCE - sample_value in 0.1 Ohm/bit, CFGIN_CURRENT_4_20 - sample_value in µA, CFGIN_VOLTAGE_32V - sample_value in mV, CFGIN_DIGITAL_PD_5V - sample_value is 0-1 CFGIN_DIGITAL_F_5V - sample_value is 0-1 CFGIN_DIGITAL_PU_5V - sample_value is 0-1
Supported Platform(s): Yukon, V510, V710
channel | Channel to get. Numbering starts from 1. |
sample_value | Current sample value. |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::CfgIn_release | ( | CFGINHANDLE | ) |
Release the CfgIn object.
Supported Platform(s): Yukon, V510, V710
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_setActiveIomcu | ( | CFGINHANDLE | , |
uint8_t | ioindex | ||
) |
Set active io mcu
Supported Platform(s): Yukon, V510, V710
ioindex | Io mcu number, valid values are 1-4. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_setCfgInMode | ( | CFGINHANDLE | , |
uint8_t | channel, | ||
CfgInModeEnum | set_mode | ||
) |
Set configurable input mode
Supported Platform(s): Yukon, V510, V710
channel | Channel to set. Numbering starts from 1. |
set_mode | Which mode to set. See CfgInModeEnum for a description of which modes are available in the current platform. |
For Yukon, V510, V710 platform: CFGIN_VOLTAGE_5V CFGIN_RESISTANCE CFGIN_CURRENT_4_20 CFGIN_VOLTAGE_32V CFGIN_DIGITAL_PD_5V CFGIN_DIGITAL_F_5V CFGIN_DIGITAL_PU_5V CFGIN_FREQ_PD_5V CFGIN_FREQ_F_5V CFGIN_FREQ_PU_5V CFGIN_DC_PD_5V CFGIN_DC_F_5V CFGIN_DC_PU_5V
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_setFrequencyFilterLevel | ( | CFGINHANDLE | , |
uint8_t | level | ||
) |
Sets the weight of the old sample value in frequency measurements as a percentage. The sampled frequency is filtered with a moving average. A large weight increases the filter level and gives better accuracy in high frequency measurements, but decreases the speed of which changes in the input frequency can be detected.
Supported Platform(s):
level | Weight of the old sample value as a percentage (0-99) |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CfgIn_setMinFrequencyThreshold | ( | CFGINHANDLE | , |
uint8_t | channel, | ||
float32_t | frequency | ||
) |
Set the configured minimum frequency threshold for input in frequency measurement mode (CFGIN_FREQ_PD_5V, CFGIN_FREQ_F_5V, CFGIN_FREQ_PU_5V). The frequency threshold is set to 1Hz at device start-up. Use the frequency threshold to set up how low frequencies the unit are able to measure, if frequency is below this value a frequency of 0 is reported. This value will affect how long it will take to detect that the signal frequency has gone to 0.
Supported Platform(s): Yukon, V510, V710
channel | Channel to set. Numbering starts from 1. |
frequency | Minimum frequency threshold (1.0 - 15000Hz) for Yukon, V510, V710. |
Example Usage:
EXTERN_C CCAUXDLL_API CFGINHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetCfgIn | ( | void | ) |
Factory function that creates instances of the CfgIn object.
Supported Platform(s): Yukon, V510, V710
Example Usage: