Test
Dependencies: mbed-dev-OS5_10_4
Diff: MySources/AdRead.h
- Revision:
- 0:014fad4dfb9d
diff -r 000000000000 -r 014fad4dfb9d MySources/AdRead.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MySources/AdRead.h Fri Aug 07 07:24:21 2020 +0000 @@ -0,0 +1,42 @@ +/*------------------------------------------------------------------------------- +Programm Name: AdRead.h +Version: 1.0 +Sprache: C++ +Compiler: mbed +Autor: PS +Copyright: PS + +Funktion: Lese-Funktion für den A/D Wandlerzugriff + +-------------------------------------------------------------------------------*/ +union Converter0 +{ + unsigned long AdComplete; + unsigned char AdPart[4]; +}; + +extern bool g_fDisableDataRead; + + +extern long g_nChn1Counter; +extern long g_nChn2Counter; +extern long g_nFinishCounter; + + +extern void AdReset(); + + +extern int Adc0ReadChn(); +extern int Adc1ReadChn(); + +extern void ReadConverter0(); +extern void ReadConverter1(); + +extern int CheckAnalogIn(); + +// Methoden aus AdCalculations +//------------------------------------------ +extern void InitBaseInputArray(); +extern int CheckLimitValues(); +extern int CalculateAdBaseValues(); +