;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Copyright (c) 2002 TIMEX Corporation.
; 
; This document is the property of, and contains information proprietary to
; TIMEX Corporation.  It is to be returned upon request.  Reproduction by any
; means, disclosure, or use of its contents for other than the expressed
; purpose for which it is loaned, without the written consent of TIMEX
; Corporation, is strictly prohibited.
;
; File Name:    note.h
;
; Purpose:      header file for the M851 Note Mode
;
; File Change History:
;
;               01/02/2002 RMA - Created File for the M851 project
;
;               03/21/2002 FSU - Updated.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;   STATES  REDEFINITIONS
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

NOTEBANNERSTATE                 equ     COREBANNERSTATE
NOTEDEFAULTSTATE                equ     COREDEFAULTSTATE
NOTESETBANNERSTATE              equ     CORESETBANNERSTATE
NOTESETSTATE                    equ     CORESETSTATE
NOTEBUSYSTATE                   equ     COREPOPUPSTATE
NOTEPASSWORDDEFAULTSTATE        equ     COREPASSWORDDEFAULTSTATE  
NOTEPASSWORDSETBANNERSTATE      equ     COREPASSWORDSETBANNERSTATE
NOTEPASSWORDSETSTATE            equ     COREPASSWORDSETSTATE      
NOTEDEADENDSTATE                equ     COREMISCSTATE3      

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; SWITCH MASK REDEFINITIONS 
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

NOTE_MODE_SWITCHMASK            equ     bCORESwitch1  
NOTE_STOPRESET_SWITCHMASK       equ     bCORESwitch2  
NOTE_STARTSPLIT_SWITCHMASK      equ     bCORESwitch3
NOTE_CW_SWITCHMASK              equ     bCORECWSwitch 
NOTE_CCW_SWITCHMASK             equ     bCORECCWSwitch
NOTE_ALLSWITCHES_MASK           equ     (bCORESwitch1 + bCORESwitch2 + bCORESwitch3 + bCORECWSwitch + bCORECCWSwitch)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; EVENT REDEFINITIONS
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

NOTEEVENT_STATEENTRY            equ     COREEVENT_STATEENTRY

NOTEEVENT_CWEDGE                equ     COREEVENT_CW_EDGE_TRAILING
NOTEEVENT_CCWEDGE               equ     COREEVENT_CCW_EDGE_TRAILING

NOTEEVENT_CWPULSE               equ     COREEVENT_CW_PULSES
NOTEEVENT_CCWPULSE              equ     COREEVENT_CCW_PULSES

NOTEEVENT_TIMEOUTDONEHIGHRES    equ     COREEVENT_TIMEOUTDONE_HIGHRES

NOTEEVENT_CROWNHOME             equ     COREEVENT_CROWN_HOME
NOTEEVENT_CROWNSET              equ     COREEVENT_CROWN_SET

NOTEEVENT_MODEDEPRESS           equ     COREEVENT_SWITCH1DEPRESS
NOTEEVENT_STOPRESETDEPRESS      equ     COREEVENT_SWITCH2DEPRESS
NOTEEVENT_STARTSPLITDEPRESS     equ     COREEVENT_SWITCH3DEPRESS

NOTEEVENT_MODERELEASE           equ     COREEVENT_SWITCH1RELEASE
NOTEEVENT_STOPRESETRELEASE      equ     COREEVENT_SWITCH2RELEASE
NOTEEVENT_STARTSPLITRELEASE     equ     COREEVENT_SWITCH3RELEASE

NOTEEVENT_ANYSWITCHDEPRESS      equ     COREEVENT_ANYSWITCHDEPRESS