;;*****************************************************************************
;;*****************************************************************************
;;  FILENAME: DAC8_1.inc
;;   Version: 2.2, Updated on 2004/10/19 at 16:16:45
;;  Generated by PSoC Designer ver 4.2  b1013 : 02 September, 2004
;;
;;  DESCRIPTION:  Assembler declarations for the DAC8 user module interface
;;                for the 22/24/25/26/27xxx PSoC family of devices.
;;-----------------------------------------------------------------------------
;;  Copyright (c) Cypress MicroSystems 2001-2003. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************

;--------------------------------------------------
; Constants for DAC8_1 API's
;--------------------------------------------------

DAC8_1_OFF:              equ 00h
DAC8_1_LOWPOWER:         equ 01h
DAC8_1_MEDPOWER:         equ 02h
DAC8_1_HIGHPOWER:        equ 03h

DAC8_1_LSB_CR0:          equ 98h
DAC8_1_LSB_CR1:          equ 99h
DAC8_1_LSB_CR2:          equ 9ah
DAC8_1_LSB_CR3:          equ 9bh
DAC8_1_MSB_CR0:          equ 88h
DAC8_1_MSB_CR1:          equ 89h
DAC8_1_MSB_CR2:          equ 8ah
DAC8_1_MSB_CR3:          equ 8bh

DAC8_1_OffsetBinary:     equ 04h
DAC8_1_TwosComplement:   equ 02h
DAC8_1_SignAndMagnitude: equ 01h
DAC8_1_RawRegister:      equ 00h

DAC8_1_DATAFORMAT:       equ 7h
DAC8_1_OFFSETBINARY:     equ DAC8_1_DATAFORMAT & DAC8_1_OffsetBinary
DAC8_1_TWOSCOMPLEMENT:   equ DAC8_1_DATAFORMAT & DAC8_1_TwosComplement
DAC8_1_SIGNANDMAGNITUDE: equ DAC8_1_DATAFORMAT & DAC8_1_SignAndMagnitude

DAC8_1_PHASE_Normal:     equ 0
DAC8_1_PHASE_Swapped:    equ 1

DAC8_1_PHASE_SWAP:       equ DAC8_1_PHASE_Normal

IF DAC8_1_PHASE_SWAP
    DAC8_1_CR0_HIBITS:   equ C0h
ELSE
    DAC8_1_CR0_HIBITS:   equ 80h
ENDIF

;--------------------------------------------------
; Register Address Constants for DAC8_1
;--------------------------------------------------
DAC8_1_LSB_CR0: equ 98h                          ; LSB SC Block Control Register 0
DAC8_1_LSB_CR1: equ 99h                          ; LSB SC Block Control Register 1
DAC8_1_LSB_CR2: equ 9ah                          ; LSB SC Block Control Register 2
DAC8_1_LSB_CR3: equ 9bh                          ; LSB SC Block Control Register 3

DAC8_1_MSB_CR0: equ 88h                          ; MSB SC Block Control Register 0
DAC8_1_MSB_CR1: equ 89h                          ; MSB SC Block Control Register 1
DAC8_1_MSB_CR2: equ 8ah                          ; MSB SC Block Control Register 2
DAC8_1_MSB_CR3: equ 8bh                          ; MSB SC Block Control Register 3

; end of file DAC8_1.inc
