Lines Matching refs:tx_pos
114 uint8_t tx_pos = 0; in multicast_package_callback() local
122 if (sizeof(tx_buf) - tx_pos < MAX_MULTICAST_ANS_LEN) { in multicast_package_callback()
129 tx_buf[tx_pos++] = MULTICAST_CMD_PKG_VERSION; in multicast_package_callback()
130 tx_buf[tx_pos++] = LORAWAN_PACKAGE_ID_REMOTE_MULTICAST_SETUP; in multicast_package_callback()
131 tx_buf[tx_pos++] = MULTICAST_PACKAGE_VERSION; in multicast_package_callback()
164 tx_buf[tx_pos++] = MULTICAST_CMD_MC_GROUP_SETUP; in multicast_package_callback()
166 tx_buf[tx_pos++] = id; in multicast_package_callback()
169 tx_buf[tx_pos++] = (1U << 2) | id; in multicast_package_callback()
183 tx_buf[tx_pos++] = MULTICAST_CMD_MC_GROUP_DELETE; in multicast_package_callback()
185 tx_buf[tx_pos++] = id; in multicast_package_callback()
188 tx_buf[tx_pos++] = (1U << 2) | id; in multicast_package_callback()
221 tx_buf[tx_pos++] = MULTICAST_CMD_MC_CLASS_C_SESSION; in multicast_package_callback()
228 tx_buf[tx_pos++] = status; in multicast_package_callback()
229 sys_put_le24(time_to_start, tx_buf + tx_pos); in multicast_package_callback()
230 tx_pos += 3; in multicast_package_callback()
235 tx_buf[tx_pos++] = (1U << 5) | status; in multicast_package_callback()
241 tx_buf[tx_pos++] = (1U << 4) | status; in multicast_package_callback()
244 tx_buf[tx_pos++] = (3U << 2) | status; in multicast_package_callback()
258 if (tx_pos > 0) { in multicast_package_callback()
262 lorawan_services_schedule_uplink(LORAWAN_PORT_MULTICAST_SETUP, tx_buf, tx_pos, in multicast_package_callback()