Function esp_idf_sys::touch_pad_set_group_mask

source ·
pub unsafe extern "C" fn touch_pad_set_group_mask(
    set1_mask: u16,
    set2_mask: u16,
    en_mask: u16,
) -> esp_err_t
Expand description

@brief Set touch sensor group mask. Touch pad module has two sets of signals, ‘Touched’ signal is triggered only if at least one of touch pad in this group is “touched”. This function will set the register bits according to the given bitmask. @param set1_mask bitmask of touch sensor signal group1, it’s a 10-bit value @param set2_mask bitmask of touch sensor signal group2, it’s a 10-bit value @param en_mask bitmask of touch sensor work enable, it’s a 10-bit value @return - ESP_OK on success - ESP_ERR_INVALID_ARG if argument is wrong