|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Header file providing the API for the CS40L5x haptic driver. More...
#include <zephyr/drivers/gpio.h>#include <zephyr/drivers/i2c.h>#include <zephyr/drivers/spi.h>#include <zephyr/drivers/haptics.h>#include <zephyr/kernel.h>#include <zephyr/logging/log_instance.h>#include <sys/types.h>Go to the source code of this file.
Data Structures | |
| struct | cs40l5x_pwle_section |
| PWLE section definition. More... | |
Functions | |
| int | cs40l5x_calibrate (const struct device *const dev) |
| Run calibration to derive ReDC and F0 values and apply results for click compensation. | |
| int | cs40l5x_configure_buzz (const struct device *const dev, const uint32_t frequency, const uint8_t level, const uint32_t duration) |
| Configure ROM buzz for haptic playback. | |
| int | cs40l5x_configure_trigger (const struct device *const dev, const struct gpio_dt_spec *const gpio, const enum cs40l5x_bank bank, const uint8_t index, const enum cs40l5x_attenuation attenuation, const enum cs40l5x_trigger_edge edge) |
| Configure edge-triggered haptic effect. | |
| int | cs40l5x_logger (const struct device *const dev, enum cs40l5x_logger logger_state) |
| Enable or disable runtime haptics logging. | |
| int | cs40l5x_logger_get (const struct device *const dev, enum cs40l5x_logger_source source, enum cs40l5x_logger_source_type type, uint32_t *const value) |
| Get runtime haptics logging data for the specified logger source. | |
| int | cs40l5x_select_output (const struct device *const dev, const enum cs40l5x_bank bank, const uint8_t index) |
| Select haptic effect triggered via haptics_start_output(). | |
| int | cs40l5x_set_gain (const struct device *const dev, const uint8_t gain) |
| Configure gain for haptic effects triggered via haptics_start_output(). | |
| int | cs40l5x_upload_pcm (const struct device *const dev, const enum cs40l5x_custom_index index, const uint16_t redc, const uint16_t f0, const int8_t *const samples, const uint16_t num_samples) |
| Upload PCM effect to the specified index. | |
| int | cs40l5x_upload_pwle (const struct device *const dev, const enum cs40l5x_custom_index index, const struct cs40l5x_pwle_section *const sections, const uint8_t num_sections) |
| Upload PWLE effect to the specified index. | |
Header file providing the API for the CS40L5x haptic driver.