ana_cmpr_set_cross_type() function
Set the source signal cross type
Arguments
cmpr
The handle of analog comparator unit
cross_type
The source signal cross type that can trigger the interrupt
Return value
- ESP_OK Set denounce configuration success - ESP_ERR_INVALID_ARG NULL pointer of the parameters
Notes
The initial cross type is configured in `ana_cmpr_new_unit`, this function can update the cross type This function is allowed to run within ISR context including intr callbacks This function will be placed into IRAM if `CONFIG_ANA_CMPR_CTRL_FUNC_IN_IRAM` is on, so that it's allowed to be executed when Cache is disabled