Mercurial > public > ostc4
comparison Small_CPU/Inc/externalInterface.h @ 786:19ab6f3ed52a
Cleanup sensor data interface:
In a very early implementation of the multiplexer the address of the mux was 0 followed by the sensors. As a resul the ID of the channels was shifted by one. To avoid confusion and because the mux address is meanwhile changed to the last address, it makes sense to return to the indexing where only the three visible sensor slots are used as reference (0,1,2).
author | Ideenmodellierer |
---|---|
date | Sun, 04 Jun 2023 21:54:24 +0200 |
parents | 01b3eb9d55c3 |
children | bb37d4f3e50e |
comparison
equal
deleted
inserted
replaced
785:3c0b16473af4 | 786:19ab6f3ed52a |
---|---|
85 uint16_t externalInterface_GetCO2Value(void); | 85 uint16_t externalInterface_GetCO2Value(void); |
86 uint16_t externalInterface_GetCO2SignalStrength(void); | 86 uint16_t externalInterface_GetCO2SignalStrength(void); |
87 void externalInterface_SetCO2State(uint16_t state); | 87 void externalInterface_SetCO2State(uint16_t state); |
88 uint16_t externalInterface_GetCO2State(void); | 88 uint16_t externalInterface_GetCO2State(void); |
89 uint8_t externalInterface_GetSensorData(uint8_t sensorId, uint8_t* pDataStruct); | 89 uint8_t externalInterface_GetSensorData(uint8_t sensorId, uint8_t* pDataStruct); |
90 void externalInterface_SetSensorData(uint8_t dataId, uint8_t* pDataStruct); | 90 void externalInterface_SetSensorData(uint8_t sensorId, uint8_t* pDataStruct); |
91 void externalInface_SetSensorMap(uint8_t* pMap); | 91 void externalInface_SetSensorMap(uint8_t* pMap); |
92 uint8_t* externalInterface_GetSensorMapPointer(uint8_t finalMap); | 92 uint8_t* externalInterface_GetSensorMapPointer(uint8_t finalMap); |
93 void externalInterface_AutodetectSensor(void); | 93 void externalInterface_AutodetectSensor(void); |
94 void externalInterface_ExecuteCmd(uint16_t Cmd); | 94 void externalInterface_ExecuteCmd(uint16_t Cmd); |
95 | 95 |