примерная примерная такая же по размеру структура данных модбас которая будет в итоге, все помещается

hardfault при отключении датчика
This commit is contained in:
2025-03-03 13:48:21 +03:00
parent e4b2830fcc
commit aa5b4b3fcb
10 changed files with 139 additions and 108 deletions

View File

@@ -13,8 +13,9 @@
#ifndef _MODBUS_DATA_H_
#define _MODBUS_DATA_H_
#include "stdint.h"
#include "ds18b20_driver.h"
//--------------DEFINES FOR REGISTERS---------------
// DEFINES FOR ARRAYS
/**
@@ -37,8 +38,8 @@
*/
typedef struct //MB_DataInRegsTypeDef
{
uint16_t ForwardVoltage;
uint16_t ReversePeakVoltage;
uint16_t SensTemperature[DS18B20_DEVICE_AMOUNT];
uint16_t Resolution;
}MB_DataInRegsTypeDef;