Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

CS40L5x configuration structure for a device instance. More...

#include <zephyr/drivers/haptics/cs40l5x.h>

Public Member Functions

 LOG_INSTANCE_PTR_DECLARE (log)
 Control port devices.

Data Fields

const struct device *const dev
 < Pointer to CS40L5x device instance
struct cs40l5x_data *const data
 Logger configuration for instance-based logging.
const struct cs40l5x_bus bus
 Control port I/O functions.
const struct cs40l5x_bus_io *const bus_io
 Required GPIO for hardware resets.
struct gpio_dt_spec reset_gpio
 Optional GPIO for hardware and DSP interrupts.
struct gpio_dt_spec interrupt_gpio
 Optional GPIOs for edge-triggered haptic effects.
struct cs40l5x_trigger_gpios trigger_gpios
 Optional flash storage, configurable via devicetree property 'flash-storage'.
const struct deviceflash
 Optional flash register offset, configurable via devicetree property 'flash-offset'.
const off_t flash_offset
 Boost setting, configurable via devicetree property 'external-boost'.
const struct device *const external_boost

Detailed Description

CS40L5x configuration structure for a device instance.

Member Function Documentation

◆ LOG_INSTANCE_PTR_DECLARE()

cs40l5x_config::LOG_INSTANCE_PTR_DECLARE ( log )

Control port devices.

Field Documentation

◆ bus

const struct cs40l5x_bus cs40l5x_config::bus

Control port I/O functions.

◆ bus_io

const struct cs40l5x_bus_io* const cs40l5x_config::bus_io

Required GPIO for hardware resets.

◆ data

struct cs40l5x_data* const cs40l5x_config::data

Logger configuration for instance-based logging.

◆ dev

const struct device* const cs40l5x_config::dev

< Pointer to CS40L5x device instance

Pointer to data structure for CS40L5x device instance

◆ external_boost

const struct device* const cs40l5x_config::external_boost

◆ flash

const struct device* cs40l5x_config::flash

Optional flash register offset, configurable via devicetree property 'flash-offset'.

◆ flash_offset

const off_t cs40l5x_config::flash_offset

Boost setting, configurable via devicetree property 'external-boost'.

◆ interrupt_gpio

struct gpio_dt_spec cs40l5x_config::interrupt_gpio

Optional GPIOs for edge-triggered haptic effects.

◆ reset_gpio

struct gpio_dt_spec cs40l5x_config::reset_gpio

Optional GPIO for hardware and DSP interrupts.

◆ trigger_gpios

struct cs40l5x_trigger_gpios cs40l5x_config::trigger_gpios

Optional flash storage, configurable via devicetree property 'flash-storage'.


The documentation for this struct was generated from the following file: