-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmb.h
676 lines (538 loc) · 29.9 KB
/
mb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
/*
*********************************************************************************************************
* uC/Modbus
* The Embedded Modbus Stack
*
* Copyright 2003-2020 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
* This software is subject to an open source license and is distributed by
* Silicon Laboratories Inc. pursuant to the terms of the Apache License,
* Version 2.0 available at www.apache.org/licenses/LICENSE-2.0.
*
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* uC/MODBUS Header File
*
* Filename : mb.h
* Version : V2.14.00
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* MODULE
*
* Note(s) : (1) This main modbus header file is protected from multiple pre-processor
* inclusion through use of the modbus module present pre-processor macro definition.
*
*********************************************************************************************************
*/
#ifndef MODBUS_MODULE_PRESENT /* See Note #1. */
#define MODBUS_MODULE_PRESENT
/*
*********************************************************************************************************
* MODBUS VERSION NUMBER
*
* Note(s) : (1) (a) The Modbus software version is denoted as follows :
*
* Vx.yy.zz
*
* where
* V denotes 'Version' label
* x denotes major software version revision number
* yy denotes minor software version revision number
* zz minor revision
*
* (b) The software version label #define is formatted as follows :
*
* ver = x.yy.zz * 10000
*
* where
* ver denotes software version number scaled as an integer value
* x.yy.zz denotes software version number
*********************************************************************************************************
*/
#define MODBUS_VERSION 21400u /* See Note #1. */
/*
*********************************************************************************************************
* EXTERNS
*********************************************************************************************************
*/
#ifdef MB_MODULE
#define MB_EXT
#else
#define MB_EXT extern
#endif
/*
*********************************************************************************************************
* MODBUS PROTOCOL INCLUDE FILES
*
* Note(s) : (1) The modbus protocol suite files are located in the following directories :
*
* (a) (1) \<Your Product Application>\app_cfg.h
* (2) \mb_cfg.h
* (3) \mb_data.c
*
* (b) \<Modbus Protocol Suite>\Source\mb.h
* \mb.c
* \mb_def.c
* \mb_util.c
* \mbm_core.c
* \mbs_core.c
*
* (c) \<Modbus Protocol Suite>\Ports\<cpu>\mb_bsp.*
*
* (d) \<Modbus Protocol Suite>\OS\<os>\mb_os.*
*
* where
* <Your Product Application> directory path for Your Product's Application
* <Modbus Protocol Suite> directory path for modbus protocol suite
* <cpu> directory name for specific processor (CPU)
* <compiler> directory name for specific compiler
* <os> directory name for specific operating system (OS)
*
* (2) CPU-configuration software files are located in the following directories :
*
* (a) \<CPU-Compiler Directory>\cpu_def.h
*
* (b) \<CPU-Compiler Directory>\<cpu>\<compiler>\cpu*.*
*
* where
* <CPU-Compiler Directory> directory path for common CPU-compiler software
* <cpu> directory name for specific processor (CPU)
* <compiler> directory name for specific compiler
*
* (3) NO compiler-supplied standard library functions are used by the modbus protocol suite.
*
* (a) Standard library functions are implemented in the custom library module(s) :
*
* \<Custom Library Directory>\lib*.*
*
* where
* <Custom Library Directory> directory path for custom library software
*
*
* (4) Compiler MUST be configured to include the '\<Custom Library Directory>\uC-LIB\',
* '\<CPU-Compiler Directory>\' directory, & the specific CPU-compiler directory as
* additional include path directories.
**********************************************************************************************************
*/
#include <cpu.h>
#include <lib_def.h>
#include "mb_cfg.h"
#include "mb_def.h"
#include "mb_os.h"
/*
*********************************************************************************************************
* DATA TYPES
*********************************************************************************************************
*/
typedef struct modbus_ch {
CPU_INT08U Ch; /* Channel number */
CPU_BOOLEAN WrEn; /* Indicates whether MODBUS writes are enabled for the channel */
CPU_INT32U WrCtr; /* Incremented each time a write command is performed */
CPU_INT08U NodeAddr; /* Modbus node address of the channel */
CPU_INT08U PortNbr; /* UART port number */
CPU_INT32U BaudRate; /* Baud Rate */
CPU_INT08U Parity; /* UART's parity settings (MODBUS_PARITY_NONE, _ODD or _EVEN) */
CPU_INT08U Bits; /* UART's number of bits (7 or 8) */
CPU_INT08U Stops; /* UART's number of stop bits (1 or 2) */
CPU_INT08U Mode; /* Modbus mode: MODBUS_MODE_ASCII or MODBUS_MODE_RTU */
CPU_INT08U MasterSlave; /* Slave when set to MODBUS_SLAVE, Master when set to MODBUS_MASTER */
CPU_INT16U Err; /* Internal code to indicate the source of MBS_ErrRespSet() */
#if (MODBUS_CFG_RTU_EN == DEF_ENABLED)
CPU_INT16U RTU_TimeoutCnts; /* Counts to reload in .RTU_TimeoutCtr when byte received */
CPU_INT16U RTU_TimeoutCtr; /* Counts left before RTU timer times out for the channel */
CPU_BOOLEAN RTU_TimeoutEn; /* Enable (when TRUE) or Disable (when FALSE) RTU timer */
#endif
#if (MODBUS_CFG_FC08_EN == DEF_ENABLED)
CPU_INT16U StatMsgCtr; /* Statistics */
CPU_INT16U StatCRCErrCtr;
CPU_INT16U StatExceptCtr;
CPU_INT16U StatSlaveMsgCtr;
CPU_INT16U StatNoRespCtr;
#endif
CPU_INT32U RxTimeout; /* Amount of time Master is willing to wait for response from slave */
CPU_INT32U RxCtr; /* Incremented every time a character is received */
CPU_INT16U RxBufByteCtr; /* Number of bytes received or to send */
CPU_INT08U *RxBufPtr; /* Pointer to current position in buffer */
CPU_INT08U RxBuf[MODBUS_CFG_BUF_SIZE]; /* Storage of received characters or characters to send */
CPU_INT32U TxCtr; /* Incremented every time a character is transmitted */
CPU_INT16U TxBufByteCtr; /* Number of bytes received or to send */
CPU_INT08U *TxBufPtr; /* Pointer to current position in buffer */
CPU_INT08U TxBuf[MODBUS_CFG_BUF_SIZE]; /* Storage of received characters or characters to send */
CPU_INT08U RxFrameData[MODBUS_CFG_BUF_SIZE]; /* Additional data for function requested. */
CPU_INT16U RxFrameNDataBytes; /* Number of bytes in the data field. */
CPU_INT16U RxFrameCRC; /* Error check value (LRC or CRC-16). */
CPU_INT16U RxFrameCRC_Calc; /* Error check value computed from packet received */
CPU_INT08U TxFrameData[MODBUS_CFG_BUF_SIZE]; /* Additional data for function requested. */
CPU_INT16U TxFrameNDataBytes; /* Number of bytes in the data field. */
CPU_INT16U TxFrameCRC; /* Error check value (LRC or CRC-16). */
} MODBUS_CH;
/*
*********************************************************************************************************
* GLOBAL VARIABLES
*********************************************************************************************************
*/
#if (MODBUS_CFG_RTU_EN == DEF_ENABLED)
MB_EXT CPU_INT16U MB_RTU_Freq; /* Frequency at which RTU timer is running */
MB_EXT CPU_INT32U MB_RTU_TmrCtr; /* Incremented every Modbus RTU timer interrupt */
#endif
MB_EXT CPU_INT08U MB_ChCtr; /* Modbus channel counter (0..MODBUS_MAX_CH) */
MB_EXT MODBUS_CH MB_ChTbl[MODBUS_CFG_MAX_CH]; /* Modbus channels */
/*
*********************************************************************************************************
* GLOBAL VARIABLES
*********************************************************************************************************
*/
extern CPU_INT32U const MB_TotalRAMSize;
extern CPU_INT16U const MB_ChSize;
/*
*********************************************************************************************************
* MODBUS INTERFACE FUNCTION PROTOTYPES
* (MB.C)
*********************************************************************************************************
*/
void MB_Init (CPU_INT32U freq);
void MB_Exit (void);
MODBUS_CH *MB_CfgCh (CPU_INT08U node_addr,
CPU_INT08U master_slave,
CPU_INT32U rx_timeout,
CPU_INT08U modbus_mode,
CPU_INT08U port_nbr,
CPU_INT32U baud,
CPU_INT08U bits,
CPU_INT08U parity,
CPU_INT08U stops,
CPU_INT08U wr_en);
void MB_MasterTimeoutSet (MODBUS_CH *pch,
CPU_INT32U timeout);
void MB_ModeSet (MODBUS_CH *pch,
CPU_INT08U master_slave,
CPU_INT08U mode);
void MB_NodeAddrSet (MODBUS_CH *pch,
CPU_INT08U addr);
void MB_WrEnSet (MODBUS_CH *pch,
CPU_INT08U wr_en);
void MB_ChToPortMap (MODBUS_CH *pch,
CPU_INT08U port_nbr);
#if (MODBUS_CFG_ASCII_EN == DEF_ENABLED)
void MB_ASCII_RxByte (MODBUS_CH *pch,
CPU_INT08U rx_byte);
#endif
#if (MODBUS_CFG_RTU_EN == DEF_ENABLED)
void MB_RTU_RxByte (MODBUS_CH *pch,
CPU_INT08U rx_byte);
void MB_RTU_TmrReset (MODBUS_CH *pch); /* Resets the Frame Sync timer. */
void MB_RTU_TmrResetAll (void); /* Resets all the RTU timers */
void MB_RTU_TmrUpdate (void);
#endif
void MB_RxByte (MODBUS_CH *pch,
CPU_INT08U rx_byte);
void MB_RxTask (MODBUS_CH *pch);
void MB_Tx (MODBUS_CH *pch);
void MB_TxByte (MODBUS_CH *pch);
#if (MODBUS_CFG_ASCII_EN == DEF_ENABLED)
CPU_BOOLEAN MB_ASCII_Rx (MODBUS_CH *pch);
void MB_ASCII_Tx (MODBUS_CH *pch);
#endif
#if (MODBUS_CFG_RTU_EN == DEF_ENABLED)
CPU_BOOLEAN MB_RTU_Rx (MODBUS_CH *pch);
void MB_RTU_Tx (MODBUS_CH *pch);
#endif
/*
*********************************************************************************************************
* RTOS INTERFACE FUNCTION PROTOTYPES
* (defined in mb_os.c)
*********************************************************************************************************
*/
void MB_OS_Init (void);
void MB_OS_Exit (void);
void MB_OS_RxSignal (MODBUS_CH *pch);
void MB_OS_RxWait (MODBUS_CH *pch,
CPU_INT16U *perr);
/*
*********************************************************************************************************
* COMMON MODBUS ASCII INTERFACE FUNCTION PROTOTYPES
* (defined in mb_util.c)
*********************************************************************************************************
*/
#if (MODBUS_CFG_ASCII_EN == DEF_ENABLED)
CPU_INT08U *MB_ASCII_BinToHex (CPU_INT08U value,
CPU_INT08U *pbuf);
CPU_INT08U MB_ASCII_HexToBin (CPU_INT08U *phex);
CPU_INT08U MB_ASCII_RxCalcLRC (MODBUS_CH *pch);
CPU_INT08U MB_ASCII_TxCalcLRC (MODBUS_CH *pch,
CPU_INT16U tx_bytes);
#endif
/*
*********************************************************************************************************
* COMMON MODBUS RTU INTERFACE FUNCTION PROTOTYPES
* (defined in mb_util.C)
*********************************************************************************************************
*/
#if (MODBUS_CFG_RTU_EN == DEF_ENABLED)
CPU_INT16U MB_RTU_CalcCRC (MODBUS_CH *pch);
CPU_INT16U MB_RTU_TxCalcCRC (MODBUS_CH *pch);
CPU_INT16U MB_RTU_RxCalcCRC (MODBUS_CH *pch);
#endif
/*
*********************************************************************************************************
* INTERFACE TO APPLICATION DATA
* (defined in mb_data.C)
*********************************************************************************************************
*/
#if (MODBUS_CFG_FC01_EN == DEF_ENABLED)
CPU_BOOLEAN MB_CoilRd (CPU_INT16U coil,
CPU_INT16U *perr);
#endif
#if (MODBUS_CFG_FC05_EN == DEF_ENABLED)
void MB_CoilWr (CPU_INT16U coil,
CPU_BOOLEAN coil_val,
CPU_INT16U *perr);
#endif
#if (MODBUS_CFG_FC02_EN == DEF_ENABLED)
CPU_BOOLEAN MB_DIRd (CPU_INT16U di,
CPU_INT16U *perr);
#endif
#if (MODBUS_CFG_FC04_EN == DEF_ENABLED)
CPU_INT16U MB_InRegRd (CPU_INT16U reg,
CPU_INT16U *perr);
CPU_FP32 MB_InRegRdFP (CPU_INT16U reg,
CPU_INT16U *perr);
#endif
#if (MODBUS_CFG_FC03_EN == DEF_ENABLED)
CPU_INT16U MB_HoldingRegRd (CPU_INT16U reg,
CPU_INT16U *perr);
CPU_FP32 MB_HoldingRegRdFP (CPU_INT16U reg,
CPU_INT16U *perr);
#endif
#if (MODBUS_CFG_FC06_EN == DEF_ENABLED) || \
(MODBUS_CFG_FC16_EN == DEF_ENABLED)
void MB_HoldingRegWr (CPU_INT16U reg,
CPU_INT16U reg_val_16,
CPU_INT16U *perr);
void MB_HoldingRegWrFP (CPU_INT16U reg,
CPU_FP32 reg_val_fp,
CPU_INT16U *perr);
#endif
#if (MODBUS_CFG_FC20_EN == DEF_ENABLED)
CPU_INT16U MB_FileRd (CPU_INT16U file_nbr,
CPU_INT16U record_nbr,
CPU_INT16U ix,
CPU_INT08U record_len,
CPU_INT16U *perr);
#endif
#if (MODBUS_CFG_FC21_EN == DEF_ENABLED)
void MB_FileWr (CPU_INT16U file_nbr,
CPU_INT16U record_nbr,
CPU_INT16U ix,
CPU_INT08U record_len,
CPU_INT16U value,
CPU_INT16U *perr);
#endif
/*
*********************************************************************************************************
* BSP FUNCTION PROTOTYPES
*********************************************************************************************************
*/
void MB_CommExit (void); /* Exit Modbus Communications */
void MB_CommPortCfg (MODBUS_CH *pch,
CPU_INT08U port_nbr,
CPU_INT32U baud,
CPU_INT08U bits,
CPU_INT08U parity,
CPU_INT08U stops);
#if (MODBUS_CFG_RTU_EN == DEF_ENABLED)
void MB_RTU_TmrInit (void); /* Initialize the timer used for RTU framing */
void MB_RTU_TmrExit (void);
void MB_RTU_TmrISR_Handler (void);
#endif
/*
*********************************************************************************************************
* MODBUS SLAVE
* GLOBAL FUNCTION PROTOTYPES
*********************************************************************************************************
*/
#if (MODBUS_CFG_SLAVE_EN == DEF_ENABLED)
CPU_BOOLEAN MBS_FCxx_Handler (MODBUS_CH *pch);
void MBS_RxTask (MODBUS_CH *pch);
#if (MODBUS_CFG_FC08_EN == DEF_ENABLED)
void MBS_StatInit (MODBUS_CH *pch);
#endif
#endif
/*
*********************************************************************************************************
* MODBUS MASTER
* GLOBAL FUNCTION PROTOTYPES
*********************************************************************************************************
*/
#if (MODBUS_CFG_MASTER_EN == DEF_ENABLED)
#if (MODBUS_CFG_FC01_EN == DEF_ENABLED)
CPU_INT16U MBM_FC01_CoilRd (MODBUS_CH *pch,
CPU_INT08U slave_addr,
CPU_INT16U start_addr,
CPU_INT08U *p_coil_tbl,
CPU_INT16U nbr_coils);
#endif
#if (MODBUS_CFG_FC02_EN == DEF_ENABLED)
CPU_INT16U MBM_FC02_DIRd (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_INT08U *p_di_tbl,
CPU_INT16U nbr_di);
#endif
#if (MODBUS_CFG_FC03_EN == DEF_ENABLED)
CPU_INT16U MBM_FC03_HoldingRegRd (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_INT16U *p_reg_tbl,
CPU_INT16U nbr_regs);
#endif
#if (MODBUS_CFG_FC03_EN == DEF_ENABLED) && \
(MODBUS_CFG_FP_EN == DEF_ENABLED)
CPU_INT16U MBM_FC03_HoldingRegRdFP (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_FP32 *p_reg_tbl,
CPU_INT16U nbr_regs);
#endif
#if (MODBUS_CFG_FC04_EN == DEF_ENABLED)
CPU_INT16U MBM_FC04_InRegRd (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_INT16U *p_reg_tbl,
CPU_INT16U nbr_regs);
#endif
#if (MODBUS_CFG_FC05_EN == DEF_ENABLED)
CPU_INT16U MBM_FC05_CoilWr (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_BOOLEAN coil_val);
#endif
#if (MODBUS_CFG_FC06_EN == DEF_ENABLED)
CPU_INT16U MBM_FC06_HoldingRegWr (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_INT16U reg_val);
#endif
#if (MODBUS_CFG_FC06_EN == DEF_ENABLED) && \
(MODBUS_CFG_FP_EN == DEF_ENABLED)
CPU_INT16U MBM_FC06_HoldingRegWrFP (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_FP32 reg_val_fp);
#endif
#if (MODBUS_CFG_FC08_EN == DEF_ENABLED)
CPU_INT16U MBM_FC08_Diag (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U fnct,
CPU_INT16U fnct_data,
CPU_INT16U *pval);
#endif
#if (MODBUS_CFG_FC15_EN == DEF_ENABLED)
CPU_INT16U MBM_FC15_CoilWr (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_INT08U *p_coil_tbl,
CPU_INT16U nbr_coils);
#endif
#if (MODBUS_CFG_FC16_EN == DEF_ENABLED)
CPU_INT16U MBM_FC16_HoldingRegWrN (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_INT16U *p_reg_tbl,
CPU_INT16U nbr_regs);
#endif
#if (MODBUS_CFG_FC16_EN == DEF_ENABLED) && \
(MODBUS_CFG_FP_EN == DEF_ENABLED)
CPU_INT16U MBM_FC16_HoldingRegWrNFP (MODBUS_CH *pch,
CPU_INT08U slave_node,
CPU_INT16U slave_addr,
CPU_FP32 *p_reg_tbl,
CPU_INT16U nbr_regs);
#endif
#endif
/*
*********************************************************************************************************
* SYMBOL ERRORS
*********************************************************************************************************
*/
#ifndef MODBUS_CFG_MASTER_EN
#error "MODBUS_CFG_MASTER_EN not #defined "
#error "... Defines wheteher your product will support Modbus Master "
#endif
#ifndef MODBUS_CFG_SLAVE_EN
#error "MODBUS_CFG_SLAVE_EN not #defined "
#error "... Defines wheteher your product will support Modbus Slave "
#endif
#ifndef MODBUS_CFG_MAX_CH
#error "MODBUS_CFG_MAX_CH not #defined "
#error "... Defines the number of Modbus ports supported. Should be 1 to N. "
#endif
#ifndef MODBUS_CFG_MAX_CH
#error "MODBUS_CFG_MAX_CH not #defined "
#error "... Defines the number of Modbus ports supported. Should be 1 to N. "
#endif
#ifndef MODBUS_CFG_MAX_CH
#error "MODBUS_CFG_MAX_CH not #defined "
#error "... Defines the number of Modbus ports supported. Should be 1 to N. "
#endif
#ifndef MODBUS_CFG_ASCII_EN
#error "MODBUS_CFG_ASCII_EN not #defined "
#error "... Defines whether your product will support Modbus ASCII. "
#endif
#ifndef MODBUS_CFG_RTU_EN
#error "MODBUS_CFG_RTU_EN not #defined "
#error "... Defines whether your product will support Modbus RTU. "
#endif
#ifndef MODBUS_CFG_FP_EN
#error "MODBUS_CFG_FP_EN not #defined "
#error "... Defines whether your product will support Daniels Flow Meter Floating-Point extensions. "
#endif
#ifndef MODBUS_CFG_FP_START_IX
#error "MODBUS_CFG_FP_START_IX not #defined "
#error "... Defines the starting register number for floating-point registers. "
#endif
#ifndef MODBUS_CFG_FC01_EN
#error "MODBUS_CFG_FC01_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC02_EN
#error "MODBUS_CFG_FC02_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC03_EN
#error "MODBUS_CFG_FC03_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC04_EN
#error "MODBUS_CFG_FC04_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC05_EN
#error "MODBUS_CFG_FC05_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC06_EN
#error "MODBUS_CFG_FC06_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC08_EN
#error "MODBUS_CFG_FC08_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC15_EN
#error "MODBUS_CFG_FC15_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC16_EN
#error "MODBUS_CFG_FC16_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC20_EN
#error "MODBUS_CFG_FC20_EN not #defined "
#endif
#ifndef MODBUS_CFG_FC21_EN
#error "MODBUS_CFG_FC21_EN not #defined "
#endif
/*
*********************************************************************************************************
* MODULE END
*********************************************************************************************************
*/
#endif /* End of modbus module include. */