/hal_stm32-latest/stm32cube/stm32f0xx/drivers/include/ |
D | stm32f0xx_ll_comp.h | 386 MODIFY_REG(COMP->CSR, in LL_COMP_SetPowerMode() 404 return (uint32_t)(READ_BIT(COMP->CSR, in LL_COMP_GetPowerMode() 447 MODIFY_REG(COMP->CSR, in LL_COMP_ConfigInputs() 472 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputPlus() 495 return (uint32_t)(READ_BIT(COMP->CSR, in LL_COMP_GetInputPlus() 520 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputMinus() 543 return (uint32_t)(READ_BIT(COMP->CSR, in LL_COMP_GetInputMinus() 563 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputHysteresis() 581 return (uint32_t)(READ_BIT(COMP->CSR, in LL_COMP_GetInputHysteresis() 619 MODIFY_REG(COMP->CSR, in LL_COMP_SetOutputSelection() [all …]
|
D | stm32f0xx_hal_comp.h | 305 SET_BIT(COMP->CSR, COMP_CSR_COMP1EN) : \ 306 SET_BIT(COMP->CSR, COMP_CSR_COMP2EN)) 314 CLEAR_BIT(COMP->CSR, COMP_CSR_COMP1EN) : \ 315 CLEAR_BIT(COMP->CSR, COMP_CSR_COMP2EN)) 323 SET_BIT(COMP->CSR, COMP_CSR_COMP1LOCK) : \ 324 SET_BIT(COMP->CSR, COMP_CSR_COMP2LOCK))
|
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/include/ |
D | stm32l1xx_ll_comp.h | 384 MODIFY_REG(COMP->CSR, COMP_CSR_SPEED, PowerMode); in LL_COMP_SetPowerMode() 399 return (uint32_t)(READ_BIT(COMP->CSR, COMP_CSR_SPEED)); in LL_COMP_GetPowerMode() 567 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputMinus() 595 return (uint32_t)((READ_BIT(COMP->CSR, COMP_CSR_INSEL) * __COMP_IS_INSTANCE_EVEN(COMPx)) in LL_COMP_GetInputMinus() 621 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputPullingResistor() 651 …return (uint32_t)((READ_BIT(COMP->CSR, (COMP_CSR_10KPU | COMP_CSR_400KPU | COMP_CSR_10KPD | COMP_C… in LL_COMP_GetInputPullingResistor() 689 MODIFY_REG(COMP->CSR, in LL_COMP_SetOutputSelection() 719 return (uint32_t)((READ_BIT(COMP->CSR, COMP_CSR_OUTSEL) * __COMP_IS_INSTANCE_EVEN(COMPx)) in LL_COMP_GetOutputSelection() 751 SET_BIT(COMP->CSR, __COMP_IS_INSTANCE_ODD(COMPx) << LL_COMP_ENABLE_COMP1_BITOFFSET_POS); in LL_COMP_Enable() 769 …CLEAR_BIT(COMP->CSR, (COMP_CSR_CMP1EN * __COMP_IS_INSTANCE_ODD(COMPx)) | (COMP_CSR_INSEL * __COMP_… in LL_COMP_Disable() [all …]
|
D | stm32l1xx_hal_adc_ex.h | 245 (SET_BIT(COMP->CSR, COMP_CSR_FCH3)) \ 249 (SET_BIT(COMP->CSR, COMP_CSR_FCH8)) \ 253 (SET_BIT(COMP->CSR, COMP_CSR_RCH13)) \ 255 (SET_BIT(COMP->CSR, 0x00000000)) \ 263 (CLEAR_BIT(COMP->CSR, COMP_CSR_FCH3)) \ 267 (CLEAR_BIT(COMP->CSR, COMP_CSR_FCH8)) \ 271 (CLEAR_BIT(COMP->CSR, COMP_CSR_RCH13)) \ 273 (SET_BIT(COMP->CSR, 0x00000000)) \
|
D | stm32l1xx_hal_comp.h | 324 SET_BIT(COMP->CSR, COMP_CSR_CMP1EN) \ 326 MODIFY_REG(COMP->CSR, COMP_CSR_INSEL, (__HANDLE__)->Init.InvertingInput ) \ 337 CLEAR_BIT(COMP->CSR, COMP_CSR_CMP1EN) \ 339 CLEAR_BIT(COMP->CSR, COMP_CSR_INSEL) \ 564 (((READ_BIT(COMP->CSR , COMP_CSR_CMP1EN) == COMP_CSR_CMP1EN) \ 567 (((READ_BIT(COMP->CSR , COMP_CSR_INSEL) != RESET) \
|
D | stm32l1xx_hal.h | 522 #define __HAL_SYSCFG_VREFINT_OUT_ENABLE() SET_BIT(COMP->CSR, COMP_CSR_VREFOUTEN) 523 #define __HAL_SYSCFG_VREFINT_OUT_DISABLE() CLEAR_BIT(COMP->CSR, COMP_CSR_VREFOUTEN) 747 #define __HAL_RI_SWITCH_COMP1_SW1_CLOSE() SET_BIT(COMP->CSR, COMP_CSR_SW1) 749 #define __HAL_RI_SWITCH_COMP1_SW1_OPEN() CLEAR_BIT(COMP->CSR, COMP_CSR_SW1)
|
D | stm32l1xx_ll_system.h | 984 SET_BIT(COMP->CSR, COMP_CSR_VREFOUTEN); in LL_VREFOUT_Enable() 994 CLEAR_BIT(COMP->CSR, COMP_CSR_VREFOUTEN); in LL_VREFOUT_Disable() 1004 return ((READ_BIT(COMP->CSR, COMP_CSR_VREFOUTEN) == COMP_CSR_VREFOUTEN) ? 1UL : 0UL); in LL_VREFOUT_IsEnabled()
|
D | stm32l1xx_hal_comp_ex.h | 288 (READ_BIT(COMP->CSR, COMP_CSR_SW1) == RESET) )
|
D | stm32l1xx_ll_adc.h | 4056 MODIFY_REG(COMP->CSR, Channel, (Routing << POSITION_VAL(Channel))); in LL_ADC_SetChannelRouting() 4093 return (uint32_t)(READ_BIT(COMP->CSR, Channel) >> POSITION_VAL(Channel)); in LL_ADC_GetChannelRouting()
|
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/include/ |
D | stm32f3xx_ll_comp.h | 1799 MODIFY_REG(COMP->CSR, in LL_COMP_SetPowerMode() 1817 return (uint32_t)(READ_BIT(COMP->CSR, in LL_COMP_GetPowerMode() 1864 MODIFY_REG(COMP->CSR, in LL_COMP_ConfigInputs() 1889 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputPlus() 1912 return (uint32_t)(READ_BIT(COMP->CSR, in LL_COMP_GetInputPlus() 1941 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputMinus() 1968 return (uint32_t)(READ_BIT(COMP->CSR, in LL_COMP_GetInputMinus() 1988 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputHysteresis() 2006 return (uint32_t)(READ_BIT(COMP->CSR, in LL_COMP_GetInputHysteresis() 2044 MODIFY_REG(COMP->CSR, in LL_COMP_SetOutputSelection() [all …]
|
D | stm32f3xx_hal_comp_ex.h | 620 SET_BIT(COMP->CSR, (uint32_t)COMP_CSR_COMPxEN << regshift); \ 636 CLEAR_BIT(COMP->CSR, (uint32_t)COMP_CSR_COMPxEN << regshift); \ 652 SET_BIT(COMP->CSR, (uint32_t)COMP_CSR_COMPxLOCK << regshift); \ 1552 MODIFY_REG(COMP->CSR, \ 1565 COMP->CSR |= COMP_CSR_WNDWEN; \ 1582 MODIFY_REG(COMP->CSR, \
|
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/ |
D | stm32f0xx_hal_comp.c | 343 MODIFY_REG(COMP->CSR, in HAL_COMP_Init() 356 COMP->CSR |= COMP_CSR_WNDWEN; in HAL_COMP_Init() 393 MODIFY_REG(COMP->CSR, in HAL_COMP_DeInit() 656 SET_BIT(COMP->CSR, COMP_CSR_COMPxEN << regshift); in HAL_COMP_Start() 704 CLEAR_BIT(COMP->CSR, COMP_CSR_COMPxEN << regshift); in HAL_COMP_Stop() 852 SET_BIT(COMP->CSR, COMP_CSR_COMPxLOCK << regshift); in HAL_COMP_Lock() 887 level = READ_BIT(COMP->CSR, COMP_CSR_COMPxOUT << regshift); in HAL_COMP_GetOutputLevel()
|
D | stm32f0xx_ll_comp.c | 153 CLEAR_BIT(COMP->CSR, in LL_COMP_DeInit() 166 CLEAR_BIT(COMP->CSR, in LL_COMP_DeInit() 230 MODIFY_REG(COMP->CSR, in LL_COMP_Init() 250 MODIFY_REG(COMP->CSR, in LL_COMP_Init()
|
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/src/ |
D | stm32l1xx_hal_comp.c | 347 MODIFY_REG(COMP->CSR, COMP_CSR_400KPD | COMP_CSR_10KPD | COMP_CSR_400KPU | COMP_CSR_10KPU, in HAL_COMP_Init() 360 MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL | in HAL_COMP_Init() 369 MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL | in HAL_COMP_Init() 391 if(READ_BIT(COMP->CSR, COMP_CSR_SW1) != RESET) in HAL_COMP_Init() 457 CLEAR_BIT(COMP->CSR , COMP_CSR_400KPD | COMP_CSR_10KPD | COMP_CSR_400KPU | COMP_CSR_10KPU); in HAL_COMP_DeInit() 461 CLEAR_BIT(COMP->CSR , COMP_CSR_OUTSEL | in HAL_COMP_DeInit() 984 if(READ_BIT(COMP->CSR, __COMP_CSR_CMPXOUT(hcomp)) == RESET) in HAL_COMP_GetOutputLevel()
|
D | stm32l1xx_ll_comp.c | 216 CLEAR_BIT(COMP->CSR, in LL_COMP_DeInit() 227 CLEAR_BIT(COMP->CSR, in LL_COMP_DeInit() 279 MODIFY_REG(COMP->CSR, in LL_COMP_Init()
|
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/ |
D | stm32f3xx_ll_comp.c | 869 CLEAR_BIT(COMP->CSR, in LL_COMP_DeInit() 882 CLEAR_BIT(COMP->CSR, in LL_COMP_DeInit() 946 MODIFY_REG(COMP->CSR, in LL_COMP_Init() 966 MODIFY_REG(COMP->CSR, in LL_COMP_Init()
|
/hal_stm32-latest/stm32cube/stm32f0xx/soc/ |
D | stm32f058xx.h | 604 #define COMP ((COMP1_2_TypeDef *) COMP_BASE) /* Kept for legacy purpose */ macro
|
D | stm32f051x8.h | 605 #define COMP ((COMP1_2_TypeDef *) COMP_BASE) /* Kept for legacy purpose */ macro
|
D | stm32f071xb.h | 636 #define COMP ((COMP1_2_TypeDef *) COMP_BASE) /* Kept for legacy purpose */ macro
|
/hal_stm32-latest/stm32cube/stm32l1xx/soc/ |
D | stm32l152xb.h | 681 #define COMP ((COMP_TypeDef *) COMP_BASE) /* COMP generic instance i… macro
|
D | stm32l152xba.h | 666 #define COMP ((COMP_TypeDef *) COMP_BASE) /* COMP generic instance i… macro
|
D | stm32l100xba.h | 665 #define COMP ((COMP_TypeDef *) COMP_BASE) /* COMP generic instance i… macro
|
D | stm32l100xb.h | 665 #define COMP ((COMP_TypeDef *) COMP_BASE) /* COMP generic instance i… macro
|
D | stm32l151xb.h | 664 #define COMP ((COMP_TypeDef *) COMP_BASE) /* COMP generic instance i… macro
|
D | stm32l151xba.h | 664 #define COMP ((COMP_TypeDef *) COMP_BASE) /* COMP generic instance i… macro
|