typedef struct
{
int com_port;
META_COMM_BAUDRATE baudrate[12];
META_FLOWCTRL flowctrl;
FBOOT_META_ARG boot_meta_arg;
unsigned int ms_connect_timeout;
unsigned int usb_enable: 1;
unsigned int InMetaMode: 1;
unsigned int escape: 1;
unsigned int close_com_port: 1;
META_MODE_TRACE_PARA_T trace_para;
unsigned int channel_type: 4;
META_COMM_TRACE_PARA_T commTrace;
} Req;
usb_enable, InMetaMode, escape, close_com_port, protocol, channel_type
With the calculation of bitfields here, it needs to be translated.