![]() |
SESTILIO
3.0.2
C Library for SESTILIO a smart A/D and D/A interface on USB 2.0
|
Macros | |
| #define | SE_K_AD_VOLT 0.1484375 |
| Used X voltage conversion from A/D inputs. mV = ADU * SE_K_AD_VOLT (voltage reference 2.432V) | |
| #define | SE_K_DA_VOLT 1.1875000 |
| Used X voltage conversion from D/A outputs. mV = ADU * SE_K_DA_VOLT (voltage reference 2.432V) | |
| #define | SE_ADV(a) ((a) * SE_K_AD_VOLT / 1000) |
| Simple macro to convert from ADU to Volt for an A/D inputs at gain 1. | |
| #define | SE_VAD(a) ((a) * 1000 / SE_K_AD_VOLT) |
| Simple macro to convert from Volt to ADU for an A/D inputs at gain 1. | |
| #define | SE_DAV(a) ((a) * SE_K_DA_VOLT / 1000) |
| Simple macro to convert from ADU to Volt for D/A outputs. | |
| #define | SE_VDA(a) ((a) * 1000 / SE_K_DA_VOLT) |
| Simple macro to convert from Volt to ADU for D/A outputs. | |
| #define | SE_ADKT(a) ((a) * 0.037109375 / 5.0) |
| Simple macro to convert from ADU to Kelvin for an A/D input at gain 1 using an AD590 (voltage reference 2.432V and 5K0 ground Res.) | |
| #define | SE_ADKC(a) ((a) * 0.037109375 / 5.0 - 273.15) |
| Simple macro to convert from ADU to Celsius for an A/D input at gain 1 using an AD590 (voltage reference 2.432V and 5K0 ground Res.) | |
| #define | SE_ADKF(a) (SE_ADKC(a) * 1.8 - 32.0) |
| Simple macro to convert from ADU to Fahrenheit for an A/D input at gain 1 using an AD590 (voltage reference 2.432V and 5K0 ground Res.) | |
Useful conversion macros to convert from ADU (Analog Digital Unit) to desired unit.