Function ac_init()

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.

Note: Once called the Analog Comparator will not be running; to start the Analog Comparator call ac_enable() after configuring the module.
Table 1. Parameters
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