Lines Matching refs:selection
44 void COMP_DeInit(COMP_Selection_TypeDef selection) in COMP_DeInit() argument
46 *(vu32*)(COMP_BASE + selection) = 0; in COMP_DeInit()
67 void COMP_Init(COMP_Selection_TypeDef selection, COMP_InitTypeDef* init_struct) in COMP_Init() argument
69 *(vu32*)(COMP_BASE + selection) = init_struct->Invert | in COMP_Init()
111 void COMP_Cmd(COMP_Selection_TypeDef selection, FunctionalState state) in COMP_Cmd() argument
113 (state) ? (*(vu32*)(COMP_BASE + selection) |= COMP_CSR_EN) : in COMP_Cmd()
114 (*(vu32*)(COMP_BASE + selection) &= ~COMP_CSR_EN); in COMP_Cmd()
144 void COMP_SwitchCmd(COMP_Selection_TypeDef selection, FunctionalState state) in COMP_SwitchCmd() argument
147 (*(vu32*)(COMP_BASE + selection) |= COMP_CSR_COMPSW1) : in COMP_SwitchCmd()
148 (*(vu32*)(COMP_BASE + selection) &= ~COMP_CSR_COMPSW1); in COMP_SwitchCmd()
168 u32 COMP_GetOutputLevel(COMP_Selection_TypeDef selection) in COMP_GetOutputLevel() argument
170 return (((*(vu32*)(COMP_BASE + selection) & COMP_CSR_STA) != 0) ? in COMP_GetOutputLevel()
181 void COMP_LockConfig(COMP_Selection_TypeDef selection) in COMP_LockConfig() argument
183 *(vu32*)(COMP_BASE + selection) |= COMP_CSR_LOCK; in COMP_LockConfig()