Initializes and configures the Analog Comparator driver.
enum status_code ac_init( struct ac_module *const module_inst, Ac *const hw, struct ac_config *const config)
Initializes the Analog Comparator driver, configuring it to the user supplied configuration parameters, ready for use. This function should be called before enabling the Analog Comparator.
Data direction | Parameter name | Description |
---|---|---|
[out] |
module_inst |
Pointer to the AC software instance struct |
[in] |
hw |
Pointer to the AC module instance |
[in] |
config |
Pointer to the config struct, created by the user application |