CMD_TYPE_SHIFT
return (msg->cmd & CMD_TYPE_MASK) << CMD_TYPE_SHIFT |
msg->cmd = (value >> CMD_TYPE_SHIFT) & CMD_TYPE_MASK;