/* param base CRC peripheral address. return An intermediate or the final 16-bit checksum, after configured transpose and complement operations.  */
uint16_t CRC_Get16bitResult(CRC_Type *base)
/* param base CRC peripheral address. return An intermediate or the final 16-bit checksum, after configured transpose and complement operations.  */
uint16_t CRC_Get16bitResult(CRC_Type *base)
{
    uint32_t retval;
    uint32_t totr;
    retval = base->DATA;
    totr   = (base->CTRL & CRC_CTRL_TOTR_MASK) >> CRC_CTRL_TOTR_SHIFT;
    if (totr >= 2U)
    {
        retval &= 0xFFFF0000U;
        retval = retval >> 16U;
    }
    else
    {
        retval &= 0x0000FFFFU;
    }
    return (uint16_t)retval;
}