comparison Small_CPU/Inc/externalInterface.h @ 691:52d68cf9994c Betatest

Improvment external interface usage: The previous implementation of the external interface was straight forward for ADC and Co2 UART usage. The new implementation provides the possibility to configurate the behavior of the external interface. e.g. Switching of external3,3V and ADC separatly and selection of UART protocol.
author Ideenmodellierer
date Fri, 05 Aug 2022 15:26:28 +0200
parents 1b995079c045
children f1b40364b0af
comparison
equal deleted inserted replaced
690:fca2bd25e6e2 691:52d68cf9994c
38 void externalInterface_InitPower33(void); 38 void externalInterface_InitPower33(void);
39 uint8_t externalInterface_StartConversion(uint8_t channel); 39 uint8_t externalInterface_StartConversion(uint8_t channel);
40 uint8_t externalInterface_ReadAndSwitch(); 40 uint8_t externalInterface_ReadAndSwitch();
41 float externalInterface_CalculateADCValue(uint8_t channel); 41 float externalInterface_CalculateADCValue(uint8_t channel);
42 float getExternalInterfaceChannel(uint8_t channel); 42 float getExternalInterfaceChannel(uint8_t channel);
43 uint8_t setExternalInterfaceChannel(uint8_t channel, float value);
43 void externalInterface_SwitchPower33(uint8_t state); 44 void externalInterface_SwitchPower33(uint8_t state);
44 uint8_t externalInterface_isEnabledPower33(); 45 void externalInterface_SwitchADC(uint8_t state);
46 uint8_t externalInterface_isEnabledPower33(void);
47 uint8_t externalInterface_isEnabledADC(void);
45 48
46 void externalInterface_SetCO2Value(uint16_t CO2_ppm); 49 void externalInterface_SetCO2Value(uint16_t CO2_ppm);
47 void externalInterface_SetCO2SignalStrength(uint16_t LED_qa); 50 void externalInterface_SetCO2SignalStrength(uint16_t LED_qa);
48 uint16_t externalInterface_GetCO2Value(void); 51 uint16_t externalInterface_GetCO2Value(void);
49 uint16_t externalInterface_GetCO2SignalStrength(void); 52 uint16_t externalInterface_GetCO2SignalStrength(void);