![]() |
no-OS
|
Functions | |
| ADI_AFE_ANGLE_TYPE | convert_angle_type (ADI_AFE_ANGLE_TYPE angleRaw) |
| float | convert_rms_type (ADI_AFE_RMS_TYPE mag, float scale) |
| Converts ADI_AFE_RMS_TYPE to voltage/current magnitude. | |
| float | convert_fract_type (ADI_PQLIB_FRACT_TYPE fractValue) |
| Converts ADI_PQLIB_FRACT_TYPE to float. | |
| float | convert_fract_angle_type (ADI_PQLIB_FRACT_TYPE angle) |
| Converts ADI_AFE_FRACT_TYPR to angle. | |
| float | convert_pct_type (ADI_PQLIB_PCT_TYPE val) |
| Converts ADI_PQLIB_PCT_TYPE to percentage. | |
| ADI_PQLIB_PCT_TYPE | convert_to_pct_type (float val) |
| Converts val to percentage. | |
| ADI_PQLIB_FREQ_TYPE | convert_to_freq_type (float val) |
| Converts val to freq in mhz. | |
| ADI_PQLIB_COEF_TYPE | convert_to_coef_fract_type (float val) |
| Converts val to correction coefficient. | |
| uint32_t | convert_to_time_ms (float timesec) |
| Converts time in sec to time in ms. | |
| int | prepara_string (EVENT_TYPE event_type, int event_value, char *buf) |
| Prepare string output for specific event attribute types. | |
| ADI_AFE_ANGLE_TYPE convert_angle_type | ( | ADI_AFE_ANGLE_TYPE | angleRaw | ) |
| float convert_fract_angle_type | ( | ADI_PQLIB_FRACT_TYPE | angle | ) |
Converts ADI_AFE_FRACT_TYPR to angle.
| [in] | angle | - angle value |
| float convert_fract_type | ( | ADI_PQLIB_FRACT_TYPE | fractValue | ) |
Converts ADI_PQLIB_FRACT_TYPE to float.
| [in] | fractValue | - Value for conversion |
| float convert_pct_type | ( | ADI_PQLIB_PCT_TYPE | val | ) |
Converts ADI_PQLIB_PCT_TYPE to percentage.
| [in] | val | - Value for conversion |
| float convert_rms_type | ( | ADI_AFE_RMS_TYPE | mag, |
| float | scale ) |
Converts ADI_AFE_RMS_TYPE to voltage/current magnitude.
| [in] | mag | - Magnitude code from the library |
| [in] | scale | - Magnitude of full range RMS |
| ADI_PQLIB_COEF_TYPE convert_to_coef_fract_type | ( | float | val | ) |
Converts val to correction coefficient.
| [in] | val | - Value for conversion |
| ADI_PQLIB_FREQ_TYPE convert_to_freq_type | ( | float | val | ) |
Converts val to freq in mhz.
| [in] | val | - Value for conversion |
| ADI_PQLIB_PCT_TYPE convert_to_pct_type | ( | float | val | ) |
Converts val to percentage.
| [in] | val | - Value for conversion |
| uint32_t convert_to_time_ms | ( | float | timesec | ) |
Converts time in sec to time in ms.
| [in] | timesec | - Value for conversion. |
| int prepara_string | ( | EVENT_TYPE | event_type, |
| int | event_value, | ||
| char * | buf ) |
Prepare string output for specific event attribute types.
| event_type | Type of the event needed for output. |
| event_value | Type of the event property, depends on the event. |
| buf | IIO-buffer used for output preparation. |