/* Set a default value for OTS initialization structure.  */
int32_t OTS_StructInit(stc_ots_init_t *pstcOTSInit)
/* Set a default value for OTS initialization structure.  */
int32_t OTS_StructInit(stc_ots_init_t *pstcOTSInit)
{
    int32_t i32Ret = LL_ERR_INVD_PARAM;
    if (pstcOTSInit != NULL) {
        pstcOTSInit->u16ClockSrc  = OTS_CLK_HRC;
        pstcOTSInit->f32SlopeK    = 0.0F;
        pstcOTSInit->f32OffsetM   = 0.0F;
        pstcOTSInit->u16AutoOffEn = OTS_AUTO_OFF_ENABLE;
        pstcOTSInit->stcParaCond.u16ClockFreq = 8U;
        pstcOTSInit->stcParaCond.u8T1 = OTS_PARAM_TEMP_COND_T25;
        pstcOTSInit->stcParaCond.u8T2 = OTS_PARAM_TEMP_COND_T125;
        i32Ret = LL_OK;
    }
    return i32Ret;
}