Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Small_CPU/Inc/externalInterface.h Fri Aug 05 15:22:26 2022 +0200 +++ b/Small_CPU/Inc/externalInterface.h Fri Aug 05 15:26:28 2022 +0200 @@ -40,8 +40,11 @@ uint8_t externalInterface_ReadAndSwitch(); float externalInterface_CalculateADCValue(uint8_t channel); float getExternalInterfaceChannel(uint8_t channel); +uint8_t setExternalInterfaceChannel(uint8_t channel, float value); void externalInterface_SwitchPower33(uint8_t state); -uint8_t externalInterface_isEnabledPower33(); +void externalInterface_SwitchADC(uint8_t state); +uint8_t externalInterface_isEnabledPower33(void); +uint8_t externalInterface_isEnabledADC(void); void externalInterface_SetCO2Value(uint16_t CO2_ppm); void externalInterface_SetCO2SignalStrength(uint16_t LED_qa);