Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
cs40l26.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Cirrus Logic, Inc.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
11
12#ifndef ZEPHYR_INCLUDE_DRIVERS_HAPTICS_CS40L26_H_
13#define ZEPHYR_INCLUDE_DRIVERS_HAPTICS_CS40L26_H_
14
16#include <zephyr/kernel.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
28
33 CS40L26_SOURCE_BUZ = HAPTICS_SOURCE_PRIV_START,
34};
35
49int cs40l26_configure_buzz(const struct device *const dev, const uint32_t frequency,
50 const uint8_t level, const uint32_t duration);
51
55
56#ifdef __cplusplus
57}
58#endif /* __cplusplus */
59
60#endif /* ZEPHYR_INCLUDE_DRIVERS_HAPTICS_CS40L26_H_ */
cs40l26_source
Wavetable sources for effects.
Definition cs40l26.h:32
int cs40l26_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.
@ CS40L26_SOURCE_BUZ
Playback from the buzz library.
Definition cs40l26.h:33
Main header file for haptics driver API.
Public kernel APIs.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:513