Lines Matching refs:header_ptr
281 #define HIL_IDD_AXIS_COUNTS_PER_M(header_ptr) \ argument
282 (!(HIL_IDD_NUM_AXSETS(*(header_ptr))) ? -1 : \
283 (((*(header_ptr + 1) & HIL_PKT_DATA_MASK) + \
284 ((*(header_ptr + 2) & HIL_PKT_DATA_MASK)) << 8) \
285 * ((*(header_ptr) & HIL_IDD_HEADER_16BIT) ? 100 : 1)))
287 #define HIL_IDD_AXIS_MAX(header_ptr, __axnum) \ argument
288 ((!(*(header_ptr) & HIL_IDD_HEADER_ABS) || \
289 (HIL_IDD_NUM_AXES_PER_SET(*(header_ptr)) <= __axnum)) ? 0 : \
290 ((HIL_PKT_DATA_MASK & *((header_ptr) + 3 + 2 * __axnum)) + \
291 ((HIL_PKT_DATA_MASK & *((header_ptr) + 4 + 2 * __axnum)) << 8)))
293 #define HIL_IDD_IOD(header_ptr) \ argument
294 (*(header_ptr + HIL_IDD_LEN((*header_ptr)) - 1))
296 #define HIL_IDD_HAS_GEN_PROMPT(header_ptr) \ argument
297 ((*header_ptr & HIL_IDD_HEADER_IOD) && \
298 (HIL_IDD_IOD(header_ptr) & HIL_IDD_IOD_PROMPT))
300 #define HIL_IDD_HAS_GEN_PROXIMITY(header_ptr) \ argument
301 ((*header_ptr & HIL_IDD_HEADER_IOD) && \
302 (HIL_IDD_IOD(header_ptr) & HIL_IDD_IOD_PROXIMITY))
304 #define HIL_IDD_NUM_BUTTONS(header_ptr) \ argument
305 ((*header_ptr & HIL_IDD_HEADER_IOD) ? \
306 (HIL_IDD_IOD(header_ptr) & HIL_IDD_IOD_NBUTTON_MASK) : 0)
308 #define HIL_IDD_NUM_PROMPTS(header_ptr) \ argument
309 ((*header_ptr & HIL_IDD_HEADER_IOD) ? \
310 ((HIL_IDD_IOD(header_ptr) & HIL_IDD_IOD_NPROMPT_MASK) \
322 #define HIL_EXD_NUM_RRG(header_ptr) \ argument
323 ((*header_ptr & HIL_EXD_HEADER_RRG) ? \
324 (*(header_ptr + 1) & HIL_PKT_DATA_MASK) : 0)
326 #define HIL_EXD_NUM_WWG(header_ptr) \ argument
327 ((*header_ptr & HIL_EXD_HEADER_WRG) ? \
328 (*(header_ptr + 2 - !(*header_ptr & HIL_EXD_HEADER_RRG)) & \
331 #define HIL_EXD_LEN(header_ptr) \ argument
332 (!!(*header_ptr & HIL_EXD_HEADER_RRG) + \
333 !!(*header_ptr & HIL_EXD_HEADER_WRG) + \
334 !!(*header_ptr & HIL_EXD_HEADER_LOCALE) + \
335 2 * !!(*header_ptr & HIL_EXD_HEADER_WRG_TYPE2) + 1)
337 #define HIL_EXD_LOCALE(header_ptr) \ argument
338 (!(*header_ptr & HIL_EXD_HEADER_LOCALE) ? -1 : \
339 (*(header_ptr + HIL_EXD_LEN(header_ptr) - 1) & HIL_PKT_DATA_MASK))
341 #define HIL_EXD_WRG_TYPE2_LEN(header_ptr) \ argument
342 (!(*header_ptr & HIL_EXD_HEADER_WRG_TYPE2) ? -1 : \
343 (*(header_ptr + HIL_EXD_LEN(header_ptr) - 2 - \
344 !!(*header_ptr & HIL_EXD_HEADER_LOCALE)) & HIL_PKT_DATA_MASK) + \
345 ((*(header_ptr + HIL_EXD_LEN(header_ptr) - 1 - \
346 !!(*header_ptr & HIL_EXD_HEADER_LOCALE)) & HIL_PKT_DATA_MASK) << 8))