可以参考下述代码
HCU_DRV_GenerateMAC(plainText, 64, MSG_ALL, &cmacConfig);
while(hcuState.cmdInProgress);
HCU_DRV_GenerateMAC(plainText + 0, 16, MSG_START, &cmacConfig);
while(hcuState.cmdInProgress);
HCU_DRV_GenerateMAC(plainText + 4, 16, MSG_MIDDLE, &cmacConfig);
while(hcuState.cmdInProgress);
HCU_DRV_GenerateMAC(plainText + 8, 16, MSG_MIDDLE, &cmacConfig);
while(hcuState.cmdInProgress);
HCU_DRV_GenerateMAC(plainText +12, 16, MSG_END, &cmacConfig);
while(hcuState.cmdInProgress);