-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmb-check.h
More file actions
30 lines (21 loc) · 788 Bytes
/
mb-check.h
File metadata and controls
30 lines (21 loc) · 788 Bytes
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
#ifndef _MB_CHEAK_H_
#define _MB_CHEAK_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "mb.h"
#if(MB_MODE==MB_MODE_SLAVE)
mb_error_e mb_check_func(uint8_t func);
mb_error_e mb_check_quantity(uint16_t Quantity);
mb_error_e mb_check_on_off(uint16_t Value);
mb_error_e mb_check_table_coils_address(uint16_t StartAd,uint16_t Quantity);
mb_error_e mb_check_table_discretes_input_address(uint16_t StartAd,uint16_t Quantity);
mb_error_e mb_check_table_input_registers_address(uint16_t StartAd,uint16_t Quantity);
mb_error_e mb_check_table_holding_registers_address(uint16_t StartAd,uint16_t Quantity);
mb_error_e mb_check_quantity_bit_n_byte(uint16_t Quantity,uint8_t N);
mb_error_e mb_check_quantity_reg_n_byte(uint16_t Quantity,uint8_t N);
#endif
#ifdef __cplusplus
}
#endif
#endif