summaryrefslogtreecommitdiff
path: root/drivers/haptic/haptic.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/haptic/haptic.h')
-rw-r--r--drivers/haptic/haptic.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/haptic/haptic.h b/drivers/haptic/haptic.h
index 8135d0d439..2f6eb31fc2 100644
--- a/drivers/haptic/haptic.h
+++ b/drivers/haptic/haptic.h
@@ -34,12 +34,14 @@
typedef union {
uint32_t raw;
struct {
- bool enable : 1;
- uint8_t feedback : 2;
- uint8_t mode : 7;
- bool buzz : 1;
- uint8_t dwell : 7;
- uint16_t reserved : 16;
+ bool enable :1;
+ uint8_t feedback :2;
+ uint8_t mode :7;
+ bool buzz :1;
+ uint8_t dwell :7;
+ bool cont :1;
+ uint8_t amplitude :8;
+ uint16_t reserved :7;
};
} haptic_config_t;
@@ -71,6 +73,9 @@ uint8_t haptic_get_mode(void);
uint8_t haptic_get_feedback(void);
void haptic_dwell_increase(void);
void haptic_dwell_decrease(void);
+void haptic_toggle_continuous(void);
+void haptic_cont_increase(void);
+void haptic_cont_decrease(void);
void haptic_play(void);
void haptic_shutdown(void);