Lines Matching refs:init
90 void LESENSE_Init(LESENSE_Init_TypeDef const *init, bool const reqReset) in LESENSE_Init() argument
93 EFM_ASSERT((uint32_t)init->timeCtrl.startDelay < 4U); in LESENSE_Init()
94 EFM_ASSERT((uint32_t)init->perCtrl.dacPresc < 32U); in LESENSE_Init()
103 LESENSE_StartDelaySet((uint32_t)init->timeCtrl.startDelay); in LESENSE_Init()
112 LESENSE->CTRL = ((uint32_t)init->coreCtrl.prsSel << in LESENSE_Init()
114 (uint32_t)init->coreCtrl.scanConfSel | in LESENSE_Init()
115 (uint32_t)init->coreCtrl.bufTrigLevel | in LESENSE_Init()
116 (uint32_t)init->coreCtrl.wakeupOnDMA | in LESENSE_Init()
117 ((uint32_t)init->coreCtrl.invACMP0 << in LESENSE_Init()
119 ((uint32_t)init->coreCtrl.invACMP1 << in LESENSE_Init()
121 ((uint32_t)init->coreCtrl.dualSample << in LESENSE_Init()
123 ((uint32_t)init->coreCtrl.storeScanRes << in LESENSE_Init()
125 ((uint32_t)init->coreCtrl.bufOverWr << in LESENSE_Init()
127 ((uint32_t)init->coreCtrl.debugRun << in LESENSE_Init()
132 LESENSE_ScanModeSet((LESENSE_ScanMode_TypeDef)init->coreCtrl.scanStart, false); in LESENSE_Init()
138 LESENSE->PERCTRL = ((uint32_t)init->perCtrl.dacCh0Data << in LESENSE_Init()
140 ((uint32_t)init->perCtrl.dacCh0ConvMode << in LESENSE_Init()
142 ((uint32_t)init->perCtrl.dacCh0OutMode << in LESENSE_Init()
144 ((uint32_t)init->perCtrl.dacCh1Data << in LESENSE_Init()
146 ((uint32_t)init->perCtrl.dacCh1ConvMode << in LESENSE_Init()
148 ((uint32_t)init->perCtrl.dacCh1OutMode << in LESENSE_Init()
150 ((uint32_t)init->perCtrl.dacPresc << in LESENSE_Init()
152 (uint32_t)init->perCtrl.dacRef | in LESENSE_Init()
153 ((uint32_t)init->perCtrl.acmp0Mode << in LESENSE_Init()
155 ((uint32_t)init->perCtrl.acmp1Mode << in LESENSE_Init()
157 (uint32_t)init->perCtrl.warmupMode; in LESENSE_Init()
167 LESENSE->DECCTRL = (uint32_t)init->decCtrl.decInput | in LESENSE_Init()
168 ((uint32_t)init->decCtrl.prsChSel0 << in LESENSE_Init()
170 ((uint32_t)init->decCtrl.prsChSel1 << in LESENSE_Init()
172 ((uint32_t)init->decCtrl.prsChSel2 << in LESENSE_Init()
174 ((uint32_t)init->decCtrl.prsChSel3 << in LESENSE_Init()
176 ((uint32_t)init->decCtrl.chkState << in LESENSE_Init()
178 ((uint32_t)init->decCtrl.intMap << in LESENSE_Init()
180 ((uint32_t)init->decCtrl.hystPRS0 << in LESENSE_Init()
182 ((uint32_t)init->decCtrl.hystPRS1 << in LESENSE_Init()
184 ((uint32_t)init->decCtrl.hystPRS2 << in LESENSE_Init()
186 ((uint32_t)init->decCtrl.hystIRQ << in LESENSE_Init()
188 ((uint32_t)init->decCtrl.prsCount << in LESENSE_Init()
192 LESENSE_DecoderStateSet((uint32_t)init->decCtrl.initState); in LESENSE_Init()
195 LESENSE->BIASCTRL = (uint32_t)init->coreCtrl.biasMode; in LESENSE_Init()