COS_ENABLE_BOTH
const unsigned int type_mask = COS_ENABLE_BOTH << index;
const unsigned int mask = COS_ENABLE_BOTH << offset;