Home
last modified time | relevance | path

Searched refs:xErr (Results 1 – 6 of 6) sorted by relevance

/hal_espressif-3.4.0/components/freemodbus/port/
Dporttimer_m.c80 esp_err_t xErr; in xMBMasterPortTimersInit() local
90 xErr = timer_init(usTimerGroupIndex, usTimerIndex, &config); in xMBMasterPortTimersInit()
91 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersInit()
92 "timer init failure, timer_init() returned (0x%x).", (uint32_t)xErr); in xMBMasterPortTimersInit()
94 xErr = timer_pause(usTimerGroupIndex, usTimerIndex); in xMBMasterPortTimersInit()
95 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersInit()
96 "stop timer failure, timer_pause() returned (0x%x).", (uint32_t)xErr); in xMBMasterPortTimersInit()
98 xErr = timer_set_counter_value(usTimerGroupIndex, usTimerIndex, 0x00000000ULL); in xMBMasterPortTimersInit()
99 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersInit()
101 (uint32_t)xErr); in xMBMasterPortTimersInit()
[all …]
Dporttimer.c86 esp_err_t xErr; in xMBPortTimersInit() local
96 xErr = timer_init(usTimerGroupIndex, usTimerIndex, &config); in xMBPortTimersInit()
97 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortTimersInit()
98 "timer init failure, timer_init() returned (0x%x).", xErr); in xMBPortTimersInit()
100 xErr = timer_pause(usTimerGroupIndex, usTimerIndex); in xMBPortTimersInit()
101 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortTimersInit()
102 "stop timer failure, timer_pause() returned (0x%x).", xErr); in xMBPortTimersInit()
104 xErr = timer_set_counter_value(usTimerGroupIndex, usTimerIndex, 0x00000000ULL); in xMBPortTimersInit()
105 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortTimersInit()
106 "timer set value failure, timer_set_counter_value() returned (0x%x).", xErr); in xMBPortTimersInit()
[all …]
Dportserial.c185 esp_err_t xErr = ESP_OK; in xMBPortSerialInit() local
232 xErr = uart_param_config(ucUartNumber, &xUartConfig); in xMBPortSerialInit()
233 MB_PORT_CHECK((xErr == ESP_OK), in xMBPortSerialInit()
234 FALSE, "mb config failure, uart_param_config() returned (0x%x).", xErr); in xMBPortSerialInit()
236 xErr = uart_driver_install(ucUartNumber, MB_SERIAL_BUF_SIZE, MB_SERIAL_BUF_SIZE, in xMBPortSerialInit()
238 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortSerialInit()
239 "mb serial driver failure, uart_driver_install() returned (0x%x).", xErr); in xMBPortSerialInit()
242 xErr = uart_set_rx_timeout(ucUartNumber, MB_SERIAL_TOUT); in xMBPortSerialInit()
243 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortSerialInit()
244 "mb serial set rx timeout failure, uart_set_rx_timeout() returned (0x%x).", xErr); in xMBPortSerialInit()
Dportserial_m.c183 esp_err_t xErr = ESP_OK; in xMBMasterPortSerialInit() local
230 xErr = uart_param_config(ucUartNumber, &xUartConfig); in xMBMasterPortSerialInit()
231 MB_PORT_CHECK((xErr == ESP_OK), in xMBMasterPortSerialInit()
232 FALSE, "mb config failure, uart_param_config() returned (0x%x).", xErr); in xMBMasterPortSerialInit()
234 xErr = uart_driver_install(ucUartNumber, MB_SERIAL_BUF_SIZE, MB_SERIAL_BUF_SIZE, in xMBMasterPortSerialInit()
236 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortSerialInit()
237 "mb serial driver failure, uart_driver_install() returned (0x%x).", xErr); in xMBMasterPortSerialInit()
239 xErr = uart_set_rx_timeout(ucUartNumber, MB_SERIAL_TOUT); in xMBMasterPortSerialInit()
240 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortSerialInit()
241 "mb serial set rx timeout failure, uart_set_rx_timeout() returned (0x%x).", xErr); in xMBMasterPortSerialInit()
/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/
Dport_tcp_master.c130 BaseType_t xErr = xTaskCreatePinnedToCore(vMBTCPPortMasterTask, in xMBMasterTCPPortInit() local
137 if (xErr != pdTRUE) in xMBMasterTCPPortInit()
403 err_t xErr = -1; in xMBTCPPortMasterCheckAlive() local
413 xErr = select(pxInfo->xSockId + 1, NULL, &xWriteSet, &xErrorSet, &xTimeVal); in xMBTCPPortMasterCheckAlive()
414 if ((xErr < 0) || FD_ISSET(pxInfo->xSockId, &xErrorSet)) { in xMBTCPPortMasterCheckAlive()
416 xErr = ERR_INPROGRESS; in xMBTCPPortMasterCheckAlive()
419 … pxInfo->xIndex, pxInfo->xSockId, pxInfo->pcIpAddr, xErr, errno); in xMBTCPPortMasterCheckAlive()
420 xErr = ERR_CONN; in xMBTCPPortMasterCheckAlive()
422 } else if (xErr == 0) { in xMBTCPPortMasterCheckAlive()
424 pxInfo->xSockId, pxInfo->pcIpAddr, xErr, errno); in xMBTCPPortMasterCheckAlive()
[all …]
/hal_espressif-3.4.0/components/freemodbus/tcp_slave/port/
Dport_tcp_slave.c152 BaseType_t xErr = xTaskCreate(vMBTCPPortServerTask, in xMBTCPPortInit() local
159 if (xErr != pdTRUE) in xMBTCPPortInit()
427 int xErr = 0; in vMBTCPPortServerTask() local
464 xErr = select(xMaxSd + 1 , &xReadSet , NULL , NULL , NULL); in vMBTCPPortServerTask()
465 if ((xErr < 0) && (errno != EINTR)) { in vMBTCPPortServerTask()
474 } else if (xErr == 0) { in vMBTCPPortServerTask()
532 if (xErr > 0) { in vMBTCPPortServerTask()
539 xErr = xMBTCPPortRxPoll(pxClientInfo, MB_TCP_READ_TIMEOUT_MS); in vMBTCPPortServerTask()
542 if (xErr < 0) { in vMBTCPPortServerTask()
545 switch(xErr) in vMBTCPPortServerTask()
[all …]