This commit is contained in:
2025-06-14 15:03:00 +03:00
parent 15cdd50132
commit 219aa4b9d4
3 changed files with 24 additions and 2 deletions

View File

@@ -83,6 +83,16 @@ extern "C"
*/
esp_err_t zh_encoder_set(zh_encoder_handle_t *handle, double position);
/**
* @brief Get encoder position.
*
* @param[in] handle Pointer to unique encoder handle.
* @param[out] position Encoder position.
*
* @return ESP_OK if success or an error code otherwise.
*/
esp_err_t zh_encoder_get(const zh_encoder_handle_t *handle, double *position);
/**
* @brief Reset encoder position.
*