comparison Small_CPU/Src/scheduler.c @ 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 621265ec3d23
comparison
equal deleted inserted replaced
713:1fbcca5bdf5d 714:045ff7800501
1731 for(channel = 0; channel < MAX_ADC_CHANNEL; channel++) 1731 for(channel = 0; channel < MAX_ADC_CHANNEL; channel++)
1732 { 1732 {
1733 value = getExternalInterfaceChannel(channel); 1733 value = getExternalInterfaceChannel(channel);
1734 global.dataSendToMaster.data[boolADCBuffer && DATA_BUFFER_ADC].extADC_voltage[channel] = value; 1734 global.dataSendToMaster.data[boolADCBuffer && DATA_BUFFER_ADC].extADC_voltage[channel] = value;
1735 } 1735 }
1736 global.dataSendToMaster.data[boolADCBuffer && DATA_BUFFER_ADC].externalInterface_SensorID = externalInterface_GetSensorData((uint8_t*)&global.dataSendToMaster.data[boolADCBuffer && DATA_BUFFER_ADC].sensor_data);
1736 global.dataSendToMaster.boolADCO2Data |= boolADCBuffer; 1737 global.dataSendToMaster.boolADCO2Data |= boolADCBuffer;
1737 } 1738 }
1738 1739
1739 void copyExtCO2data() 1740 void copyExtCO2data()
1740 { 1741 {