;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Copyright (c) 2001-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:    occ.h
;
; Purpose:      Occasion's Mode Header File
;
; File Change History:
;
;				02/26/2002 RBR - Created header file for M851
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


OCCDBTESTALLOCATIONSIZE         equ     00H



;---------------------------------------------------
; Redefinition of CORE States
;---------------------------------------------------

OCCBANNERSTATE          	equ     COREBANNERSTATE
OCCDEFAULTSTATE         	equ     COREDEFAULTSTATE
OCCSET1BANNERSTATE      	equ     CORESET1BANNERSTATE

;---------------------------------------------------
; Redefinition of CORE Events used
;---------------------------------------------------

OCCEVENT_STATEENTRY         equ     COREEVENT_STATEENTRY
OCCEVENT_TIMEOUTLORES       equ     COREEVENT_TIMEOUTDONE_LOWRES
OCCEVENT_TIMEOUTDONE_HIRES	equ		COREEVENT_TIMEOUTDONE_HIGHRES
OCCEVENT_STICKY_TIMEOUTDONE equ		COREEVENT_STICKY_TIMEOUTDONE
OCCEVENT_CROWN_HOME  		equ		COREEVENT_CROWN_HOME
OCCEVENT_CROWN_SET1	    	equ		COREEVENT_CROWN_SET1	   
OCCEVENT_CW_EDGE	    	equ		COREEVENT_CW_EDGE_TRAILING	   
OCCEVENT_CCW_EDGE	    	equ		COREEVENT_CCW_EDGE_TRAILING	   
OCCEVENT_ANYSWITCHDEPRESS	equ		COREEVENT_ANYSWITCHDEPRESS	   
OCCEVENT_ANYSWITCHRELEASE	equ		COREEVENT_ANYSWITCHRELEASE	   

OCCEVENT_MODEDEPRESS  		equ     COREEVENT_SWITCH1DEPRESS
OCCEVENT_STOPRESETDEPRESS	equ     COREEVENT_SWITCH2DEPRESS
OCCEVENT_STARTSPLITDEPRESS	equ     COREEVENT_SWITCH3DEPRESS



OCCEVENT_MODERELEASE  		equ     COREEVENT_SWITCH1RELEASE
OCCEVENT_STOPRESETRELEASE	equ     COREEVENT_SWITCH2RELEASE
OCCEVENT_STARTSPLITRELEASE	equ     COREEVENT_SWITCH3RELEASE


OCCEVENT_DISPLAY_TODRES	  	equ		COREEVENT_DISPLAY_UPDATE_TODRES	   
OCCEVENT_DISPLAY_STPRES		equ		COREEVENT_DISPLAY_UPDATE_STPRES	   
OCCEVENT_MELODY_DONE	    equ		COREEVENT_MELODY_DONE	   
OCCEVENT_POPUP_MEL_CANCELED equ  	COREEVENT_MELODYPOPUPCANCEL


;---------------------------------------------------
; Switch Mask redefinition 
;---------------------------------------------------


OCCDEFAULTSWITCHALLOWED		equ     (bCORESwitch1 | bCORECWSwitch |	bCORECCWSwitch)




;---------------------------------------------------
; Miscellaneous equates.
;---------------------------------------------------


OCCENDOFLISTENTRY			equ      0FFFFh
OCCENDOFLISTDUMMY           equ      0FFFFh
OCCRECURRINGBANKFIRSTRECNO	equ      0

OCCSIZEOF_DATE_AND_MESSLENGTH equ    5
OCCSIZEOF_TYPE_DATE_AND_MESSLENGTH equ 6

OCCRECURRINGTYPE            equ      bOCCRecurring
OCCNONRECURRINGTYPE			equ      0

OCCSIZEOFDATETOCOPY			equ      4

OCCDATEOFFSETFROMRECSTART	equ      1
OCCDATESIZE					equ      4

OCCNONRECURRINGTYPECOMPAREBYTE equ   4
OCCRECURRINGTYPECOMPAREBYTESIZE	equ  2


OCCSPECIFICDATAOFFSET_FOR_ASD equ  	2
OCCSPECIFICDATAOFFSET_FOR_LAST_AND_FIRSTREC equ  8
OCCSIZEOFLASTANDFIRSTRECORDS equ     6
OCCSIZEOFDBTRANSFERASD		 equ     10
OCCSIZEOF_TYPE_AND_DATE		 equ     5

OCCMASKNONOCCDISPTYPEBITS	 equ     07H



;---------------------------------------------------
; Occasion Display types equates.
;---------------------------------------------------




OCCTYPE_BDAY				equ		1
OCCTYPE_ANNV				equ		2
OCCTYPE_HOLIDAY				equ		3
OCCTYPE_VACATION			equ		4


OCCTIMELINEBIT0				equ     00000001b
OCCTIMELINEBIT1				equ     00000010b
OCCTIMELINEBIT2				equ     00000100b
OCCTIMELINEBIT3				equ     00001000b
OCCTIMELINEBIT4				equ     00010000b
OCCTIMELINEBIT5				equ     00100000b
OCCTIMELINEBIT6				equ     01000000b


 