Home
last modified time | relevance | path

Searched refs:mbs_opts (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/tcp_slave/modbus_controller/
Dmbc_tcp_slave.c41 mb_slave_options_t* mbs_opts = &mbs_interface_ptr->opts; in modbus_tcp_slave_task() local
45 BaseType_t status = xEventGroupWaitBits(mbs_opts->mbs_event_group, in modbus_tcp_slave_task()
61 mb_slave_options_t* mbs_opts = &mbs_interface_ptr->opts; in mbc_tcp_slave_setup() local
72 mbs_opts->mbs_comm = *comm_settings; in mbc_tcp_slave_setup()
80 mb_slave_options_t* mbs_opts = &mbs_interface_ptr->opts; in mbc_tcp_slave_start() local
84 status = eMBTCPInit((USHORT)mbs_opts->mbs_comm.ip_port); in mbc_tcp_slave_start()
88 eMBPortProto proto = (mbs_opts->mbs_comm.ip_mode == MB_MODE_TCP) ? MB_PROTO_TCP : MB_PROTO_UDP; in mbc_tcp_slave_start()
89 … eMBPortIpVer ip_ver = (mbs_opts->mbs_comm.ip_addr_type == MB_IPV4) ? MB_PORT_IPV4 : MB_PORT_IPV6; in mbc_tcp_slave_start()
90 …vMBTCPPortSlaveSetNetOpt(mbs_opts->mbs_comm.ip_netif_ptr, ip_ver, proto, (char*)mbs_opts->mbs_comm… in mbc_tcp_slave_start()
96 EventBits_t flag = xEventGroupSetBits(mbs_opts->mbs_event_group, in mbc_tcp_slave_start()
[all …]
/hal_espressif-3.6.0/components/freemodbus/serial_slave/modbus_controller/
Dmbc_serial_slave.c39 mb_slave_options_t* mbs_opts = &mbs_interface_ptr->opts; in modbus_slave_task() local
41 MB_SLAVE_ASSERT(mbs_opts != NULL); in modbus_slave_task()
44 BaseType_t status = xEventGroupWaitBits(mbs_opts->mbs_event_group, in modbus_slave_task()
69 mb_slave_options_t* mbs_opts = &mbs_interface_ptr->opts; in mbc_serial_slave_setup() local
83 mbs_opts->mbs_comm = *(mb_communication_info_t*)comm_settings; in mbc_serial_slave_setup()
93 mb_slave_options_t* mbs_opts = &mbs_interface_ptr->opts; in mbc_serial_slave_start() local
95 const mb_communication_info_t* comm_info = (mb_communication_info_t*)&mbs_opts->mbs_comm; in mbc_serial_slave_start()
110 EventBits_t flag = xEventGroupSetBits(mbs_opts->mbs_event_group, in mbc_serial_slave_start()
123 mb_slave_options_t* mbs_opts = &mbs_interface_ptr->opts; in mbc_serial_slave_check_event() local
124 MB_SLAVE_ASSERT(mbs_opts->mbs_event_group != NULL); in mbc_serial_slave_check_event()
[all …]
/hal_espressif-3.6.0/components/freemodbus/common/
Desp_modbus_slave.c54 mb_slave_options_t* mbs_opts = &slave_interface_ptr->opts; in mbc_slave_find_reg_descriptor() local
56 if (LIST_EMPTY(&mbs_opts->mbs_area_descriptors[type])) { in mbc_slave_find_reg_descriptor()
61 …for (it = LIST_FIRST(&mbs_opts->mbs_area_descriptors[type]); it != NULL; it = LIST_NEXT(it, entrie… in mbc_slave_find_reg_descriptor()
77 mb_slave_options_t* mbs_opts = &slave_interface_ptr->opts; in mbc_slave_free_descriptors() local
80 …for (it = LIST_FIRST(&mbs_opts->mbs_area_descriptors[descr_type]); it != NULL; it = LIST_NEXT(it, … in mbc_slave_free_descriptors()
90 mb_slave_options_t* mbs_opts = &slave_interface_ptr->opts; in mbc_slave_init_iface() local
92 LIST_INIT(&mbs_opts->mbs_area_descriptors[MB_PARAM_INPUT]); in mbc_slave_init_iface()
93 LIST_INIT(&mbs_opts->mbs_area_descriptors[MB_PARAM_HOLDING]); in mbc_slave_init_iface()
94 LIST_INIT(&mbs_opts->mbs_area_descriptors[MB_PARAM_COIL]); in mbc_slave_init_iface()
95 LIST_INIT(&mbs_opts->mbs_area_descriptors[MB_PARAM_DISCRETE]); in mbc_slave_init_iface()
[all …]