;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; 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      : utlAccMc.h
;
; Macro Names    : UTLACCELERATION_1SEC        -  1 Sec acceleration table.
;                  UTL_ACCELERATION_1INCREMENT - Generic 1 unit acceleration table.
;                  
;                  UTLACCELERATION_1MIN        - 1 Min acceleration table.
;                  
;                  UTLACCELERATION_5MIN        - 5 Min acceleration table.
;                  UTL_ACCELERATION_5INCREMENT - Generic 5 units accleration.
;                   
;                  UTLACCELERATION_DATE        - Get number of days from the 
;                                                  utlAccelerationTable1Min 
;                                                  acceleration table and return 
;                                                  the number in AReg.
;                  
; Purpose        : Acceration utility.
;
; Change History : 
;
;               06/03/2000 RVD - Created utlbmac.h for m841
;
;   M851 Development:
;
;               02/12/2002 FSU - Modified for M851 development.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Macro Name  : UTLACCELERATION_1SEC / UTL_ACCELERATION_1INCREMENT
;
; Description : 1 Sec acceleration table / Generic 1 unit acceleration table.
;
;               Clears the KRESxxxBuffer first before loading the acceleration
;                 value.
;
; Assumptions : None
;                         
; Usage       : UTLACCELERATION_1SEC / UTL_ACCELERATION_1INCREMENT
;               
; Input(s)    : COREEventArgument - Index into the acceleration table contains
;                                     the number of pulses detected within
;                                     16hz window.
;
; Output(s)   : KRESSecBuffer       - the Acceleration value of data. 
;               
;               ( Destroyed:  IXReg, IYReg, HLReg )
; 
; Macro Change History : 
;
;               05/31/2000 RMA  - Created macro
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

UTLACCELERATION_1SEC    MACRO

                car     utlAcceleration1Sec

        CALLS   SUBROUTINE, 'utlAcceleration1Sec'
        
        ENDM

UTL_ACCELERATION_1INCREMENT     MACRO

                car     utlAccelerationOneIncrement

        CALLS   SUBROUTINE, 'utlAccelerationOneIncrement'

        ENDM


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Macro Name  : UTLACCELERATION_1MIN
;
; Description : 1 Min acceleration table.
;
;               Clears the KRESxxxBuffer first before loading the acceleration
;                 value.
;
; Assumptions : None
;                         
; Usage       : UTLACCELERATION_1MIN
;               
; Input(s)    : COREEventArgument - Index into the acceleration table contains
;                                    the number of pulses detected within
;                                    16hz window.
;
; Output(s)   : KRESMinBuffer     - the Acceleration value of data
;
;               ( Destroyed:  IXReg, IYReg, HLReg ) 
;
; Macro Change History : 
;
;               05/31/2000 RMA  - Created macro
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

UTLACCELERATION_1MIN    MACRO

                car     utlAcceleration1Min

        CALLS   SUBROUTINE, 'utlAcceleration1Min'
                        
        ENDM

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Macro Name  : UTLACCELERATION_5MIN / UTL_ACCELERATION_5INCREMENT
;
; Description : 5 Min acceleration table / Generic 5 units accleration
;
;               Clears the KRESxxxBuffer first before loading the acceleration
;                 value.
;
; Assumptions : None
;                         
; Usage       : UTLACCELERATION_5MIN / UTL_ACCELERATION_5INCREMENT
;               
; Input(s)    : COREEventArgument - Index into the acceleration table contains
;                                     the number of pulses detected within
;                                     16hz window.
;
; Output(s)   : KRESMinBuffer     - the Acceleration value of data.
;
;               ( Destroyed:  IXReg, IYReg, HLReg ) 
;
; Macro Change History : 
;
;               05/31/2000 RMA  - Created macro
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

UTLACCELERATION_5MIN    MACRO

                car     utlAcceleration5Min

        CALLS   SUBROUTINE, 'utlAcceleration5Min'
        
        ENDM


UTL_ACCELERATION_5INCREMENT    MACRO

                car     utlAccelerationFiveIncrements

        CALLS   SUBROUTINE, 'utlAccelerationFiveIncrements'

        ENDM 
        

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Macro Name  : UTLACCELERATION_DATE
;
; Description : Get number of days from the utlAccelerationTable1Min
;                 acceleration table and return the number in AReg.
;
; Assumptions : None
;                         
; Usage       : UTLACCELERATION_DATE
;               
; Input(s)    : COREEventArgument - Index into the acceleration table contains
;                                     the number of pulses detected within
;                                     16hz window.
;
; Output(s)   : AReg - Number of days from the accel table for the given number
;                        of pulses.
;
;               ( Destroyed:  None ) 
;
; Macro Change History : 
;
;               03/11/2002 JDS - Created File for 851   
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

UTLACCELERATION_DATE    MACRO

                car     utlAccelerationDate

        CALLS   SUBROUTINE, 'utlAccelerationDate'

        ENDM