diff Small_CPU/Inc/externalInterface.h @ 714:045ff7800501

Added customizable data area for specific sensor data: In future smart sensors will be connected via UART interface. These sensor provide additional data like diagnostics or id numbers which may vary from sensor to sensor. That's why a byte array has been added which stores up to 32 bytes. The layout of this array may be specific to sensor needs. As first example temperature and id number of the DiveO2 sensor are provided.
author Ideenmodellierer
date Sun, 20 Nov 2022 20:42:08 +0100
parents f1b40364b0af
children d646a0f724a7
line wrap: on
line diff
--- a/Small_CPU/Inc/externalInterface.h	Sun Nov 20 20:37:44 2022 +0100
+++ b/Small_CPU/Inc/externalInterface.h	Sun Nov 20 20:42:08 2022 +0100
@@ -54,6 +54,8 @@
 uint16_t externalInterface_GetCO2SignalStrength(void);
 void externalInterface_SetCO2State(uint16_t state);
 uint16_t externalInterface_GetCO2State(void);
+uint8_t externalInterface_GetSensorData(uint8_t* pDataStruct);
+void externalInterface_SetSensorData(uint8_t dataId, uint8_t* pDataStruct);
 
 void externalInterface_ExecuteCmd(uint16_t Cmd);