Fix for hack that worked around iOS app
Actuator_Waveforms.h@0:8c0ecbdd3449, 2016-02-02 (annotated)
- Committer:
- roysandberg
- Date:
- Tue Feb 02 22:00:49 2016 +0000
- Revision:
- 0:8c0ecbdd3449
- Child:
- 2:4f76784f8968
Updated Haptics API to provide support for TI haptics effects.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
roysandberg | 0:8c0ecbdd3449 | 1 | /****************************************************************************** |
roysandberg | 0:8c0ecbdd3449 | 2 | * Actuator_Waveforms.h |
roysandberg | 0:8c0ecbdd3449 | 3 | * |
roysandberg | 0:8c0ecbdd3449 | 4 | * Created on: Dec 16, 2011 |
roysandberg | 0:8c0ecbdd3449 | 5 | * Board: DRV2603EVM-CT RevD |
roysandberg | 0:8c0ecbdd3449 | 6 | * Author: a0866685 |
roysandberg | 0:8c0ecbdd3449 | 7 | * |
roysandberg | 0:8c0ecbdd3449 | 8 | * Desc: This file contains the waveform data arrays. See instructions in |
roysandberg | 0:8c0ecbdd3449 | 9 | * Actuator_Waveforms.c to create new waveforms. |
roysandberg | 0:8c0ecbdd3449 | 10 | * |
roysandberg | 0:8c0ecbdd3449 | 11 | * Modified: Feb 15, 2011 - Updated for DRV2603EVM-CT RevC |
roysandberg | 0:8c0ecbdd3449 | 12 | * |
roysandberg | 0:8c0ecbdd3449 | 13 | ******************************************************************************/ |
roysandberg | 0:8c0ecbdd3449 | 14 | |
roysandberg | 0:8c0ecbdd3449 | 15 | #include "Haptics.h" |
roysandberg | 0:8c0ecbdd3449 | 16 | |
roysandberg | 0:8c0ecbdd3449 | 17 | #define LRA_AUTOON_MAX 0xF0 // Set the maximum amplitude for auto-resonance ON mode |
roysandberg | 0:8c0ecbdd3449 | 18 | #define LRA_AUTOOFF_MAX 0xD8 //0xE6 // Set the maximum amplitude for auto-resonance OFF mode |
roysandberg | 0:8c0ecbdd3449 | 19 | |
roysandberg | 0:8c0ecbdd3449 | 20 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 21 | //LRA Standard Effects |
roysandberg | 0:8c0ecbdd3449 | 22 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 23 | extern const Waveform lra_click; |
roysandberg | 0:8c0ecbdd3449 | 24 | extern const Waveform lra_click_nobrake; |
roysandberg | 0:8c0ecbdd3449 | 25 | extern const Waveform lra_doubleclick; |
roysandberg | 0:8c0ecbdd3449 | 26 | extern const Waveform lra_doubleclick_nobrake; |
roysandberg | 0:8c0ecbdd3449 | 27 | extern const Waveform lra_tripleclick_nobrake; // added by Roy |
roysandberg | 0:8c0ecbdd3449 | 28 | extern const Waveform lra_alert; |
roysandberg | 0:8c0ecbdd3449 | 29 | extern const Waveform lra_rampup; |
roysandberg | 0:8c0ecbdd3449 | 30 | extern const Waveform lra_rampdown; |
roysandberg | 0:8c0ecbdd3449 | 31 | |
roysandberg | 0:8c0ecbdd3449 | 32 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 33 | //LRA Standard Effects in Dumb Mode |
roysandberg | 0:8c0ecbdd3449 | 34 | //Note: Using ERM mode to emulate dumb drive, so it must be scaled for 2Vrms |
roysandberg | 0:8c0ecbdd3449 | 35 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 36 | extern const Waveform lra_click_dumb; |
roysandberg | 0:8c0ecbdd3449 | 37 | extern const Waveform lra_click_nobrake_dumb; |
roysandberg | 0:8c0ecbdd3449 | 38 | extern const Waveform lra_doubleclick_dumb; |
roysandberg | 0:8c0ecbdd3449 | 39 | extern const Waveform lra_doubleclick_nobrake_dumb; |
roysandberg | 0:8c0ecbdd3449 | 40 | extern const Waveform lra_alert_dumb; |
roysandberg | 0:8c0ecbdd3449 | 41 | |
roysandberg | 0:8c0ecbdd3449 | 42 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 43 | //ERM Standard Effects |
roysandberg | 0:8c0ecbdd3449 | 44 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 45 | extern const Waveform erm_click; |
roysandberg | 0:8c0ecbdd3449 | 46 | extern const Waveform erm_bump; |
roysandberg | 0:8c0ecbdd3449 | 47 | extern const Waveform erm_doubleclick; |
roysandberg | 0:8c0ecbdd3449 | 48 | extern const Waveform erm_doublebump; |
roysandberg | 0:8c0ecbdd3449 | 49 | extern const Waveform erm_alert; |
roysandberg | 0:8c0ecbdd3449 | 50 | extern const Waveform erm_rampup; |
roysandberg | 0:8c0ecbdd3449 | 51 | extern const Waveform erm_rampdown; |
roysandberg | 0:8c0ecbdd3449 | 52 | |
roysandberg | 0:8c0ecbdd3449 | 53 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 54 | //Subtle LRA Effects |
roysandberg | 0:8c0ecbdd3449 | 55 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 56 | extern const Waveform lra_tick; |
roysandberg | 0:8c0ecbdd3449 | 57 | extern const Waveform lra_softclick; |
roysandberg | 0:8c0ecbdd3449 | 58 | extern const Waveform lra_softbump; |
roysandberg | 0:8c0ecbdd3449 | 59 | extern const Waveform lra_softalert; |
roysandberg | 0:8c0ecbdd3449 | 60 | |
roysandberg | 0:8c0ecbdd3449 | 61 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 62 | //Simon LRA Effects |
roysandberg | 0:8c0ecbdd3449 | 63 | //--------------------------------------------------------// |
roysandberg | 0:8c0ecbdd3449 | 64 | extern const Waveform lra_rampupdoubleclick; |
roysandberg | 0:8c0ecbdd3449 | 65 | extern const Waveform lra_threeclicks; |