typedef struct DataEnding
{//串口通讯
uint32_t CrcValue;
uint16_t Mark;
}RxTxDataEndingType;
在求 sizeof(RxTxDataEndingType)时显示的是4 求对齐指令使sizeof(RxTxDataEndingType)时显示的是3
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
typedef struct DataEnding
{//串口通讯
uint32_t CrcValue;
uint16_t Mark;
}RxTxDataEndingType;
在求 sizeof(RxTxDataEndingType)时显示的是4 求对齐指令使sizeof(RxTxDataEndingType)时显示的是3