/* Disables asynchronous callback generation for a given channel and type. 
Disables asynchronous callbacks for a given logical external interrupt channel and type. */
enum status_code extint_chan_disable_callback(const uint8_t channel, const enum extint_callback_type type)
/* Disables asynchronous callback generation for a given channel and type. 
Disables asynchronous callbacks for a given logical external interrupt channel and type. */
enum status_code extint_chan_disable_callback(const uint8_t channel, const enum extint_callback_type type)
{
	if (type == EXTINT_CALLBACK_TYPE_DETECT) {
		Eic *const eic = _extint_get_eic_from_channel(channel);
		eic->INTENCLR.reg = (1UL << channel);
	}
	else {
		Assert(false);
		return STATUS_ERR_INVALID_ARG;
	}
	return STATUS_OK;
}