Home
last modified time | relevance | path

Searched refs:COMPx (Results 1 – 25 of 30) sorted by relevance

12

/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/
A Dfm33lc0xx_fl_comp.h283 SET_BIT(COMPx->CR, COMP_CR_CMPEN_Msk); in FL_COMP_Enable()
305 CLEAR_BIT(COMPx->CR, COMP_CR_CMPEN_Msk); in FL_COMP_Disable()
316 SET_BIT(COMPx->ICR, COMP_ICR_COMP2DF_Msk); in FL_COMP_EnableComparator2OutputFilter()
338 CLEAR_BIT(COMPx->ICR, COMP_ICR_COMP2DF_Msk); in FL_COMP_DisableComparator2OutputFilter()
349 SET_BIT(COMPx->ICR, COMP_ICR_COMP1DF_Msk); in FL_COMP_EnableComparator1OutputFilter()
440 SET_BIT(COMPx->ICR, COMP_ICR_CMP2IE_Msk); in FL_COMP_EnableIT_Comparator2()
462 CLEAR_BIT(COMPx->ICR, COMP_ICR_CMP2IE_Msk); in FL_COMP_DisableIT_Comparator2()
473 SET_BIT(COMPx->ICR, COMP_ICR_CMP1IE_Msk); in FL_COMP_EnableIT_Comparator1()
495 CLEAR_BIT(COMPx->ICR, COMP_ICR_CMP1IE_Msk); in FL_COMP_DisableIT_Comparator1()
517 WRITE_REG(COMPx->ISR, COMP_ISR_CMP2IF_Msk); in FL_COMP_ClearFlag_Comparator2()
[all …]
/bsp/Vango/v85xx/Libraries/VangoV85xx_standard_peripheral/Source/
A Dlib_comp.c33 assert_parameters(IS_COMP(COMPx)); in COMP_DEBConfig()
38 tmp |= Debounce << COMPx; in COMP_DEBConfig()
59 assert_parameters(IS_COMP(COMPx)); in COMP_ModeConfig()
64 tmp |= Mode << COMPx; in COMP_ModeConfig()
84 assert_parameters(IS_COMP(COMPx)); in COMP_SignalSourceConfig()
89 tmp |= SourceSelect << COMPx; in COMP_SignalSourceConfig()
114 tmp |= REFSelect << (COMPx / 2); in COMP_REFConfig()
140 tmp |= BiasSel << COMPx; in COMP_BiasConfig()
200 if (COMPx == COMP_1) in COMP_Output_Cmd()
207 if (COMPx == COMP_1) in COMP_Output_Cmd()
[all …]
/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Inc/
A Dstm32l1xx_ll_comp.h478 … (RI_ASCR1_CH * __COMP_IS_INSTANCE_ODD(COMPx)) | (RI_ASCR2_GR6 * __COMP_IS_INSTANCE_EVEN(COMPx)), in LL_COMP_SetInputPlus()
541 … (RI_ASCR1_CH * __COMP_IS_INSTANCE_ODD(COMPx)) | (RI_ASCR2_GR6 * __COMP_IS_INSTANCE_EVEN(COMPx)))); in LL_COMP_GetInputPlus()
569 COMP_CSR_INSEL * __COMP_IS_INSTANCE_EVEN(COMPx), in LL_COMP_SetInputMinus()
570 InputMinus * __COMP_IS_INSTANCE_EVEN(COMPx)); in LL_COMP_SetInputMinus()
691 COMP_CSR_OUTSEL * __COMP_IS_INSTANCE_EVEN(COMPx), in LL_COMP_SetOutputSelection()
692 OutputSelection * __COMP_IS_INSTANCE_EVEN(COMPx)); in LL_COMP_SetOutputSelection()
747 __STATIC_INLINE void LL_COMP_Enable(COMP_TypeDef *COMPx) in LL_COMP_Enable() argument
765 __STATIC_INLINE void LL_COMP_Disable(COMP_TypeDef *COMPx) in LL_COMP_Disable() argument
770 …>CSR, (COMP_CSR_CMP1EN * __COMP_IS_INSTANCE_ODD(COMPx)) | (COMP_CSR_INSEL * __COMP_IS_INSTANCE_EVE… in LL_COMP_Disable()
783 …>CSR, (COMP_CSR_CMP1EN * __COMP_IS_INSTANCE_ODD(COMPx)) | (COMP_CSR_INSEL * __COMP_IS_INSTANCE_EVE… in LL_COMP_IsEnabled()
[all …]
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/
A Dn32g45x_comp.c122 COMP_SingleType* pCS = &COMP->Cmp[COMPx]; in COMP_Init()
136 if (COMPx == COMP1) in COMP_Init()
170 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetInpSel()
176 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetInmSel()
182 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetOutTrig()
214 FlagStatus COMP_GetOutStatus(COMPX COMPx) in COMP_GetOutStatus() argument
232 COMP->Cmp[COMPx].FILP=FilPreVal; in COMP_SetFilterPrescaler()
261 uint32_t tmp=COMP->Cmp[COMPx].CTRL; in COMP_SetHyst()
264 COMP->Cmp[COMPx].CTRL=tmp; in COMP_SetHyst()
279 uint32_t tmp=COMP->Cmp[COMPx].CTRL; in COMP_SetBlanking()
[all …]
/bsp/mm32/libraries/MM32F3270_HAL/MM32F3270_HAL_Driver/Src/
A Dhal_comp.c14 COMPx->CSR[channel] = COMP_CSR_OFLT(init->OutFilter) in COMP_Init()
31 COMPx->CSR[channel] |= COMP_CSR_EN_MASK; in COMP_Enable()
35 COMPx->CSR[channel] &= ~COMP_CSR_EN_MASK; in COMP_Enable()
40 void COMP_Lock(COMP_Type * COMPx, uint32_t channel) in COMP_Lock() argument
44 COMPx->CSR[channel] |= COMP_CSR_LOCK_MASK; in COMP_Lock()
48 bool COMP_GetOutputStatus(COMP_Type * COMPx, uint32_t channel) in COMP_GetOutputStatus() argument
52 if ( 0u != ( COMP_CSR_OUT_MASK & COMPx->CSR[channel] ) ) in COMP_GetOutputStatus()
71 COMPx->CRV &= ~COMP_CRV_CRVEN_MASK; in COMP_EnableExtVrefConf()
75 COMPx->CRV = COMP_CRV_CRVSRC (conf->VrefSource) in COMP_EnableExtVrefConf()
88 COMPx->POLL[channel] &= ~COMP_POLL_POLLEN_MASK; in COMP_EnableRoundRobinConf()
[all …]
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/
A Dn32g45x_comp.c125 COMP_SingleType* pCS = &COMP->Cmp[COMPx]; in COMP_Init()
139 if (COMPx == COMP1) in COMP_Init()
173 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetInpSel()
179 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetInmSel()
185 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetOutTrig()
217 FlagStatus COMP_GetOutStatus(COMPX COMPx) in COMP_GetOutStatus() argument
235 COMP->Cmp[COMPx].FILP=FilPreVal; in COMP_SetFilterPrescaler()
264 uint32_t tmp=COMP->Cmp[COMPx].CTRL; in COMP_SetHyst()
267 COMP->Cmp[COMPx].CTRL=tmp; in COMP_SetHyst()
282 uint32_t tmp=COMP->Cmp[COMPx].CTRL; in COMP_SetBlanking()
[all …]
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/
A Dn32l43x_comp.c128 if (COMPx == COMP1) in COMP_Init()
144 if (COMPx == COMP1) in COMP_Init()
172 if (COMPx == COMP1) in COMP_Enable()
191 if (COMPx == COMP1) in COMP_SetInpSel()
198 if (COMPx == COMP1) in COMP_SetInpSel()
206 if (COMPx == COMP1) in COMP_SetInmSel()
213 if (COMPx == COMP1) in COMP_SetInmSel()
222 if (COMPx == COMP1) in COMP_SetOutTrig()
229 if (COMPx == COMP1) in COMP_SetOutTrig()
257 if (COMPx == COMP1) in COMP_GetOutStatus()
[all …]
A Dn32l43x_lptim.c330 MODIFY_REG(LPTIMx->COMPx, LPTIM_COMP_CMPVAL, CompareValue); in LPTIM_SetCompare()
341 return (uint32_t)(READ_BIT(LPTIMx->COMPx, LPTIM_COMP_CMPVAL)); in LPTIM_GetCompare()
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/
A Dn32l40x_comp.c128 if (COMPx == COMP1) in COMP_Init()
144 if (COMPx == COMP1) in COMP_Init()
172 if (COMPx == COMP1) in COMP_Enable()
191 if (COMPx == COMP1) in COMP_SetInpSel()
198 if (COMPx == COMP1) in COMP_SetInpSel()
206 if (COMPx == COMP1) in COMP_SetInmSel()
213 if (COMPx == COMP1) in COMP_SetInmSel()
222 if (COMPx == COMP1) in COMP_SetOutTrig()
229 if (COMPx == COMP1) in COMP_SetOutTrig()
257 if (COMPx == COMP1) in COMP_GetOutStatus()
[all …]
A Dn32l40x_lptim.c330 MODIFY_REG(LPTIMx->COMPx, LPTIM_COMP_CMPVAL, CompareValue); in LPTIM_SetCompare()
341 return (uint32_t)(READ_BIT(LPTIMx->COMPx, LPTIM_COMP_CMPVAL)); in LPTIM_GetCompare()
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/
A Dn32g43x_comp.c128 if (COMPx == COMP1) in COMP_Init()
144 if (COMPx == COMP1) in COMP_Init()
172 if (COMPx == COMP1) in COMP_Enable()
191 if (COMPx == COMP1) in COMP_SetInpSel()
198 if (COMPx == COMP1) in COMP_SetInpSel()
206 if (COMPx == COMP1) in COMP_SetInmSel()
213 if (COMPx == COMP1) in COMP_SetInmSel()
222 if (COMPx == COMP1) in COMP_SetOutTrig()
229 if (COMPx == COMP1) in COMP_SetOutTrig()
257 if (COMPx == COMP1) in COMP_GetOutStatus()
[all …]
A Dn32g43x_lptim.c330 MODIFY_REG(LPTIMx->COMPx, LPTIM_COMP_CMPVAL, CompareValue); in LPTIM_SetCompare()
341 return (uint32_t)(READ_BIT(LPTIMx->COMPx, LPTIM_COMP_CMPVAL)); in LPTIM_GetCompare()
/bsp/Vango/v85xx/Libraries/VangoV85xx_standard_peripheral/Include/
A Dlib_comp.h73 void COMP_DEBConfig(uint32_t COMPx, uint32_t Debounce);
74 void COMP_ModeConfig(uint32_t COMPx, uint32_t Mode);
76 void COMP_REFConfig(uint32_t COMPx, uint32_t REFSelect);
77 void COMP_BiasConfig(uint32_t COMPx, uint32_t BiasSel);
79 void COMP_INTConfig(uint32_t COMPx, uint32_t NewState);
80 uint8_t COMP_GetINTStatus(uint32_t COMPx);
81 void COMP_ClearINTStatus(uint32_t COMPx);
83 void COMP_Output_Cmd(uint32_t COMPx, uint32_t NewState);
84 void COMP_Cmd(uint32_t COMPx, uint32_t NewState);
86 uint32_t COMP_GetCNTValue(uint32_t COMPx);
[all …]
/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/
A Dfm33lc0xx_fl_comp.c78 FL_ErrorStatus FL_COMP_DeInit(COMP_Type *COMPx) in FL_COMP_DeInit() argument
81 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in FL_COMP_DeInit()
83 COMPx->CR = 0x00000000U; in FL_COMP_DeInit()
99 FL_ErrorStatus FL_COMP_Init(COMP_Type *COMPx, FL_COMP_InitTypeDef *initStruct) in FL_COMP_Init() argument
102 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in FL_COMP_Init()
111 FL_COMP_SetOutputPolarity(COMPx, initStruct->polarity); in FL_COMP_Init()
113 FL_COMP_SetINPSource(COMPx, initStruct->positiveInput); in FL_COMP_Init()
115 FL_COMP_SetINNSource(COMPx, initStruct->negativeInput); in FL_COMP_Init()
122 if(COMPx == COMP1) in FL_COMP_Init()
135 if(COMPx == COMP1) in FL_COMP_Init()
[all …]
/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/
A Dstm32l1xx_ll_comp.c197 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument
202 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit()
215 if(COMPx == COMP1) in LL_COMP_DeInit()
237 LL_COMP_SetInputPlus(COMPx, LL_COMP_INPUT_PLUS_NONE); in LL_COMP_DeInit()
259 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init()
260 if(COMPx == COMP2) in LL_COMP_Init()
263 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init()
266 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init()
278 if(COMPx == COMP2) in LL_COMP_Init()
291 LL_COMP_SetInputPlus(COMPx, COMP_InitStruct->InputPlus); in LL_COMP_Init()
[all …]
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/inc/
A Dn32l43x_comp.h249 void COMP_Init(COMPX COMPx, COMP_InitType* COMP_InitStruct);
250 void COMP_Enable(COMPX COMPx, FunctionalState en);
251 void COMP_SetInpSel(COMPX COMPx, COMP_CTRL_INPSEL VpSel);
252 void COMP_SetInmSel(COMPX COMPx, COMP_CTRL_INMSEL VmSel);
253 void COMP_SetOutTrig(COMPX COMPx, COMP_CTRL_OUTTRIG OutTrig);
256 FlagStatus COMP_GetOutStatus(COMPX COMPx);
257 FlagStatus COMP_GetIntStsOneComp(COMPX COMPx);
263 void COMP_SetFilterPrescaler(COMPX COMPx , uint16_t FilPreVal);
264 void COMP_SetFilterControl(COMPX COMPx , uint8_t FilEn, uint8_t TheresNum , uint8_t SampPW);
265 void COMP_SetHyst(COMPX COMPx , COMP_CTRL_HYST HYST);
[all …]
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/inc/
A Dn32l40x_comp.h249 void COMP_Init(COMPX COMPx, COMP_InitType* COMP_InitStruct);
250 void COMP_Enable(COMPX COMPx, FunctionalState en);
251 void COMP_SetInpSel(COMPX COMPx, COMP_CTRL_INPSEL VpSel);
252 void COMP_SetInmSel(COMPX COMPx, COMP_CTRL_INMSEL VmSel);
253 void COMP_SetOutTrig(COMPX COMPx, COMP_CTRL_OUTTRIG OutTrig);
256 FlagStatus COMP_GetOutStatus(COMPX COMPx);
257 FlagStatus COMP_GetIntStsOneComp(COMPX COMPx);
263 void COMP_SetFilterPrescaler(COMPX COMPx , uint16_t FilPreVal);
264 void COMP_SetFilterControl(COMPX COMPx , uint8_t FilEn, uint8_t TheresNum , uint8_t SampPW);
265 void COMP_SetHyst(COMPX COMPx , COMP_CTRL_HYST HYST);
[all …]
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/inc/
A Dn32g43x_comp.h249 void COMP_Init(COMPX COMPx, COMP_InitType* COMP_InitStruct);
250 void COMP_Enable(COMPX COMPx, FunctionalState en);
251 void COMP_SetInpSel(COMPX COMPx, COMP_CTRL_INPSEL VpSel);
252 void COMP_SetInmSel(COMPX COMPx, COMP_CTRL_INMSEL VmSel);
253 void COMP_SetOutTrig(COMPX COMPx, COMP_CTRL_OUTTRIG OutTrig);
256 FlagStatus COMP_GetOutStatus(COMPX COMPx);
257 FlagStatus COMP_GetIntStsOneComp(COMPX COMPx);
263 void COMP_SetFilterPrescaler(COMPX COMPx , uint16_t FilPreVal);
264 void COMP_SetFilterControl(COMPX COMPx , uint8_t FilEn, uint8_t TheresNum , uint8_t SampPW);
265 void COMP_SetHyst(COMPX COMPx , COMP_CTRL_HYST HYST);
[all …]
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/inc/
A Dn32g45x_comp.h353 void COMP_Init(COMPX COMPx, COMP_InitType* COMP_InitStruct);
354 void COMP_Enable(COMPX COMPx, FunctionalState en);
355 void COMP_SetInpSel(COMPX COMPx, COMP_CTRL_INPSEL VpSel);
356 void COMP_SetInmSel(COMPX COMPx, COMP_CTRL_INMSEL VmSel);
357 void COMP_SetOutTrig(COMPX COMPx, COMP_CTRL_OUTTRIG OutTrig);
362 FlagStatus COMP_GetOutStatus(COMPX COMPx);
363 FlagStatus COMP_GetIntStsOneComp(COMPX COMPx);
364 void COMP_SetFilterPrescaler(COMPX COMPx , uint16_t FilPreVal);
365 void COMP_SetFilterControl(COMPX COMPx , uint8_t FilEn, uint8_t TheresNum , uint8_t SampPW);
366 void COMP_SetHyst(COMPX COMPx , COMP_CTRL_HYST HYST);
[all …]
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/inc/
A Dn32g45x_comp.h353 void COMP_Init(COMPX COMPx, COMP_InitType* COMP_InitStruct);
354 void COMP_Enable(COMPX COMPx, FunctionalState en);
355 void COMP_SetInpSel(COMPX COMPx, COMP_CTRL_INPSEL VpSel);
356 void COMP_SetInmSel(COMPX COMPx, COMP_CTRL_INMSEL VmSel);
357 void COMP_SetOutTrig(COMPX COMPx, COMP_CTRL_OUTTRIG OutTrig);
362 FlagStatus COMP_GetOutStatus(COMPX COMPx);
363 FlagStatus COMP_GetIntStsOneComp(COMPX COMPx);
364 void COMP_SetFilterPrescaler(COMPX COMPx , uint16_t FilPreVal);
365 void COMP_SetFilterControl(COMPX COMPx , uint8_t FilEn, uint8_t TheresNum , uint8_t SampPW);
366 void COMP_SetHyst(COMPX COMPx , COMP_CTRL_HYST HYST);
[all …]
/bsp/mm32/libraries/MM32F3270_HAL/MM32F3270_HAL_Driver/Inc/
A Dhal_comp.h196 void COMP_Init(COMP_Type * COMPx, uint32_t channel, COMP_Init_Type * init);
206 void COMP_Enable(COMP_Type * COMPx, uint32_t channel, bool enable);
215 void COMP_Lock(COMP_Type * COMPx, uint32_t channel);
224 bool COMP_GetOutputStatus(COMP_Type * COMPx, uint32_t channel);
233 void COMP_EnableExtVrefConf(COMP_Type * COMPx, COMP_ExtVrefConf_Type * conf);
245 void COMP_EnableRoundRobinConf(COMP_Type * COMPx, uint32_t channel, COMP_RoundRobinConf_Type * conf…
255 bool COMP_GetRoundRobinOutStatus(COMP_Type * COMPx, uint32_t channel, COMP_InMux_Type pos_in);
/bsp/rm48x50/HALCoGen/source/
A Drti.c80 rtiREG1->CMP[0U].COMPx = 10000U; in rtiInit()
86 rtiREG1->CMP[1U].COMPx = 50000U; in rtiInit()
92 rtiREG1->CMP[2U].COMPx = 80000U; in rtiInit()
98 rtiREG1->CMP[3U].COMPx = 100000U; in rtiInit()
329 tick = rtiREG1->CNT[counter].FRCx - (rtiREG1->CMP[compare].COMPx - rtiREG1->CMP[compare].UDCPx); in rtiGetCurrentTick()
/bsp/rm48x50/HALCoGen/include/
A Dreg_rti.h57 uint32 COMPx; /**< 0x0050,0x0058,0x0060,0x0068: Compare x Register */ member
/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/ARM/
A Dstartup_fm33lg0xx.s81 DCD COMPx_IRQHandler ; 25: COMPx
A Dstartup_fm33lc0xx.s81 DCD COMPx_IRQHandler ; 25: COMPx

Completed in 49 milliseconds

12