/hal_stm32-latest/stm32cube/stm32f3xx/drivers/include/ |
D | stm32f3xx_ll_comp.h | 774 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 777 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxMODE, PowerMode); in LL_COMP_SetPowerMode() 797 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 800 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxMODE)); in LL_COMP_GetPowerMode() 854 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 857 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 861 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 865 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 874 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 898 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/include/ |
D | stm32f0xx_ll_comp.h | 384 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 387 COMP_CSR_COMP1MODE << __COMP_BITOFFSET_INSTANCE(COMPx), in LL_COMP_SetPowerMode() 388 PowerMode << __COMP_BITOFFSET_INSTANCE(COMPx) ); in LL_COMP_SetPowerMode() 402 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 405 COMP_CSR_COMP1MODE << __COMP_BITOFFSET_INSTANCE(COMPx)) in LL_COMP_GetPowerMode() 406 >> __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_GetPowerMode() 442 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 448 …MP1INSEL | (COMP_CSR_COMP1SW1 * __COMP_IS_INSTANCE_ODD(COMPx))) << __COMP_BITOFFSET_INSTANCE(COMPx… in LL_COMP_ConfigInputs() 449 …putMinus | InputPlus) << __COMP_BITOFFSET_INSTANCE(COMPx) ); in LL_COMP_ConfigInputs() 467 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/include/ |
D | stm32h7xx_ll_comp.h | 367 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 369 MODIFY_REG(COMPx->CFGR, COMP_CFGRx_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 381 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 383 return (uint32_t)(READ_BIT(COMPx->CFGR, COMP_CFGRx_PWRMODE)); in LL_COMP_GetPowerMode() 433 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 436 MODIFY_REG(COMPx->CFGR, in LL_COMP_ConfigInputs() 442 MODIFY_REG(COMPx->CFGR, in LL_COMP_ConfigInputs() 462 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 465 MODIFY_REG(COMPx->CFGR, COMP_CFGRx_INPSEL | COMP_CFGRx_INP2SEL , InputPlus); in LL_COMP_SetInputPlus() 467 MODIFY_REG(COMPx->CFGR, COMP_CFGRx_INPSEL , InputPlus); in LL_COMP_SetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/include/ |
D | stm32h5xx_ll_comp.h | 298 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 300 MODIFY_REG(COMPx->CFGR1, COMP_CFGR1_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 312 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 314 return (uint32_t)(READ_BIT(COMPx->CFGR1, COMP_CFGR1_PWRMODE)); in LL_COMP_GetPowerMode() 366 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 368 …MODIFY_REG(COMPx->CFGR2, COMP_CFGR2_INPSEL0, ((InputPlus == LL_COMP_INPUT_PLUS_IO2) ? COMP_CFGR2_I… in LL_COMP_ConfigInputs() 370 MODIFY_REG(COMPx->CFGR1, in LL_COMP_ConfigInputs() 389 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 391 …MODIFY_REG(COMPx->CFGR2, COMP_CFGR2_INPSEL0, ((InputPlus == LL_COMP_INPUT_PLUS_IO2) ? COMP_CFGR2_I… in LL_COMP_SetInputPlus() 392 MODIFY_REG(COMPx->CFGR1, COMP_CFGR1_INPSEL1 | COMP_CFGR1_INPSEL2, InputPlus); in LL_COMP_SetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/include/ |
D | stm32l4xx_ll_comp.h | 402 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 404 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 416 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 418 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode() 473 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 476 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 480 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 501 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 503 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 520 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/include/ |
D | stm32l1xx_ll_comp.h | 382 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 397 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 464 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 474 …= ((uint32_t *)((uint32_t) ((uint32_t)(&(RI->ASCR1)) + ((__COMP_IS_INSTANCE_EVEN(COMPx)) << 2U)))); in LL_COMP_SetInputPlus() 477 … (RI_ASCR1_CH * __COMP_IS_INSTANCE_ODD(COMPx)) | (RI_ASCR2_GR6 * __COMP_IS_INSTANCE_EVEN(COMPx)), in LL_COMP_SetInputPlus() 478 InputPlus | ((RI_ASCR1_VCOMP | RI_ASCR1_SCM) * __COMP_IS_INSTANCE_ODD(COMPx))); in LL_COMP_SetInputPlus() 534 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 537 …= ((uint32_t *)((uint32_t) ((uint32_t)(&(RI->ASCR1)) + ((__COMP_IS_INSTANCE_EVEN(COMPx)) << 2U)))); in LL_COMP_GetInputPlus() 540 … (RI_ASCR1_CH * __COMP_IS_INSTANCE_ODD(COMPx)) | (RI_ASCR2_GR6 * __COMP_IS_INSTANCE_EVEN(COMPx)))); in LL_COMP_GetInputPlus() 562 __STATIC_INLINE void LL_COMP_SetInputMinus(COMP_TypeDef *COMPx, uint32_t InputMinus) in LL_COMP_SetInputMinus() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/include/ |
D | stm32l5xx_ll_comp.h | 352 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 354 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 366 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 368 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode() 415 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 417 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 434 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 436 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 450 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 452 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/include/ |
D | stm32wlxx_ll_comp.h | 344 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 346 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 358 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 360 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode() 411 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 413 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 433 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 435 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 452 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 454 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/include/ |
D | stm32wbxx_ll_comp.h | 359 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 361 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 373 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 375 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode() 426 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 428 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 448 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 450 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 467 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 469 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/include/ |
D | stm32l0xx_ll_comp.h | 316 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 318 MODIFY_REG(COMPx->CSR, COMP_CSR_COMP2SPEED, PowerMode); in LL_COMP_SetPowerMode() 332 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 334 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMP2SPEED)); in LL_COMP_GetPowerMode() 380 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 382 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 405 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 407 MODIFY_REG(COMPx->CSR, COMP_CSR_COMP2INPSEL, InputPlus); in LL_COMP_SetInputPlus() 427 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 429 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMP2INPSEL)); in LL_COMP_GetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/include/ |
D | stm32wbaxx_ll_comp.h | 471 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 473 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 486 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 488 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode() 522 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 524 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 540 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 542 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 555 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 557 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/include/ |
D | stm32u5xx_ll_comp.h | 485 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 487 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 499 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 501 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode() 540 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 542 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 560 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 562 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 577 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 579 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/include/ |
D | stm32u0xx_ll_comp.h | 475 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 477 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 488 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 490 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode() 535 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 537 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 559 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 561 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 580 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 582 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/include/ |
D | stm32g0xx_ll_comp.h | 577 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument 579 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode() 590 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument 592 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode() 632 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 634 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 652 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 654 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 669 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 671 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus() [all …]
|
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/include/ |
D | stm32g4xx_ll_comp.h | 330 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument 332 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs() 349 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument 351 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus() 365 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument 367 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus() 409 __STATIC_INLINE void LL_COMP_SetInputMinus(COMP_TypeDef *COMPx, uint32_t InputMinus) in LL_COMP_SetInputMinus() argument 411 MODIFY_REG(COMPx->CSR, COMP_CSR_INMSEL | COMP_CSR_SCALEN | COMP_CSR_BRGEN, InputMinus); in LL_COMP_SetInputMinus() 440 __STATIC_INLINE uint32_t LL_COMP_GetInputMinus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputMinus() argument 442 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INMSEL | COMP_CSR_SCALEN | COMP_CSR_BRGEN)); in LL_COMP_GetInputMinus() [all …]
|
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/ |
D | stm32f3xx_ll_comp.c | 600 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 605 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 609 if (LL_COMP_IsLocked(COMPx) == 0U) in LL_COMP_DeInit() 611 LL_COMP_WriteReg(COMPx, CSR, 0x00000000U); in LL_COMP_DeInit() 636 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 641 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 643 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 644 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() 646 assert_param(IS_LL_COMP_OUTPUT_SELECTION(COMPx, COMP_InitStruct->OutputSelection)); in LL_COMP_Init() 648 assert_param(IS_LL_COMP_OUTPUT_BLANKING_SOURCE(COMPx, COMP_InitStruct->OutputBlankingSource)); in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/ |
D | stm32f0xx_ll_comp.c | 137 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 142 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 146 if(LL_COMP_IsLocked(COMPx) == 0U) in LL_COMP_DeInit() 151 if(COMPx == COMP1) in LL_COMP_DeInit() 161 ) << __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_DeInit() 173 ) << __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_DeInit() 201 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 206 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 208 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 209 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_ll_comp.c | 144 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 149 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 153 if(LL_COMP_IsLocked(COMPx) == 0U) in LL_COMP_DeInit() 155 if(COMPx == COMP1) in LL_COMP_DeInit() 157 CLEAR_BIT(COMPx->CSR, in LL_COMP_DeInit() 169 CLEAR_BIT(COMPx->CSR, in LL_COMP_DeInit() 206 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 211 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 212 if(COMPx == COMP2) in LL_COMP_Init() 215 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_ll_comp.c | 133 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 138 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 142 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_DeInit() 144 LL_COMP_WriteReg(COMPx, CFGR1, 0x00000000UL); in LL_COMP_DeInit() 145 LL_COMP_WriteReg(COMPx, CFGR2, 0x00000000UL); in LL_COMP_DeInit() 170 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, const LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 175 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 177 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 178 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() 181 assert_param(IS_LL_COMP_OUTPUT_BLANKING_SOURCE(COMPx, COMP_InitStruct->OutputBlankingSource)); in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_ll_comp.c | 178 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 183 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 187 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_DeInit() 189 LL_COMP_WriteReg(COMPx, CSR, 0x00000000UL); in LL_COMP_DeInit() 215 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, const LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 220 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 222 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 223 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() 226 assert_param(IS_LL_COMP_OUTPUT_BLANKING_SOURCE(COMPx, COMP_InitStruct->OutputBlankingSource)); in LL_COMP_Init() 230 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/src/ |
D | stm32l1xx_ll_comp.c | 196 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 201 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 214 if(COMPx == COMP1) in LL_COMP_DeInit() 236 LL_COMP_SetInputPlus(COMPx, LL_COMP_INPUT_PLUS_NONE); in LL_COMP_DeInit() 253 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 258 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 259 if(COMPx == COMP2) in LL_COMP_Init() 262 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() 265 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 277 if(COMPx == COMP2) in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/src/ |
D | stm32wbaxx_ll_comp.c | 127 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 132 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 136 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_DeInit() 138 LL_COMP_WriteReg(COMPx, CSR, 0x00000000UL); in LL_COMP_DeInit() 164 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, const LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 169 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 171 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 172 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() 175 assert_param(IS_LL_COMP_OUTPUT_BLANKING_SOURCE(COMPx, COMP_InitStruct->OutputBlankingSource)); in LL_COMP_Init() 179 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_ll_comp.c | 135 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 140 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 144 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_DeInit() 146 LL_COMP_WriteReg(COMPx, CSR, 0x00000000UL); in LL_COMP_DeInit() 172 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, const LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 177 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 179 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 180 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() 183 assert_param(IS_LL_COMP_OUTPUT_BLANKING_SOURCE(COMPx, COMP_InitStruct->OutputBlankingSource)); in LL_COMP_Init() 187 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_ll_comp.c | 149 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 154 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 158 if(LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_DeInit() 160 LL_COMP_WriteReg((COMPx), CFGR, 0x00000000UL); in LL_COMP_DeInit() 186 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 191 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 193 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 194 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() 201 if(LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_Init() 211 MODIFY_REG(COMPx->CFGR, in LL_COMP_Init() [all …]
|
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_ll_comp.c | 130 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx) in LL_COMP_DeInit() argument 135 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_DeInit() 139 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_DeInit() 141 LL_COMP_WriteReg(COMPx, CSR, 0x00000000UL); in LL_COMP_DeInit() 167 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, const LL_COMP_InitTypeDef *COMP_InitStruct) in LL_COMP_Init() argument 172 assert_param(IS_COMP_ALL_INSTANCE(COMPx)); in LL_COMP_Init() 174 assert_param(IS_LL_COMP_INPUT_PLUS(COMPx, COMP_InitStruct->InputPlus)); in LL_COMP_Init() 175 assert_param(IS_LL_COMP_INPUT_MINUS(COMPx, COMP_InitStruct->InputMinus)); in LL_COMP_Init() 182 if (LL_COMP_IsLocked(COMPx) == 0UL) in LL_COMP_Init() 191 MODIFY_REG(COMPx->CSR, in LL_COMP_Init()
|