mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-29 17:48:10 +00:00
21 lines
350 B
C
21 lines
350 B
C
|
|
||
|
#ifndef TREZORHAL_HAPTIC_H
|
||
|
#define TREZORHAL_HAPTIC_H
|
||
|
|
||
|
typedef enum {
|
||
|
HAPTIC_BUTTON_PRESS = 0,
|
||
|
HAPTIC_ALERT = 1,
|
||
|
HAPTIC_HOLD_TO_CONFIRM = 2,
|
||
|
} haptic_effect_t;
|
||
|
|
||
|
// Initialize haptic driver
|
||
|
void haptic_init(void);
|
||
|
|
||
|
// Calibrate haptic driver
|
||
|
void haptic_calibrate(void);
|
||
|
|
||
|
// Play haptic effect
|
||
|
void haptic_play(haptic_effect_t effect);
|
||
|
|
||
|
#endif
|