Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tm6605.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Anuj Deshpande
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_HAPTICS_TM6605_H_
14#define ZEPHYR_INCLUDE_DRIVERS_HAPTICS_TM6605_H_
15
17#include <zephyr/types.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
34
139};
140
154int tm6605_select_effect(const struct device *dev, enum tm6605_effect effect);
155
157
158#ifdef __cplusplus
159}
160#endif /* __cplusplus */
161
162#endif /* ZEPHYR_INCLUDE_DRIVERS_HAPTICS_TM6605_H_ */
tm6605_effect
TM6605 pre-programmed effect IDs.
Definition tm6605.h:42
int tm6605_select_effect(const struct device *dev, enum tm6605_effect effect)
Select the haptic effect to be played by the next start_output call.
@ TM6605_EFFECT_DOUBLE_MEDIUM_CLICK_SHORT
Short-gap double medium-click, ~120 ms.
Definition tm6605.h:66
@ TM6605_EFFECT_LONG_FAST_BOOST_1
Long fast boost transition 1, ~290 ms.
Definition tm6605.h:116
@ TM6605_EFFECT_DOUBLE_MEDIUM_INSTANT_CLICK_LONG
Long-gap double medium-instant-click, ~150 ms.
Definition tm6605.h:72
@ TM6605_EFFECT_SLEEP_COMMAND
Sleep command.
Definition tm6605.h:138
@ TM6605_EFFECT_LONG_SLOW_FADE_1
Long slow fade-out transition 1, ~390 ms.
Definition tm6605.h:80
@ TM6605_EFFECT_SOFT_NOISE
Soft noise, ~480 ms.
Definition tm6605.h:130
@ TM6605_EFFECT_MEDIUM_SLOW_BOOST_2
Medium slow boost transition 2, ~640 ms.
Definition tm6605.h:110
@ TM6605_EFFECT_LONG_SLOW_FADE_2
Long slow fade-out transition 2, ~620 ms.
Definition tm6605.h:82
@ TM6605_EFFECT_SHORT_SLOW_FADE_1
Short slow fade-out transition 1, ~410 ms.
Definition tm6605.h:88
@ TM6605_EFFECT_MEDIUM_DURATION_ALERT
Medium-duration alert, ~730 ms.
Definition tm6605.h:56
@ TM6605_EFFECT_DOUBLE_INSTANT_CLICK_LONG
Long-gap double instant-click, ~150 ms.
Definition tm6605.h:70
@ TM6605_EFFECT_LONG_SLOW_BOOST_2
Long slow boost transition 2, ~650 ms.
Definition tm6605.h:106
@ TM6605_EFFECT_SHORT_SLOW_BOOST_2
Short slow boost transition 2, ~460 ms.
Definition tm6605.h:114
@ TM6605_EFFECT_TOGGLE_CLICK
Toggle click, ~620 ms.
Definition tm6605.h:78
@ TM6605_EFFECT_DOUBLE_FLASH_STRIKE_SHORT
Short-gap double flash-strike, ~100 ms.
Definition tm6605.h:68
@ TM6605_EFFECT_ALERT
Alert, ~240 ms.
Definition tm6605.h:76
@ TM6605_EFFECT_SHORT_SLOW_BOOST_1
Short slow boost transition 1, ~320 ms.
Definition tm6605.h:112
@ TM6605_EFFECT_LONG_FAST_FADE_2
Long fast fade-out transition 2, ~390 ms.
Definition tm6605.h:94
@ TM6605_EFFECT_DOUBLE_CLICK
Double click, ~200 ms.
Definition tm6605.h:50
@ TM6605_EFFECT_MEDIUM_FAST_BOOST_2
Medium fast boost transition 2, ~590 ms.
Definition tm6605.h:122
@ TM6605_EFFECT_SHARP_CLICK
Sharp click, ~65 ms.
Definition tm6605.h:44
@ TM6605_EFFECT_INSTANT_CLICK
Instant click, ~45 ms.
Definition tm6605.h:46
@ TM6605_EFFECT_MEDIUM_FAST_BOOST_1
Medium fast boost transition 1, ~320 ms.
Definition tm6605.h:120
@ TM6605_EFFECT_LIGHT_PULSE
Light pulse, ~215 ms.
Definition tm6605.h:52
@ TM6605_EFFECT_MEDIUM_FAST_FADE_1
Medium fast fade-out transition 1, ~310 ms.
Definition tm6605.h:96
@ TM6605_EFFECT_MEDIUM_SLOW_FADE_1
Medium slow fade-out transition 1, ~400 ms.
Definition tm6605.h:84
@ TM6605_EFFECT_LONG_SLOW_BOOST_1
Long slow boost transition 1, ~320 ms.
Definition tm6605.h:104
@ TM6605_EFFECT_MEDIUM_CLICK
Medium-strength click, ~65 ms.
Definition tm6605.h:60
@ TM6605_EFFECT_LONG_ALERT
Long alert, ~10 s.
Definition tm6605.h:128
@ TM6605_EFFECT_SHORT_FAST_FADE_2
Short fast fade-out transition 2, ~350 ms.
Definition tm6605.h:102
@ TM6605_EFFECT_DOUBLE_FLASH_STRIKE_LONG
Long-gap double flash-strike, ~150 ms.
Definition tm6605.h:74
@ TM6605_EFFECT_SHARP_CLICK_2
Sharp click 2, ~90 ms.
Definition tm6605.h:58
@ TM6605_EFFECT_SHORT_FAST_BOOST_1
Short fast boost transition 1, ~330 ms.
Definition tm6605.h:124
@ TM6605_EFFECT_MEDIUM_SLOW_FADE_2
Medium slow fade-out transition 2, ~650 ms.
Definition tm6605.h:86
@ TM6605_EFFECT_SHORT_FAST_BOOST_2
Short fast boost transition 2, ~470 ms.
Definition tm6605.h:126
@ TM6605_EFFECT_MEDIUM_SLOW_BOOST_1
Medium slow boost transition 1, ~310 ms.
Definition tm6605.h:108
@ TM6605_EFFECT_SHORT_FAST_FADE_1
Short fast fade-out transition 1, ~340 ms.
Definition tm6605.h:100
@ TM6605_EFFECT_SHORT_SLOW_FADE_2
Short slow fade-out transition 2, ~490 ms.
Definition tm6605.h:90
@ TM6605_EFFECT_LONG_FAST_FADE_1
Long fast fade-out transition 1, ~340 ms.
Definition tm6605.h:92
@ TM6605_EFFECT_MEDIUM_FAST_FADE_2
Medium fast fade-out transition 2, ~360 ms.
Definition tm6605.h:98
@ TM6605_EFFECT_STRONG_ALERT
Strong alert, ~190 ms.
Definition tm6605.h:54
@ TM6605_EFFECT_FLASH_STRIKE
Flash strike, ~20 ms.
Definition tm6605.h:62
@ TM6605_EFFECT_DOUBLE_HIGH_CLICK_SHORT
Short-gap double high-click, ~120 ms.
Definition tm6605.h:64
@ TM6605_EFFECT_LIGHT_TAP
Light tap, ~130 ms.
Definition tm6605.h:48
@ TM6605_EFFECT_LONG_FAST_BOOST_2
Long fast boost transition 2, ~615 ms.
Definition tm6605.h:118
Main header file for haptics driver API.
Runtime device structure (in ROM) per driver instance.
Definition device.h:513