Searched refs:comm_info_ptr (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.6.0/components/freemodbus/serial_master/modbus_controller/ |
D | mbc_serial_master.c | 80 const mb_master_comm_info_t* comm_info_ptr = (mb_master_comm_info_t*)comm_info; in mbc_serial_master_setup() local 82 … MB_MASTER_CHECK(((comm_info_ptr->mode == MB_MODE_RTU) || (comm_info_ptr->mode == MB_MODE_ASCII)), in mbc_serial_master_setup() 84 (uint32_t)comm_info_ptr->mode); in mbc_serial_master_setup() 85 MB_MASTER_CHECK((comm_info_ptr->port <= UART_NUM_MAX), ESP_ERR_INVALID_ARG, in mbc_serial_master_setup() 86 "mb wrong port to set = (0x%x).", (uint32_t)comm_info_ptr->port); in mbc_serial_master_setup() 87 MB_MASTER_CHECK((comm_info_ptr->parity <= UART_PARITY_ODD), ESP_ERR_INVALID_ARG, in mbc_serial_master_setup() 88 "mb wrong parity option = (0x%x).", (uint32_t)comm_info_ptr->parity); in mbc_serial_master_setup() 90 mbm_opts->mbm_comm = *(mb_communication_info_t*)comm_info_ptr; in mbc_serial_master_setup()
|
/hal_espressif-3.6.0/components/freemodbus/tcp_master/modbus_controller/ |
D | mbc_tcp_master.c | 129 const mb_communication_info_t* comm_info_ptr = (mb_communication_info_t*)comm_info; in mbc_tcp_master_setup() local 131 MB_MASTER_CHECK((comm_info_ptr->ip_mode == MB_MODE_TCP), in mbc_tcp_master_setup() 133 (uint32_t)comm_info_ptr->ip_mode); in mbc_tcp_master_setup() 134 MB_MASTER_CHECK((comm_info_ptr->ip_addr != NULL), in mbc_tcp_master_setup() 136 …MB_MASTER_CHECK(((comm_info_ptr->ip_addr_type == MB_IPV4) || (comm_info_ptr->ip_addr_type == MB_IP… in mbc_tcp_master_setup() 137 … ESP_ERR_INVALID_ARG, "mb incorrect addr type = (0x%x).", (uint8_t)comm_info_ptr->ip_addr_type); in mbc_tcp_master_setup() 138 MB_MASTER_CHECK((comm_info_ptr->ip_netif_ptr != NULL), in mbc_tcp_master_setup() 141 mbm_opts->mbm_comm = *(mb_communication_info_t*)comm_info_ptr; in mbc_tcp_master_setup()
|