/* Calculate the CRC value of a 16-bit data buffer.  */
static int32_t CRC_WriteData16(const uint16_t au16Data[], uint32_t u32Len)
/* Calculate the CRC value of a 16-bit data buffer.  */
static int32_t CRC_WriteData16(const uint16_t au16Data[], uint32_t u32Len)
{
    uint32_t i;
    int32_t i32Ret = LL_ERR_INVD_PARAM;
    const uint32_t u32DataAddr = CRC_DATA_ADDR;
    if ((au16Data != NULL) && (u32Len != 0UL)) {
        for (i = 0UL; i < u32Len; i++) {
            RW_MEM16(u32DataAddr) = au16Data[i];
        }
        i32Ret = LL_OK;
    }
    return i32Ret;
}