/* Resets and disables the Analog Comparator driver. 
Resets and disables the Analog Comparator driver, resets the internal states and registers of the hardware module to their power-on defaults. */
enum status_code ac_reset(struct ac_module *const module_inst)
/* Resets and disables the Analog Comparator driver. 
Resets and disables the Analog Comparator driver, resets the internal states and registers of the hardware module to their power-on defaults. */
enum status_code ac_reset(struct ac_module *const module_inst)
{
	Assert(module_inst);
	Assert(module_inst->hw);
	Ac *const ac_module = module_inst->hw;
	ac_disable(module_inst);
	while (ac_is_syncing(module_inst)) {
	}
	ac_module->CTRLA.reg |= AC_CTRLA_SWRST;
	return STATUS_OK;
}