ACMP_Init_TypeDef Struct Reference
ACMP initialization structure.
#include <em_acmp.h>
Data Fields |
|
| bool | fullBias |
|
Full-bias current.
|
|
| uint32_t | biasProg |
|
Bias current.
|
|
| bool | interruptOnFallingEdge |
|
Enable setting the interrupt flag on the falling edge.
|
|
| bool | interruptOnRisingEdge |
|
Enable setting the interrupt flag on the rising edge.
|
|
| ACMP_InputRange_TypeDef | inputRange |
|
Input range.
|
|
| ACMP_Accuracy_TypeDef | accuracy |
|
ACMP accuracy mode.
|
|
| ACMP_PowerSource_TypeDef | powerSource |
|
Select the power source for the ACMP.
|
|
| ACMP_HysteresisLevel_TypeDef | hysteresisLevel_0 |
|
Hysteresis when ACMP output is 0.
|
|
| ACMP_HysteresisLevel_TypeDef | hysteresisLevel_1 |
|
Hysteresis when ACMP output is 1.
|
|
| ACMP_VLPInput_Typedef | vlpInput |
|
VLP Input source.
|
|
| bool | inactiveValue |
|
Inactive value emitted by ACMP during warmup.
|
|
| bool | enable |
|
If true, ACMP is enabled after configuration.
|
|
ACMP initialization structure.
Field Documentation
◆ fullBias
| bool ACMP_Init_TypeDef::fullBias |
Full-bias current.
See the ACMP chapter about bias and response time in the reference manual for details.
◆ biasProg
| uint32_t ACMP_Init_TypeDef::biasProg |
Bias current.
See the ACMP chapter about bias and response time in the reference manual for details. Valid values are in the range 0-7.
◆ interruptOnFallingEdge
| bool ACMP_Init_TypeDef::interruptOnFallingEdge |
Enable setting the interrupt flag on the falling edge.
◆ interruptOnRisingEdge
| bool ACMP_Init_TypeDef::interruptOnRisingEdge |
Enable setting the interrupt flag on the rising edge.
◆ inputRange
| ACMP_InputRange_TypeDef ACMP_Init_TypeDef::inputRange |
Input range.
Adjust this setting to optimize the performance for a given input voltage range.
◆ accuracy
| ACMP_Accuracy_TypeDef ACMP_Init_TypeDef::accuracy |
ACMP accuracy mode.
Select the accuracy mode that matches the required current usage and accuracy requirement. Low accuracy consumes less current while high accuracy consumes more current.
◆ powerSource
| ACMP_PowerSource_TypeDef ACMP_Init_TypeDef::powerSource |
Select the power source for the ACMP.
◆ hysteresisLevel_0
| ACMP_HysteresisLevel_TypeDef ACMP_Init_TypeDef::hysteresisLevel_0 |
Hysteresis when ACMP output is 0.
◆ hysteresisLevel_1
| ACMP_HysteresisLevel_TypeDef ACMP_Init_TypeDef::hysteresisLevel_1 |
Hysteresis when ACMP output is 1.
◆ vlpInput
| ACMP_VLPInput_Typedef ACMP_Init_TypeDef::vlpInput |
VLP Input source.
Select between using VADIV or VBDIV as the VLP source.
◆ inactiveValue
| bool ACMP_Init_TypeDef::inactiveValue |
Inactive value emitted by ACMP during warmup.
◆ enable
| bool ACMP_Init_TypeDef::enable |
If true, ACMP is enabled after configuration.