Skip to content

BM_DATA_HEADER_EX macro reference

BMAPI 1.14.0.42 · bm_usb_def.h

#define BM_DATA_HEADER_EX(type, flags, dchn, schn, group) (((type) & 0x0FU) | (((flags) << 4U) & 0x10U) | (((dchn) << 8U) & 0x0F00U) | (((schn) << 12U) & 0xF000U) | (((group) << 5U) & 0xE0U))

Value:

(((type) & 0x0FU) | (((flags) << 4U) & 0x10U) | (((dchn) << 8U) & 0x0F00U) | (((schn) << 12U) & 0xF000U) | (((group) << 5U) & 0xE0U))

Source: BMAPI 1.14.0.42 released Doxygen documentation. The headers and help files bundled with an installed SDK define its version-specific contract.