123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- #ifndef _MB_CONFIG_H
- #define _MB_CONFIG_H
- #ifdef __cplusplus
- PR_BEGIN_EXTERN_C
- #endif
- #define MB_ASCII_ENABLED ( 0 )
- #define MB_RTU_ENABLED ( 1 )
- #define MB_TCP_ENABLED ( 0 )
- #define MB_ASCII_TIMEOUT_SEC ( 1 )
- #ifndef MB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS
- #define MB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS ( 0 )
- #endif
- #define MB_FUNC_HANDLERS_MAX ( 13 )
- #define MB_FUNC_OTHER_REP_SLAVEID_BUF ( 32 )
- #define MB_FUNC_OTHER_REP_SLAVEID_ENABLED ( 1 )
- #define MB_FUNC_READ_INPUT_ENABLED ( 1 )
- #define MB_FUNC_READ_HOLDING_ENABLED ( 1 )
- #define MB_FUNC_WRITE_HOLDING_ENABLED ( 1 )
- #define MB_FUNC_WRITE_MULTIPLE_HOLDING_ENABLED ( 1 )
- #define MB_FUNC_READ_COILS_ENABLED ( 1 )
- #define MB_FUNC_WRITE_COIL_ENABLED ( 1 )
- #define MB_FUNC_WRITE_MULTIPLE_COILS_ENABLED ( 1 )
- #define MB_FUNC_READ_DISCRETE_INPUTS_ENABLED ( 1 )
- #define MB_FUNC_READWRITE_HOLDING_ENABLED ( 1 )
- #define MB_FUNC_UPDATE_ENABLED ( 1 )
-
- #define MB_FUNC_SET_ADDR_ID_ENABLED ( 1 )
-
- #define MB_FUNC_SET_ADDR_SERIAL_ENABLED ( 1 )
-
- #ifdef __cplusplus
- PR_END_EXTERN_C
- #endif
- #endif
|