Lines Matching refs:shs_ptr
796 void XMC_VADC_GLOBAL_SHS_Init(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, const XMC_VADC_GLOBAL_SHS_CONFI… in XMC_VADC_GLOBAL_SHS_Init() argument
798 …XMC_ASSERT("XMC_VADC_GLOBAL_SHS_Init:Wrong SHS Pointer", (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void… in XMC_VADC_GLOBAL_SHS_Init()
802 shs_ptr->SHSCFG = (uint32_t)((uint32_t)config->shscfg | (uint32_t)SHS_SHSCFG_SCWC_Msk); in XMC_VADC_GLOBAL_SHS_Init()
806 shs_ptr->CALCTR &= ~((uint32_t)SHS_CALCTR_CALORD_Msk); in XMC_VADC_GLOBAL_SHS_Init()
807 shs_ptr->CALCTR |= (uint32_t) ((uint32_t)config->calibration_order << SHS_CALCTR_CALORD_Pos); in XMC_VADC_GLOBAL_SHS_Init()
813 void XMC_VADC_GLOBAL_SHS_EnableAcceleratedMode(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, XMC_VADC_GROUP… in XMC_VADC_GLOBAL_SHS_EnableAcceleratedMode() argument
816 (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void*)SHS0)) in XMC_VADC_GLOBAL_SHS_EnableAcceleratedMode()
822 shs_ptr->TIMCFG0 |= (uint32_t)SHS_TIMCFG0_AT_Msk; in XMC_VADC_GLOBAL_SHS_EnableAcceleratedMode()
826 shs_ptr->TIMCFG1 |= (uint32_t)SHS_TIMCFG1_AT_Msk; in XMC_VADC_GLOBAL_SHS_EnableAcceleratedMode()
835 void XMC_VADC_GLOBAL_SHS_DisableAcceleratedMode(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, XMC_VADC_GROU… in XMC_VADC_GLOBAL_SHS_DisableAcceleratedMode() argument
838 (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void*)SHS0)) in XMC_VADC_GLOBAL_SHS_DisableAcceleratedMode()
844 shs_ptr->TIMCFG0 &= ~(uint32_t)SHS_TIMCFG0_AT_Msk; in XMC_VADC_GLOBAL_SHS_DisableAcceleratedMode()
848 shs_ptr->TIMCFG1 &= ~(uint32_t)SHS_TIMCFG1_AT_Msk; in XMC_VADC_GLOBAL_SHS_DisableAcceleratedMode()
857 void XMC_VADC_GLOBAL_SHS_SetShortSampleTime(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, in XMC_VADC_GLOBAL_SHS_SetShortSampleTime() argument
862 (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void*)SHS0)) in XMC_VADC_GLOBAL_SHS_SetShortSampleTime()
869 shs_ptr->TIMCFG0 &= ~((uint32_t)SHS_TIMCFG0_SST_Msk); in XMC_VADC_GLOBAL_SHS_SetShortSampleTime()
870 shs_ptr->TIMCFG0 |= (uint32_t)((uint32_t)sst_value << SHS_TIMCFG0_SST_Pos ); in XMC_VADC_GLOBAL_SHS_SetShortSampleTime()
874 shs_ptr->TIMCFG1 &= ~((uint32_t)SHS_TIMCFG1_SST_Msk); in XMC_VADC_GLOBAL_SHS_SetShortSampleTime()
875 shs_ptr->TIMCFG1 |= (uint32_t)((uint32_t)sst_value << SHS_TIMCFG1_SST_Pos ); in XMC_VADC_GLOBAL_SHS_SetShortSampleTime()
885 void XMC_VADC_GLOBAL_SHS_SetGainFactor(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, in XMC_VADC_GLOBAL_SHS_SetGainFactor() argument
892 …XMC_ASSERT("XMC_VADC_GLOBAL_SHS_SetGainFactor:Wrong SHS Pointer", (shs_ptr == (XMC_VADC_GLOBAL_SHS… in XMC_VADC_GLOBAL_SHS_SetGainFactor()
899 shs_ptr->GNCTR00 &= ~((uint32_t)SHS_GNCTR00_GAIN0_Msk << ch_mask) ; in XMC_VADC_GLOBAL_SHS_SetGainFactor()
900 shs_ptr->GNCTR00 |= ((uint32_t)gain_value << ch_mask); in XMC_VADC_GLOBAL_SHS_SetGainFactor()
904 shs_ptr->GNCTR10 &= ~((uint32_t)SHS_GNCTR10_GAIN0_Msk << ch_mask); in XMC_VADC_GLOBAL_SHS_SetGainFactor()
905 shs_ptr->GNCTR10 |= ((uint32_t)gain_value << ch_mask); in XMC_VADC_GLOBAL_SHS_SetGainFactor()
915 void XMC_VADC_GLOBAL_SHS_EnableGainAndOffsetCalibrations(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, in XMC_VADC_GLOBAL_SHS_EnableGainAndOffsetCalibrations() argument
919 (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void*)SHS0)) in XMC_VADC_GLOBAL_SHS_EnableGainAndOffsetCalibrations()
926 shs_ptr->CALOC0 &= ~((uint32_t)SHS_CALOC0_DISCAL_Msk); in XMC_VADC_GLOBAL_SHS_EnableGainAndOffsetCalibrations()
930 shs_ptr->CALOC1 &= ~((uint32_t)SHS_CALOC1_DISCAL_Msk); in XMC_VADC_GLOBAL_SHS_EnableGainAndOffsetCalibrations()
939 void XMC_VADC_GLOBAL_SHS_DisableGainAndOffsetCalibrations(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, in XMC_VADC_GLOBAL_SHS_DisableGainAndOffsetCalibrations() argument
943 (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void*)SHS0)) in XMC_VADC_GLOBAL_SHS_DisableGainAndOffsetCalibrations()
949 shs_ptr->CALOC0 |= (uint32_t)SHS_CALOC0_DISCAL_Msk; in XMC_VADC_GLOBAL_SHS_DisableGainAndOffsetCalibrations()
953 shs_ptr->CALOC1 |= (uint32_t)SHS_CALOC1_DISCAL_Msk; in XMC_VADC_GLOBAL_SHS_DisableGainAndOffsetCalibrations()
962 uint8_t XMC_VADC_GLOBAL_SHS_GetOffsetCalibrationValue(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, in XMC_VADC_GLOBAL_SHS_GetOffsetCalibrationValue() argument
968 (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void*)SHS0)) in XMC_VADC_GLOBAL_SHS_GetOffsetCalibrationValue()
978 …calibration_value = (shs_ptr->CALOC0 >> (uint32_t)gain_level) & (uint32_t)SHS_CALOC0_CALOFFVAL0_Ms… in XMC_VADC_GLOBAL_SHS_GetOffsetCalibrationValue()
982 …calibration_value = (shs_ptr->CALOC1 >> (uint32_t)gain_level) & (uint32_t)SHS_CALOC1_CALOFFVAL0_Ms… in XMC_VADC_GLOBAL_SHS_GetOffsetCalibrationValue()
992 void XMC_VADC_GLOBAL_SHS_SetOffsetCalibrationValue(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, in XMC_VADC_GLOBAL_SHS_SetOffsetCalibrationValue() argument
998 (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void*)SHS0)) in XMC_VADC_GLOBAL_SHS_SetOffsetCalibrationValue()
1007 …shs_ptr->CALOC0 = (shs_ptr->CALOC0 & ~((uint32_t)SHS_CALOC0_CALOFFVAL0_Msk << (uint32_t)gain_leve… in XMC_VADC_GLOBAL_SHS_SetOffsetCalibrationValue()
1009 …shs_ptr->CALOC0 |= ((uint32_t)offset_calibration_value << (uint32_t)gain_level) | (uint32_t)SHS_C… in XMC_VADC_GLOBAL_SHS_SetOffsetCalibrationValue()
1013 …shs_ptr->CALOC1 = (shs_ptr->CALOC1 & ~((uint32_t)SHS_CALOC1_CALOFFVAL0_Msk << (uint32_t)gain_level… in XMC_VADC_GLOBAL_SHS_SetOffsetCalibrationValue()
1015 …shs_ptr->CALOC1 |= ((uint32_t)offset_calibration_value << (uint32_t)gain_level) | (uint32_t)SHS_C… in XMC_VADC_GLOBAL_SHS_SetOffsetCalibrationValue()
1025 void XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop(XMC_VADC_GLOBAL_SHS_t *const shs_ptr, in XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop() argument
1031 (shs_ptr == (XMC_VADC_GLOBAL_SHS_t*)(void*)SHS0)) in XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop()
1039 …shs_ptr->LOOP &= ~(((uint32_t)SHS_LOOP_LPCH0_Msk | (uint32_t)SHS_LOOP_LPSH0_Msk | (uint32_t)SHS_LO… in XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop()
1041 …shs_ptr->LOOP |= ((uint32_t)ch_num | ((uint32_t)group_num << (uint32_t)SHS_LOOP_LPSH0_Pos)) << (ui… in XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop()