Function esp_idf_sys::pcnt_set_pin
source ยท pub unsafe extern "C" fn pcnt_set_pin(
unit: pcnt_unit_t,
channel: pcnt_channel_t,
pulse_io: c_int,
ctrl_io: c_int,
) -> esp_err_t
Expand description
@brief Configure PCNT pulse signal input pin and control input pin
@param unit PCNT unit number @param channel PCNT channel number @param pulse_io Pulse signal input GPIO @param ctrl_io Control signal input GPIO
@note Set the signal input to PCNT_PIN_NOT_USED if unused.
@return - ESP_OK Success - ESP_ERR_INVALID_STATE pcnt driver has not been initialized - ESP_ERR_INVALID_ARG Parameter error