/* Starts final checksum computation. 
Configures the CRC module for the specified CRC protocol.  */
static void CRC_SetProtocolConfig(CRC_Type *base, const crc_config_t *protocolConfig)
/* Starts final checksum computation. 
Configures the CRC module for the specified CRC protocol.  */
static void CRC_SetProtocolConfig(CRC_Type *base, const crc_config_t *protocolConfig)
{
    crc_module_config_t moduleConfig;
    moduleConfig.polynomial         = protocolConfig->polynomial;
    moduleConfig.seed               = protocolConfig->seed;
    moduleConfig.readTranspose      = CRC_GetTransposeTypeFromReflectOut(protocolConfig->reflectOut);
    moduleConfig.writeTranspose     = CRC_GetTransposeTypeFromReflectIn(protocolConfig->reflectIn);
    moduleConfig.complementChecksum = protocolConfig->complementChecksum;
    moduleConfig.crcBits            = protocolConfig->crcBits;
    CRC_ConfigureAndStart(base, &moduleConfig);
}