IoT Supervisor
0.0
Loading...
Searching...
No Matches
ModbusMiddleWare.h
Go to the documentation of this file.
1
/*
2
* ModbusMiddleWare.h
3
*
4
* I want to call it MMW
5
*
6
* Created on: Aug 19, 2023
7
* Author: brandon
8
*/
9
10
#ifndef INC_MODBUSMIDDLEWARE_H_
11
#define INC_MODBUSMIDDLEWARE_H_
12
#include <stdint.h>
13
24
typedef
enum
25
{
30
eMMW_B_NULL
= 0,
31
eMMW_B_38400
,
32
eMMW_B_19200
,
33
eMMW_B_9600
,
34
eMMW_B_4800
,
35
eMMW_B_2400
,
36
eMMW_B_1200
,
37
eMMW_B_NUM
38
}
mmw_speeds_t
;
39
45
typedef
enum
46
{
52
eMMW_CL_T1_PRE
= 0,
59
eMMW_CL_TH1
,
67
eMMW_CL_PETIT_TOP
,
74
eMMW_CL_TL0_TOP
,
75
eMMW_CL_NUM
76
}
mmw_cl_i_t
;
77
83
typedef
enum
84
{
85
eMMW_HR_STA
,
86
eMMW_HR_CFG
,
87
eMMW_HR_MB
,
88
eMMW_HR_WDT
,
89
eMMW_HR_PW
,
90
eMMW_HR_NUM
91
}
mmw_hr_t
;
92
93
extern
uint8_t
PETITMODBUS_DLY_TOP
;
94
extern
uint8_t
PETITMODBUS_SLAVE_ADDRESS
;
95
96
void
mmw_init
(uint8_t sid, uint8_t baud);
97
98
// group Modbus_Middleware
101
#endif
/* INC_MODBUSMIDDLEWARE_H_ */
mmw_init
void mmw_init(uint8_t sid, uint8_t baud)
Definition
ModbusMiddleWare.c:47
PETITMODBUS_SLAVE_ADDRESS
uint8_t PETITMODBUS_SLAVE_ADDRESS
Definition
ModbusMiddleWare.c:36
PETITMODBUS_DLY_TOP
uint8_t PETITMODBUS_DLY_TOP
Definition
ModbusMiddleWare.c:35
mmw_speeds_t
mmw_speeds_t
Definition
ModbusMiddleWare.h:25
mmw_cl_i_t
mmw_cl_i_t
Definition
ModbusMiddleWare.h:46
mmw_hr_t
mmw_hr_t
Definition
ModbusMiddleWare.h:84
eMMW_B_1200
@ eMMW_B_1200
Definition
ModbusMiddleWare.h:36
eMMW_B_4800
@ eMMW_B_4800
Definition
ModbusMiddleWare.h:34
eMMW_B_38400
@ eMMW_B_38400
Definition
ModbusMiddleWare.h:31
eMMW_B_19200
@ eMMW_B_19200
Definition
ModbusMiddleWare.h:32
eMMW_B_2400
@ eMMW_B_2400
Definition
ModbusMiddleWare.h:35
eMMW_B_NULL
@ eMMW_B_NULL
Definition
ModbusMiddleWare.h:30
eMMW_B_9600
@ eMMW_B_9600
Definition
ModbusMiddleWare.h:33
eMMW_B_NUM
@ eMMW_B_NUM
Definition
ModbusMiddleWare.h:37
eMMW_CL_TH1
@ eMMW_CL_TH1
Definition
ModbusMiddleWare.h:59
eMMW_CL_PETIT_TOP
@ eMMW_CL_PETIT_TOP
Definition
ModbusMiddleWare.h:67
eMMW_CL_T1_PRE
@ eMMW_CL_T1_PRE
Definition
ModbusMiddleWare.h:52
eMMW_CL_TL0_TOP
@ eMMW_CL_TL0_TOP
Definition
ModbusMiddleWare.h:74
eMMW_CL_NUM
@ eMMW_CL_NUM
Definition
ModbusMiddleWare.h:75
eMMW_HR_WDT
@ eMMW_HR_WDT
Definition
ModbusMiddleWare.h:88
eMMW_HR_PW
@ eMMW_HR_PW
Definition
ModbusMiddleWare.h:89
eMMW_HR_NUM
@ eMMW_HR_NUM
Definition
ModbusMiddleWare.h:90
eMMW_HR_CFG
@ eMMW_HR_CFG
Definition
ModbusMiddleWare.h:86
eMMW_HR_MB
@ eMMW_HR_MB
Definition
ModbusMiddleWare.h:87
eMMW_HR_STA
@ eMMW_HR_STA
Definition
ModbusMiddleWare.h:85
inc
ModbusMiddleWare.h
Generated by
1.9.8