diff Small_CPU/Inc/externalInterface.h @ 704:f1b40364b0af

Added protocol functions for UART DiveO2 sensor: The code has been modified to support the handling of several protocols (including baud rate changes). The data is requested by polling and passed via DMA into a ringbuffer which is then parsed by a cyclic function call in the main loop. At the moment only the O2 values are forwarded but because the sensor send several types of data within a signle message already more is extracted but yet discarded.
author Ideenmodellierer
date Fri, 28 Oct 2022 20:49:21 +0200
parents 52d68cf9994c
children 045ff7800501
line wrap: on
line diff
--- a/Small_CPU/Inc/externalInterface.h	Fri Oct 28 20:32:24 2022 +0200
+++ b/Small_CPU/Inc/externalInterface.h	Fri Oct 28 20:49:21 2022 +0200
@@ -43,8 +43,10 @@
 uint8_t setExternalInterfaceChannel(uint8_t channel, float value);
 void externalInterface_SwitchPower33(uint8_t state);
 void externalInterface_SwitchADC(uint8_t state);
+void externalInterface_SwitchUART(uint8_t protocol);
 uint8_t externalInterface_isEnabledPower33(void);
 uint8_t externalInterface_isEnabledADC(void);
+uint8_t externalInterface_GetUARTProtocol();
 
 void externalInterface_SetCO2Value(uint16_t CO2_ppm);
 void externalInterface_SetCO2SignalStrength(uint16_t LED_qa);