2020-10-30 12:02:07 +00:00
|
|
|
/*
|
|
|
|
* rte_rtu.h
|
|
|
|
*
|
|
|
|
* Created on: Oct 30, 2020
|
|
|
|
* Author: mateusz
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RTE_RTU_H_
|
|
|
|
#define RTE_RTU_H_
|
|
|
|
|
|
|
|
#include "station_config.h"
|
2022-04-24 17:32:38 +00:00
|
|
|
#include "../include/etc/rtu_configuration.h"
|
2020-10-30 12:02:07 +00:00
|
|
|
|
|
|
|
#include "modbus_rtu/rtu_register_data_t.h"
|
|
|
|
#include "modbus_rtu/rtu_exception_t.h"
|
|
|
|
#include "modbus_rtu/rtu_getters.h"
|
|
|
|
#include "modbus_rtu/rtu_pool_queue_t.h"
|
|
|
|
|
2020-12-28 22:57:38 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2020-10-30 12:02:07 +00:00
|
|
|
extern uint8_t rte_rtu_number_of_serial_io_errors;
|
|
|
|
|
2020-11-01 20:39:18 +00:00
|
|
|
extern uint16_t rte_rtu_number_of_successfull_serial_comm;
|
2020-10-30 12:02:07 +00:00
|
|
|
|
2021-03-23 20:28:45 +00:00
|
|
|
//#ifdef _MODBUS_RTU
|
2020-10-30 12:02:07 +00:00
|
|
|
|
2021-04-26 19:04:04 +00:00
|
|
|
extern rtu_register_data_t rte_wx_modbus_rtu_f1;
|
2020-10-30 12:02:07 +00:00
|
|
|
|
2021-04-26 19:04:04 +00:00
|
|
|
extern rtu_register_data_t rte_wx_modbus_rtu_f2;
|
2020-10-30 12:02:07 +00:00
|
|
|
|
2021-04-26 19:04:04 +00:00
|
|
|
extern rtu_register_data_t rte_wx_modbus_rtu_f3;
|
2020-10-30 12:02:07 +00:00
|
|
|
|
2021-04-26 19:04:04 +00:00
|
|
|
extern rtu_register_data_t rte_wx_modbus_rtu_f4;
|
2020-10-30 12:02:07 +00:00
|
|
|
|
2021-04-26 19:04:04 +00:00
|
|
|
extern rtu_register_data_t rte_wx_modbus_rtu_f5;
|
2020-10-30 12:02:07 +00:00
|
|
|
|
2021-04-26 19:04:04 +00:00
|
|
|
extern rtu_register_data_t rte_wx_modbus_rtu_f6;
|
2020-10-30 12:02:07 +00:00
|
|
|
|
|
|
|
extern rtu_exception_t rte_rtu_last_modbus_exception;
|
|
|
|
extern uint32_t rte_rtu_last_modbus_rx_error_timestamp;
|
|
|
|
extern uint32_t rte_rtu_last_modbus_exception_timestamp;
|
|
|
|
extern rtu_pool_queue_t rte_rtu_pool_queue;
|
|
|
|
|
2021-03-23 20:28:45 +00:00
|
|
|
//#endif
|
2020-10-30 12:02:07 +00:00
|
|
|
|
|
|
|
void rte_rtu_init(void);
|
|
|
|
|
|
|
|
#endif /* RTE_RTU_H_ */
|