diff options
Diffstat (limited to 'drivers/haptic/DRV2605L.h')
-rw-r--r-- | drivers/haptic/DRV2605L.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/drivers/haptic/DRV2605L.h b/drivers/haptic/DRV2605L.h index de9d294e9..836e9cbcd 100644 --- a/drivers/haptic/DRV2605L.h +++ b/drivers/haptic/DRV2605L.h | |||
@@ -31,13 +31,6 @@ | |||
31 | #define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */ | 31 | #define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */ |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #ifndef RATED_VOLTAGE | ||
35 | #define RATED_VOLTAGE 2 /* 2v as safe range in case device voltage is not set */ | ||
36 | #ifndef V_PEAK | ||
37 | #define V_PEAK 2.8 | ||
38 | #endif | ||
39 | #endif | ||
40 | |||
41 | /* LRA specific settings */ | 34 | /* LRA specific settings */ |
42 | #if FB_ERM_LRA == 1 | 35 | #if FB_ERM_LRA == 1 |
43 | #ifndef V_RMS | 36 | #ifndef V_RMS |
@@ -49,6 +42,16 @@ | |||
49 | #ifndef F_LRA | 42 | #ifndef F_LRA |
50 | #define F_LRA 205 | 43 | #define F_LRA 205 |
51 | #endif | 44 | #endif |
45 | #ifndef RATED_VOLTAGE | ||
46 | #define RATED_VOLTAGE 2 /* 2v as safe range in case device voltage is not set */ | ||
47 | #endif | ||
48 | #endif | ||
49 | |||
50 | #ifndef RATED_VOLTAGE | ||
51 | #define RATED_VOLTAGE 2 /* 2v as safe range in case device voltage is not set */ | ||
52 | #endif | ||
53 | #ifndef V_PEAK | ||
54 | #define V_PEAK 2.8 | ||
52 | #endif | 55 | #endif |
53 | 56 | ||
54 | /* Library Selection */ | 57 | /* Library Selection */ |
@@ -60,6 +63,13 @@ | |||
60 | #endif | 63 | #endif |
61 | #endif | 64 | #endif |
62 | 65 | ||
66 | #ifndef DRV_GREETING | ||
67 | #define DRV_GREETING alert_750ms | ||
68 | #endif | ||
69 | #ifndef DRV_MODE_DEFAULT | ||
70 | #define DRV_MODE_DEFAULT strong_click1 | ||
71 | #endif | ||
72 | |||
63 | /* Control 1 register settings */ | 73 | /* Control 1 register settings */ |
64 | #ifndef DRIVE_TIME | 74 | #ifndef DRIVE_TIME |
65 | #define DRIVE_TIME 25 | 75 | #define DRIVE_TIME 25 |
@@ -162,7 +172,6 @@ void DRV_write(const uint8_t drv_register, const uint8_t settings); | |||
162 | uint8_t DRV_read(const uint8_t regaddress); | 172 | uint8_t DRV_read(const uint8_t regaddress); |
163 | void DRV_pulse(const uint8_t sequence); | 173 | void DRV_pulse(const uint8_t sequence); |
164 | 174 | ||
165 | |||
166 | typedef enum DRV_EFFECT{ | 175 | typedef enum DRV_EFFECT{ |
167 | clear_sequence = 0, | 176 | clear_sequence = 0, |
168 | strong_click = 1, | 177 | strong_click = 1, |
@@ -288,6 +297,7 @@ typedef enum DRV_EFFECT{ | |||
288 | smooth_hum3_30 = 121, | 297 | smooth_hum3_30 = 121, |
289 | smooth_hum4_20 = 122, | 298 | smooth_hum4_20 = 122, |
290 | smooth_hum5_10 = 123, | 299 | smooth_hum5_10 = 123, |
300 | drv_effect_max = 124, | ||
291 | } DRV_EFFECT; | 301 | } DRV_EFFECT; |
292 | 302 | ||
293 | /* Register bit array unions */ | 303 | /* Register bit array unions */ |