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
15
#include <
zephyr/drivers/haptics.h
>
16
#include <
zephyr/kernel.h
>
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
/* __cplusplus */
21
28
32
enum
cs40l26_source
{
33
CS40L26_SOURCE_BUZ
= HAPTICS_SOURCE_PRIV_START,
34
};
35
49
int
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
cs40l26_source
Wavetable sources for effects.
Definition
cs40l26.h:32
cs40l26_configure_buzz
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
@ CS40L26_SOURCE_BUZ
Playback from the buzz library.
Definition
cs40l26.h:33
haptics.h
Main header file for haptics driver API.
kernel.h
Public kernel APIs.
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:513
include
zephyr
drivers
haptics
cs40l26.h
Generated on
for Zephyr Project API by
1.16.1