Сделано базовое управление по модбас
- сохранение температур в модбас - чтение параметров датчика - инициализация нового датчика - деинициализация старого датчика Проект связанный с PY32модулем и температурами ПЧ перенесен в отдельную папку
This commit is contained in:
26
Core/PY32Module/PY32module_main.h
Normal file
26
Core/PY32Module/PY32module_main.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file pch_sensors.h
|
||||
* @brief Работа с датчиками температуры DS18B20 в ПЧ
|
||||
******************************************************************************
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef MODULE_MAIN_H
|
||||
#define MODULE_MAIN_H
|
||||
|
||||
/* Includes -----------------------------------------------------------------*/
|
||||
#include "main.h"
|
||||
#include "pch_sensors.h"
|
||||
#include "modbus_data.h"
|
||||
|
||||
/* Declarations and definitions ---------------------------------------------*/
|
||||
|
||||
/* Functions ---------------------------------------------------------------*/
|
||||
void PYModule_main(void);
|
||||
void PYModule_FirstInit(void);
|
||||
void PYModule_ReadSensor(DALLAS_HandleTypeDef *hdallas, PCHSens_TypeDef *pchsens);
|
||||
void PYModule_InitSensor(PCHSens_TypeDef *pchsens);
|
||||
void PYModule_DeInitSensor(PCHSens_TypeDef *pchsens);
|
||||
void PYModule_CheckLosted(PCHSens_TypeDef *pchsens);
|
||||
void PYModule_StoreModbus(PCHSens_TypeDef *pchsens);
|
||||
#endif // #ifndef MODULE_MAIN_H
|
||||
Reference in New Issue
Block a user