Fix for hack that worked around iOS app

Committer:
roysandberg
Date:
Wed May 11 02:28:16 2016 +0000
Revision:
5:c9d71618070d
Parent:
4:d3858592d3b5
Version with heart rate 30 second mode

Who changed what in which revision?

UserRevisionLine numberNew 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 2:4f76784f8968 14 #ifndef ACTUATOR_WAVEAFORMS_H
roysandberg 2:4f76784f8968 15 #define ACTUATOR_WAVEAFORMS_H
roysandberg 0:8c0ecbdd3449 16
roysandberg 0:8c0ecbdd3449 17 #include "Haptics.h"
roysandberg 0:8c0ecbdd3449 18
roysandberg 0:8c0ecbdd3449 19 #define LRA_AUTOON_MAX 0xF0 // Set the maximum amplitude for auto-resonance ON mode
roysandberg 0:8c0ecbdd3449 20 #define LRA_AUTOOFF_MAX 0xD8 //0xE6 // Set the maximum amplitude for auto-resonance OFF mode
roysandberg 0:8c0ecbdd3449 21
roysandberg 0:8c0ecbdd3449 22 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 23 //LRA Standard Effects
roysandberg 0:8c0ecbdd3449 24 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 25 extern const Waveform lra_click;
roysandberg 0:8c0ecbdd3449 26 extern const Waveform lra_click_nobrake;
roysandberg 0:8c0ecbdd3449 27 extern const Waveform lra_doubleclick;
roysandberg 0:8c0ecbdd3449 28 extern const Waveform lra_doubleclick_nobrake;
roysandberg 0:8c0ecbdd3449 29 extern const Waveform lra_tripleclick_nobrake; // added by Roy
roysandberg 4:d3858592d3b5 30 extern const Waveform lra_quarupleclick_nobrake; // added by Roy
roysandberg 0:8c0ecbdd3449 31 extern const Waveform lra_alert;
roysandberg 0:8c0ecbdd3449 32 extern const Waveform lra_rampup;
roysandberg 0:8c0ecbdd3449 33 extern const Waveform lra_rampdown;
roysandberg 5:c9d71618070d 34 extern const Waveform lra_reward_pattern;
roysandberg 0:8c0ecbdd3449 35
roysandberg 0:8c0ecbdd3449 36 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 37 //LRA Standard Effects in Dumb Mode
roysandberg 0:8c0ecbdd3449 38 //Note: Using ERM mode to emulate dumb drive, so it must be scaled for 2Vrms
roysandberg 0:8c0ecbdd3449 39 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 40 extern const Waveform lra_click_dumb;
roysandberg 0:8c0ecbdd3449 41 extern const Waveform lra_click_nobrake_dumb;
roysandberg 0:8c0ecbdd3449 42 extern const Waveform lra_doubleclick_dumb;
roysandberg 0:8c0ecbdd3449 43 extern const Waveform lra_doubleclick_nobrake_dumb;
roysandberg 0:8c0ecbdd3449 44 extern const Waveform lra_alert_dumb;
roysandberg 0:8c0ecbdd3449 45
roysandberg 0:8c0ecbdd3449 46 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 47 //ERM Standard Effects
roysandberg 0:8c0ecbdd3449 48 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 49 extern const Waveform erm_click;
roysandberg 0:8c0ecbdd3449 50 extern const Waveform erm_bump;
roysandberg 0:8c0ecbdd3449 51 extern const Waveform erm_doubleclick;
roysandberg 0:8c0ecbdd3449 52 extern const Waveform erm_doublebump;
roysandberg 0:8c0ecbdd3449 53 extern const Waveform erm_alert;
roysandberg 0:8c0ecbdd3449 54 extern const Waveform erm_rampup;
roysandberg 0:8c0ecbdd3449 55 extern const Waveform erm_rampdown;
roysandberg 0:8c0ecbdd3449 56
roysandberg 0:8c0ecbdd3449 57 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 58 //Subtle LRA Effects
roysandberg 0:8c0ecbdd3449 59 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 60 extern const Waveform lra_tick;
roysandberg 0:8c0ecbdd3449 61 extern const Waveform lra_softclick;
roysandberg 0:8c0ecbdd3449 62 extern const Waveform lra_softbump;
roysandberg 0:8c0ecbdd3449 63 extern const Waveform lra_softalert;
roysandberg 0:8c0ecbdd3449 64
roysandberg 0:8c0ecbdd3449 65 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 66 //Simon LRA Effects
roysandberg 0:8c0ecbdd3449 67 //--------------------------------------------------------//
roysandberg 0:8c0ecbdd3449 68 extern const Waveform lra_rampupdoubleclick;
roysandberg 0:8c0ecbdd3449 69 extern const Waveform lra_threeclicks;
roysandberg 2:4f76784f8968 70
roysandberg 2:4f76784f8968 71
roysandberg 2:4f76784f8968 72 #endif