|
Wirepas SDK
|
|
Go to the documentation of this file.
7 #ifndef FUNCTION_CODES_H__
8 #define FUNCTION_CODES_H__
148 #define DSAP_REQUESTS \
150 WAPS_FUNC_DSAP_DATA_TX_REQ, \
151 WAPS_FUNC_DSAP_DATA_TX_TT_REQ, \
152 WAPS_FUNC_DSAP_DATA_TX_FRAG_REQ, \
155 #define MSAP_REQUESTS \
157 WAPS_FUNC_MSAP_INDICATION_POLL_REQ, \
158 WAPS_FUNC_MSAP_STACK_START_REQ, \
159 WAPS_FUNC_MSAP_STACK_STOP_REQ, \
160 WAPS_FUNC_MSAP_ATTR_WRITE_REQ, \
161 WAPS_FUNC_MSAP_ATTR_READ_REQ, \
162 WAPS_FUNC_MSAP_SCRATCHPAD_START_REQ, \
163 WAPS_FUNC_MSAP_SCRATCHPAD_BLOCK_REQ, \
164 WAPS_FUNC_MSAP_SCRATCHPAD_STATUS_REQ, \
165 WAPS_FUNC_MSAP_SCRATCHPAD_BOOTABLE_REQ, \
166 WAPS_FUNC_MSAP_SCRATCHPAD_CLEAR_REQ, \
167 WAPS_FUNC_MSAP_REMOTE_STATUS_REQ, \
168 WAPS_FUNC_MSAP_REMOTE_UPDATE_REQ, \
169 WAPS_FUNC_MSAP_GET_NBORS_REQ, \
170 WAPS_FUNC_MSAP_SCAN_NBORS_REQ, \
171 WAPS_FUNC_MSAP_GET_INSTALL_QUALITY_REQ, \
172 WAPS_FUNC_MSAP_SINK_COST_WRITE_REQ, \
173 WAPS_FUNC_MSAP_SINK_COST_READ_REQ, \
174 WAPS_FUNC_MSAP_APP_CONFIG_WRITE_REQ, \
175 WAPS_FUNC_MSAP_APP_CONFIG_READ_REQ, \
176 WAPS_FUNC_MSAP_STACK_SLEEP_REQ, \
177 WAPS_FUNC_MSAP_STACK_SLEEP_STOP_REQ, \
178 WAPS_FUNC_MSAP_STACK_SLEEP_STATE_GET_REQ, \
179 WAPS_FUNC_MSAP_STACK_SLEEP_GOTOSLEEPINFO_REQ, \
180 WAPS_FUNC_MSAP_MAX_MSG_QUEUEING_TIME_WRITE_REQ, \
181 WAPS_FUNC_MSAP_MAX_MSG_QUEUEING_TIME_READ_REQ, \
182 WAPS_FUNC_MSAP_SCRATCHPAD_TARGET_READ_REQ, \
183 WAPS_FUNC_MSAP_SCRATCHPAD_TARGET_WRITE_REQ, \
184 WAPS_FUNC_MSAP_SCRATCHPAD_BLOCK_READ_REQ \
187 #define CSAP_REQUESTS \
189 WAPS_FUNC_CSAP_ATTR_WRITE_REQ, \
190 WAPS_FUNC_CSAP_ATTR_READ_REQ, \
191 WAPS_FUNC_CSAP_FACTORY_RESET_REQ, \
194 #define WAPS_CONFIRMATIONS \
196 WAPS_FUNC_DSAP_DATA_TX_CNF, \
197 WAPS_FUNC_DSAP_DATA_TX_FRAG_CNF, \
198 WAPS_FUNC_MSAP_INDICATION_POLL_CNF, \
199 WAPS_FUNC_MSAP_STACK_START_CNF, \
200 WAPS_FUNC_MSAP_STACK_STOP_CNF, \
201 WAPS_FUNC_MSAP_APP_CONFIG_WRITE_CNF, \
202 WAPS_FUNC_MSAP_APP_CONFIG_READ_CNF, \
203 WAPS_FUNC_MSAP_ATTR_WRITE_CNF, \
204 WAPS_FUNC_MSAP_ATTR_READ_CNF, \
205 WAPS_FUNC_MSAP_GET_NBORS_CNF, \
206 WAPS_FUNC_MSAP_SCAN_NBORS_CNF, \
207 WAPS_FUNC_MSAP_GET_INSTALL_QUALITY_CNF, \
208 WAPS_FUNC_MSAP_SINK_COST_WRITE_CNF, \
209 WAPS_FUNC_MSAP_SINK_COST_READ_CNF, \
210 WAPS_FUNC_CSAP_ATTR_WRITE_CNF, \
211 WAPS_FUNC_CSAP_ATTR_READ_CNF, \
212 WAPS_FUNC_CSAP_FACTORY_RESET_CNF, \
213 WAPS_FUNC_MSAP_SCRATCHPAD_START_CNF, \
214 WAPS_FUNC_MSAP_SCRATCHPAD_BLOCK_CNF, \
215 WAPS_FUNC_MSAP_SCRATCHPAD_STATUS_CNF, \
216 WAPS_FUNC_MSAP_SCRATCHPAD_BOOTABLE_CNF, \
217 WAPS_FUNC_MSAP_SCRATCHPAD_CLEAR_CNF, \
218 WAPS_FUNC_MSAP_REMOTE_STATUS_CNF, \
219 WAPS_FUNC_MSAP_REMOTE_UPDATE_CNF, \
220 WAPS_FUNC_DSAP_DATA_TX_TT_CNF, \
221 WAPS_FUNC_MSAP_APP_CONFIG_WRITE_CNF, \
222 WAPS_FUNC_MSAP_APP_CONFIG_READ_CNF, \
223 WAPS_FUNC_MSAP_STACK_SLEEP_REQ_CNF, \
224 WAPS_FUNC_MSAP_STACK_SLEEP_STOP_CNF, \
225 WAPS_FUNC_MSAP_MAX_MSG_QUEUEING_TIME_WRITE_CNF, \
226 WAPS_FUNC_MSAP_MAX_MSG_QUEUEING_TIME_READ_CNF, \
227 WAPS_FUNC_MSAP_SCRATCHPAD_TARGET_READ_CNF, \
228 WAPS_FUNC_MSAP_SCRATCHPAD_TARGET_WRITE_CNF, \
229 WAPS_FUNC_MSAP_SCRATCHPAD_BLOCK_READ_CNF, \
232 #define WAPS_INDICATIONS \
234 WAPS_FUNC_DSAP_DATA_TX_IND, \
235 WAPS_FUNC_DSAP_DATA_RX_FRAG_IND, \
236 WAPS_FUNC_DSAP_DATA_RX_IND, \
237 WAPS_FUNC_MSAP_STACK_STATE_IND, \
238 WAPS_FUNC_MSAP_APP_CONFIG_RX_IND, \
239 WAPS_FUNC_MSAP_REMOTE_STATUS_IND, \
240 WAPS_FUNC_MSAP_SCAN_NBORS_IND, \
243 #define WAPS_RESPONSES \
245 WAPS_FUNC_DSAP_DATA_TX_RSP, \
246 WAPS_FUNC_DSAP_DATA_RX_FRAG_RSP, \
247 WAPS_FUNC_DSAP_DATA_RX_RSP, \
248 WAPS_FUNC_MSAP_STACK_STATE_RSP, \
249 WAPS_FUNC_MSAP_APP_CONFIG_RX_RSP, \
250 WAPS_FUNC_MSAP_REMOTE_STATUS_RSP, \
251 WAPS_FUNC_MSAP_SCAN_NBORS_RSP, \
252 WAPS_FUNC_MSAP_STACK_SLEEP_STATE_GET_RSP, \
253 WAPS_FUNC_MSAP_STACK_SLEEP_GOTOSLEEPINFO_RSP, \
@ WAPS_FUNC_MSAP_SCRATCHPAD_TARGET_WRITE_REQ
@ WAPS_FUNC_DSAP_DATA_TX_CNF
@ WAPS_FUNC_DSAP_DATA_RX_FRAG_IND
@ WAPS_FUNC_MSAP_APP_CONFIG_READ_CNF
@ WAPS_FUNC_DSAP_DATA_TX_FRAG_REQ
@ WAPS_FUNC_RESERVED_REMOTE_API_4_REQ
@ WAPS_FUNC_DSAP_DATA_TX_REQ
@ WAPS_FUNC_MSAP_STACK_SLEEP_STATE_GET_RSP
@ WAPS_FUNC_MSAP_MAX_MSG_QUEUEING_TIME_READ_REQ
@ WAPS_FUNC_MSAP_SCAN_NBORS_REQ
@ WAPS_FUNC_MSAP_SCRATCHPAD_CLEAR_REQ
@ WAPS_FUNC_MSAP_MAX_MSG_QUEUEING_TIME_WRITE_REQ
@ WAPS_FUNC_MSAP_SCAN_NBORS_IND
@ WAPS_FUNC_MSAP_APP_CONFIG_WRITE_REQ
@ WAPS_FUNC_MSAP_STACK_SLEEP_STATE_GET_REQ
@ WAPS_FUNC_MSAP_ATTR_WRITE_REQ
@ WAPS_FUNC_MSAP_MAX_MSG_QUEUEING_TIME_WRITE_CNF
@ WAPS_FUNC_MSAP_STACK_SLEEP_STOP_CNF
bool WapsFunc_isConfirmation(uint8_t func)
Check if given func code is a confirmation.
@ WAPS_FUNC_MSAP_SCRATCHPAD_CLEAR_CNF
@ WAPS_FUNC_MSAP_STACK_SLEEP_GOTOSLEEPINFO_RSP
@ WAPS_FUNC_MSAP_STACK_STOP_CNF
@ WAPS_FUNC_RESERVED_REMOTE_API_1_REQ
bool WapsFunc_isMsapRequest(uint8_t func)
Check if given func code is a MSAP request.
@ WAPS_FUNC_MSAP_SCRATCHPAD_STATUS_CNF
@ WAPS_FUNC_DSAP_DATA_TX_RSP
@ WAPS_FUNC_DSAP_DATA_R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VED_REMOTE_API_1_CNF
@ WAPS_FUNC_MSAP_INDICATION_POLL_CNF
@ WAPS_FUNC_MSAP_SCRATCHPAD_START_CNF
@ WAPS_FUNC_MSAP_ATTR_READ_CNF
bool WapsFunc_isDsapRequest(uint8_t func)
Check if given func code is a DSAP request.
bool WapsFunc_isResponse(uint8_t func)
Check if given func code is a response.
@ WAPS_FUNC_MSAP_SINK_COST_READ_REQ
bool WapsFunc_isIndication(uint8_t func)
Check if given func code is an indication.
@ WAPS_FUNC_RESERVED_REMOTE_API_2_REQ
@ WAPS_FUNC_MSAP_SCRATCHPAD_BOOTABLE_REQ
@ WAPS_FUNC_MSAP_STACK_SLEEP_STOP_REQ
@ WAPS_FUNC_MSAP_STACK_START_CNF
@ WAPS_FUNC_MSAP_REMOTE_STATUS_REQ
@ WAPS_FUNC_MSAP_REMOTE_STATUS_RSP
@ WAPS_FUNC_MSAP_GET_INSTALL_QUALITY_REQ
@ WAPS_FUNC_MSAP_SINK_COST_WRITE_CNF
@ WAPS_FUNC_CSAP_ATTR_READ_CNF
@ WAPS_FUNC_CSAP_FACTORY_RESET_REQ
bool WapsFunc_isCsapRequest(uint8_t func)
Check if given func code is a CSAP request.
@ WAPS_FUNC_MSAP_INDICATION_POLL_REQ
@ WAPS_FUNC_RESERVED_REMOTE_API_2_CNF
@ WAPS_FUNC_MSAP_STACK_STATE_RSP
@ WAPS_FUNC_RESERVED_REMOTE_API_3_CNF
@ WAPS_FUNC_MSAP_SCRATCHPAD_TARGET_READ_CNF
@ WAPS_FUNC_MSAP_SINK_COST_READ_CNF
@ WAPS_FUNC_MSAP_ATTR_WRITE_CNF
@ WAPS_FUNC_DSAP_DATA_TX_TT_REQ
@ WAPS_FUNC_DSAP_DATA_RX_FRAG_RSP
@ WAPS_FUNC_MSAP_SCRATCHPAD_BLOCK_REQ
@ WAPS_FUNC_MSAP_SINK_COST_WRITE_REQ
@ WAPS_FUNC_RESERVED_REMOTE_API_4_CNF
@ WAPS_FUNC_RESERVED_REMOTE_API_3_REQ
@ WAPS_FUNC_MSAP_SCAN_NBORS_CNF
@ WAPS_FUNC_MSAP_ATTR_READ_REQ
@ WAPS_FUNC_MSAP_GET_INSTALL_QUALITY_CNF
@ WAPS_FUNC_CSAP_ATTR_WRITE_CNF
@ WAPS_FUNC_MSAP_SCRATCHPAD_BOOTABLE_CNF
@ WAPS_FUNC_MSAP_REMOTE_STATUS_IND
@ WAPS_FUNC_CSAP_ATTR_READ_REQ
bool WapsFunc_isRequest(uint8_t func)
Check if given func code is a request.