Home
last modified time | relevance | path

Searched refs:MB_SLAVE_CHECK (Results 1 – 4 of 4) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/serial_slave/modbus_controller/
Dmbc_serial_slave.c64 MB_SLAVE_CHECK((mbs_interface_ptr != NULL), in mbc_serial_slave_setup()
67 MB_SLAVE_CHECK((comm_info != NULL), ESP_ERR_INVALID_ARG, in mbc_serial_slave_setup()
71 MB_SLAVE_CHECK(((comm_settings->mode == MB_MODE_RTU) || (comm_settings->mode == MB_MODE_ASCII)), in mbc_serial_slave_setup()
74 MB_SLAVE_CHECK((comm_settings->slave_addr <= MB_ADDRESS_MAX), in mbc_serial_slave_setup()
77 MB_SLAVE_CHECK((comm_settings->port < UART_NUM_MAX), ESP_ERR_INVALID_ARG, in mbc_serial_slave_setup()
79 MB_SLAVE_CHECK((comm_settings->parity <= UART_PARITY_ODD), ESP_ERR_INVALID_ARG, in mbc_serial_slave_setup()
90 MB_SLAVE_CHECK((mbs_interface_ptr != NULL), in mbc_serial_slave_start()
104 MB_SLAVE_CHECK((status == MB_ENOERR), ESP_ERR_INVALID_STATE, in mbc_serial_slave_start()
107 MB_SLAVE_CHECK((status == MB_ENOERR), ESP_ERR_INVALID_STATE, in mbc_serial_slave_start()
112 MB_SLAVE_CHECK((flag & MB_EVENT_STACK_STARTED), in mbc_serial_slave_start()
[all …]
/hal_espressif-3.6.0/components/freemodbus/common/
Desp_modbus_slave.c105 MB_SLAVE_CHECK((slave_interface_ptr != NULL), in mbc_slave_destroy()
109 MB_SLAVE_CHECK((slave_interface_ptr->destroy != NULL), in mbc_slave_destroy()
114 MB_SLAVE_CHECK((error == ESP_OK), in mbc_slave_destroy()
131 MB_SLAVE_CHECK((slave_interface_ptr != NULL), in mbc_slave_setup()
134 MB_SLAVE_CHECK((slave_interface_ptr->setup != NULL), in mbc_slave_setup()
138 MB_SLAVE_CHECK((error == ESP_OK), in mbc_slave_setup()
151 MB_SLAVE_CHECK((slave_interface_ptr != NULL), in mbc_slave_start()
154 MB_SLAVE_CHECK((slave_interface_ptr->start != NULL), in mbc_slave_start()
160 MB_SLAVE_CHECK((status == MB_ENOERR), ESP_ERR_INVALID_STATE, "mb stack set slave ID failure."); in mbc_slave_start()
163 MB_SLAVE_CHECK((error == ESP_OK), in mbc_slave_start()
[all …]
/hal_espressif-3.6.0/components/freemodbus/tcp_slave/modbus_controller/
Dmbc_tcp_slave.c62 MB_SLAVE_CHECK((comm_info != NULL), ESP_ERR_INVALID_ARG, in mbc_tcp_slave_setup()
65 MB_SLAVE_CHECK((comm_settings->ip_mode == MB_MODE_TCP), in mbc_tcp_slave_setup()
67MB_SLAVE_CHECK(((comm_settings->ip_addr_type == MB_IPV4) || (comm_settings->ip_addr_type == MB_IPV… in mbc_tcp_slave_setup()
69 MB_SLAVE_CHECK((comm_settings->ip_netif_ptr != NULL), in mbc_tcp_slave_setup()
85 MB_SLAVE_CHECK((status == MB_ENOERR), ESP_ERR_INVALID_STATE, in mbc_tcp_slave_start()
93 MB_SLAVE_CHECK((status == MB_ENOERR), ESP_ERR_INVALID_STATE, in mbc_tcp_slave_start()
98 MB_SLAVE_CHECK((flag & MB_EVENT_STACK_STARTED), in mbc_tcp_slave_start()
112 MB_SLAVE_CHECK((flag & MB_EVENT_STACK_STARTED), in mbc_tcp_slave_destroy()
116 MB_SLAVE_CHECK((mb_error == MB_ENOERR), ESP_ERR_INVALID_STATE, "mb stack disable failure."); in mbc_tcp_slave_destroy()
143 MB_SLAVE_CHECK((mbs_opts->mbs_notification_queue_handle != NULL), in mbc_tcp_slave_get_param_info()
[all …]
/hal_espressif-3.6.0/components/freemodbus/common/include/
Desp_modbus_slave.h31 #define MB_SLAVE_CHECK(a, err_code, format, ...) MB_RETURN_ON_FALSE(a, err_code, TAG, format __VA_O… macro