diff Small_CPU/Inc/externalInterface.h @ 731:2a801cfe23ab

Improvment sensor Autodetection: The sensor type optical has been introduce to enable the OSTC to completly switch of the external interface (voltage + ADC operation) The optical interface is handled via firmware. In addition some states have been added to reset the external power supply and to provide the ADC more time to do its conversation.
author Ideenmodellierer
date Sun, 15 Jan 2023 21:43:33 +0100
parents d646a0f724a7
children 30717de00f3a
line wrap: on
line diff
--- a/Small_CPU/Inc/externalInterface.h	Sat Jan 14 20:49:40 2023 +0100
+++ b/Small_CPU/Inc/externalInterface.h	Sun Jan 15 21:43:33 2023 +0100
@@ -41,7 +41,9 @@
  {
     DETECTION_OFF = 0,		/* no detection requested */
 	DETECTION_INIT,			/* prepare external interface for operation if not already activated */
-	DETECTION_ANALOG,		/* check ADC channels for connected sensors */
+	DETECTION_START,
+	DETECTION_ANALOG1,		/* check ADC channels for connected sensors */
+	DETECTION_ANALOG2,
 	DETECTION_DIGO2,		/* check UART channel for connected DigO2 sensor */
 	DETECTION_CO2,			/* check UART channel for connected CO2 sensor */
 	DETECTION_DONE
@@ -73,7 +75,7 @@
 uint8_t externalInterface_GetSensorData(uint8_t* pDataStruct);
 void externalInterface_SetSensorData(uint8_t dataId, uint8_t* pDataStruct);
 void externalInface_SetSensorMap(uint8_t* pMap);
-uint8_t* externalInterface_GetSensorMapPointer(void);
+uint8_t* externalInterface_GetSensorMapPointer(uint8_t finalMap);
 void externalInterface_AutodetectSensor(void);
 void externalInterface_ExecuteCmd(uint16_t Cmd);