Lines Matching refs:global_ptr

195 void XMC_VADC_GLOBAL_Init(XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_GLOBAL_CONFIG_t *conf…  in XMC_VADC_GLOBAL_Init()  argument
200 XMC_ASSERT("XMC_VADC_GLOBAL_Init:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_Init()
205 global_ptr->CLC = (uint32_t)(config->clc); in XMC_VADC_GLOBAL_Init()
210global_ptr->GLOBCFG = (uint32_t)(config->clock_config.globcfg | (uint32_t)(VADC_GLOBCFG_DIVWC_Msk… in XMC_VADC_GLOBAL_Init()
214 global_ptr->GLOBICLASS[0] = (uint32_t)(config->class0.globiclass); in XMC_VADC_GLOBAL_Init()
217 global_ptr->GLOBICLASS[1] = (uint32_t)(config->class1.globiclass); in XMC_VADC_GLOBAL_Init()
221 global_ptr->GLOBRCR = (uint32_t)(config->globrcr); in XMC_VADC_GLOBAL_Init()
226 global_ptr->GLOBBOUND = (uint32_t)(config->globbound); in XMC_VADC_GLOBAL_Init()
245 void XMC_VADC_GLOBAL_InputClassInit(XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_GLOBAL_CLAS… in XMC_VADC_GLOBAL_InputClassInit() argument
249 XMC_ASSERT("XMC_VADC_GLOBAL_InputClassInit:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_InputClassInit()
258 global_ptr->GLOBICLASS[set_num] = config.globiclass & in XMC_VADC_GLOBAL_InputClassInit()
264global_ptr->GLOBICLASS[set_num] = config.globiclass & (uint32_t)(VADC_GLOBICLASS_CME_Msk | VADC_GL… in XMC_VADC_GLOBAL_InputClassInit()
270 void XMC_VADC_GLOBAL_StartupCalibration(XMC_VADC_GLOBAL_t *const global_ptr) in XMC_VADC_GLOBAL_StartupCalibration() argument
277 XMC_ASSERT("XMC_VADC_GLOBAL_StartupCalibration:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_StartupCalibration()
279 global_ptr->GLOBCFG |= (uint32_t)VADC_GLOBCFG_SUCAL_Msk; in XMC_VADC_GLOBAL_StartupCalibration()
314 void XMC_VADC_GLOBAL_SetBoundaries(XMC_VADC_GLOBAL_t *const global_ptr, in XMC_VADC_GLOBAL_SetBoundaries() argument
320 XMC_ASSERT("XMC_VADC_GLOBAL_SetBoundaries:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_SetBoundaries()
326 global_ptr->GLOBBOUND = globbound; in XMC_VADC_GLOBAL_SetBoundaries()
330 void XMC_VADC_GLOBAL_SetIndividualBoundary(XMC_VADC_GLOBAL_t *const global_ptr, in XMC_VADC_GLOBAL_SetIndividualBoundary() argument
337 XMC_ASSERT("XMC_VADC_GLOBAL_SetBoundaries:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_SetIndividualBoundary()
343 globbound = global_ptr->GLOBBOUND; in XMC_VADC_GLOBAL_SetIndividualBoundary()
359 global_ptr->GLOBBOUND = globbound; in XMC_VADC_GLOBAL_SetIndividualBoundary()
366 void XMC_VADC_GLOBAL_SetCompareValue(XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_RESULT_SIZ… in XMC_VADC_GLOBAL_SetCompareValue() argument
368 XMC_ASSERT("XMC_VADC_GLOBAL_SetCompareValue:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_SetCompareValue()
370 global_ptr->GLOBRES &= ~((uint32_t)VADC_GLOBRES_RESULT_Msk); in XMC_VADC_GLOBAL_SetCompareValue()
371 global_ptr->GLOBRES |= (uint32_t)((uint32_t)compare_val << XMC_VADC_RESULT_LEFT_ALIGN_10BIT); in XMC_VADC_GLOBAL_SetCompareValue()
375 XMC_VADC_FAST_COMPARE_t XMC_VADC_GLOBAL_GetCompareResult(XMC_VADC_GLOBAL_t *const global_ptr) in XMC_VADC_GLOBAL_GetCompareResult() argument
380 XMC_ASSERT("XMC_VADC_GLOBAL_GetCompareResult:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_GetCompareResult()
382 res = global_ptr->GLOBRES; in XMC_VADC_GLOBAL_GetCompareResult()
398 void XMC_VADC_GLOBAL_BindGroupToEMux(XMC_VADC_GLOBAL_t *const global_ptr, const uint32_t emuxif, co… in XMC_VADC_GLOBAL_BindGroupToEMux() argument
403 XMC_ASSERT("XMC_VADC_GLOBAL_BindGroupToEMux:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_BindGroupToEMux()
418 global_ptr->EMUXSEL &= ~(mask); in XMC_VADC_GLOBAL_BindGroupToEMux()
419 global_ptr->EMUXSEL |= (uint32_t) (group << pos); in XMC_VADC_GLOBAL_BindGroupToEMux()
425 void XMC_VADC_GLOBAL_SetResultEventInterruptNode(XMC_VADC_GLOBAL_t *const global_ptr, XMC_VADC_SR_t… in XMC_VADC_GLOBAL_SetResultEventInterruptNode() argument
429 …XMC_ASSERT("XMC_VADC_GLOBAL_SetResultEventInterruptNode:Wrong Module Pointer", (global_ptr == VADC… in XMC_VADC_GLOBAL_SetResultEventInterruptNode()
441 global_ptr->GLOBEVNP &= ~((uint32_t)VADC_GLOBEVNP_REV0NP_Msk); in XMC_VADC_GLOBAL_SetResultEventInterruptNode()
442 global_ptr->GLOBEVNP |= (uint32_t)(node << VADC_GLOBEVNP_REV0NP_Pos); in XMC_VADC_GLOBAL_SetResultEventInterruptNode()
446 void XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode(XMC_VADC_GLOBAL_t *const global_ptr, XMC… in XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode() argument
450 …"XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode()
461 global_ptr->GLOBEVNP &= ~((uint32_t)VADC_GLOBEVNP_SEV0NP_Msk); in XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode()
462 global_ptr->GLOBEVNP |= (uint32_t) (node << VADC_GLOBEVNP_SEV0NP_Pos); in XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode()
1221 void XMC_VADC_GLOBAL_BackgroundInit(XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_BACKGROUND_… in XMC_VADC_GLOBAL_BackgroundInit() argument
1229 XMC_ASSERT("XMC_VADC_GLOBAL_BackgroundInit:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_BackgroundInit()
1261global_ptr->BRSCTRL = (uint32_t)(config->asctrl | (uint32_t)VADC_BRSCTRL_XTWC_Msk | (uint32_t)VADC… in XMC_VADC_GLOBAL_BackgroundInit()
1264global_ptr->BRSMR = (uint32_t)((config->asmr)| (uint32_t)((uint32_t)XMC_VADC_GATEMODE_IGNORE << VA… in XMC_VADC_GLOBAL_BackgroundInit()
1269 global_ptr->BRSMR |= (uint32_t)VADC_BRSMR_RPTDIS_Msk; in XMC_VADC_GLOBAL_BackgroundInit()
1283 void XMC_VADC_GLOBAL_BackgroundSelectTrigger(XMC_VADC_GLOBAL_t *const global_ptr, const uint32_t in… in XMC_VADC_GLOBAL_BackgroundSelectTrigger() argument
1287 XMC_ASSERT("VADC_BCKGND_SelectTriggerInput:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_BackgroundSelectTrigger()
1291 scanctrl = global_ptr->BRSCTRL; in XMC_VADC_GLOBAL_BackgroundSelectTrigger()
1295 global_ptr->BRSCTRL = scanctrl; in XMC_VADC_GLOBAL_BackgroundSelectTrigger()
1299 void XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge(XMC_VADC_GLOBAL_t *const global_ptr, in XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge() argument
1304 …XMC_ASSERT("XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge:Wrong Global Pointer", (global_ptr == VADC… in XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge()
1308 scanctrl = global_ptr->BRSCTRL; in XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge()
1312 global_ptr->BRSCTRL = scanctrl; in XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge()
1317 void XMC_VADC_GLOBAL_BackgroundSelectGating(XMC_VADC_GLOBAL_t *const global_ptr, const uint32_t inp… in XMC_VADC_GLOBAL_BackgroundSelectGating() argument
1321 XMC_ASSERT("XMC_VADC_GLOBAL_BackgroundSelectGating:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_BackgroundSelectGating()
1324 scanctrl = global_ptr->BRSCTRL; in XMC_VADC_GLOBAL_BackgroundSelectGating()
1328 global_ptr->BRSCTRL = scanctrl; in XMC_VADC_GLOBAL_BackgroundSelectGating()
1332 void XMC_VADC_GLOBAL_BackgroundAbortSequence(XMC_VADC_GLOBAL_t *const global_ptr) in XMC_VADC_GLOBAL_BackgroundAbortSequence() argument
1339 XMC_ASSERT("XMC_VADC_GLOBAL_BackgroundAbortSequence:Wrong Module Pointer", (global_ptr == VADC)) in XMC_VADC_GLOBAL_BackgroundAbortSequence()
1342 brsctrl = global_ptr->BRSCTRL; in XMC_VADC_GLOBAL_BackgroundAbortSequence()
1344 global_ptr->BRSCTRL =(0U | (uint32_t)VADC_BRSCTRL_XTWC_Msk | (uint32_t)VADC_BRSCTRL_GTWC_Msk); in XMC_VADC_GLOBAL_BackgroundAbortSequence()
1357 global_ptr->BRSMR |= (uint32_t)VADC_BRSMR_CLRPND_Msk; in XMC_VADC_GLOBAL_BackgroundAbortSequence()
1371global_ptr->BRSCTRL =(brsctrl | (uint32_t)VADC_BRSCTRL_XTWC_Msk | (uint32_t)VADC_BRSCTRL_GTWC_Msk); in XMC_VADC_GLOBAL_BackgroundAbortSequence()
1375 uint32_t XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending(XMC_VADC_GLOBAL_t *const global_ptr) in XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending() argument
1382 …XMC_ASSERT("XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending:Wrong Module Pointer", (global_ptr == … in XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending()
1389 if (global_ptr->BRSSEL[i]) in XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending()
1391 reg = global_ptr->BRSPND[i]; in XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending()