#ifndef LBOOT_MBRTU_H
#define LBOOT_MBRTU_H

#include "lboot.h"



#define LBOOT_OPT_MB_PORT       0x12000
#define LBOOT_OPT_MB_ADDR       0x12001
#define LBOOT_OPT_MB_BR         0x12002
#define LBOOT_OPT_MB_PARITY     0x12003
#define LBOOT_OPT_MB_TOUT       0x12004
#define LBOOT_OPT_MB_SIGN_TOUT  0x12005
#define LBOOT_OPT_MB_RETRY_CNT  0x12006

/** опции для задания параметров соединения по пртротоколу modbus rtu */
#define LBOOT_MBRTU_OPTIONS  {"mb-port",    required_argument,   0, LBOOT_OPT_MB_PORT}, \
                             {"mb-addr",    required_argument,   0, LBOOT_OPT_MB_ADDR}, \
                             {"mb-baudrate", required_argument,  0, LBOOT_OPT_MB_BR}, \
                             {"mb-parity",    required_argument, 0, LBOOT_OPT_MB_PARITY}, \
                             {"mb-tout",    required_argument, 0, LBOOT_OPT_MB_TOUT}, \
                             {"mb-sign-tout",    required_argument, 0, LBOOT_OPT_MB_SIGN_TOUT}, \
                             {"mb-retry-cnt",    required_argument, 0, LBOOT_OPT_MB_RETRY_CNT},

#define LBOOT_MBRTU_BOOT_IFACES   &g_mbrtu_intf_info,
#define LBOOT_MBRTU_APP_IFACES


extern const t_boot_iface g_mbrtu_intf_info;




#endif // LBOOT_MBRTU_H
