Home
last modified time | relevance | path

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

/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/
Dport_tcp_master.c80 static MbPortConfig_t xMbPortConfig; variable
108 xMbPortConfig.pxMbSlaveInfo = calloc(MB_TCP_PORT_MAX_CONN, sizeof(MbSlaveInfo_t*)); in xMBMasterTCPPortInit()
109 if (!xMbPortConfig.pxMbSlaveInfo) { in xMBMasterTCPPortInit()
113 for(int idx = 0; idx < MB_TCP_PORT_MAX_CONN; xMbPortConfig.pxMbSlaveInfo[idx] = NULL, idx++); in xMBMasterTCPPortInit()
115 xMbPortConfig.xConnectQueue = NULL; in xMBMasterTCPPortInit()
116 xMbPortConfig.usPort = usTCPPort; in xMBMasterTCPPortInit()
117 xMbPortConfig.usMbSlaveInfoCount = 0; in xMBMasterTCPPortInit()
118 xMbPortConfig.ucCurSlaveIndex = 1; in xMBMasterTCPPortInit()
119 xMbPortConfig.pxMbSlaveCurrInfo = NULL; in xMBMasterTCPPortInit()
121 xMbPortConfig.xConnectQueue = xQueueCreate(2, sizeof(MbSlaveAddrInfo_t)); in xMBMasterTCPPortInit()
[all …]