Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*****************************************************************************
2
* Filename:       DAC.H                                                      *      *
3
* Author:         Marco Ziglioli (Doctor Stein)                              *        *
4
* Date:           06/06/2001                                                 *          *
5
* Description:    Digital 2 analog conversion package header file            *
6
*----------------------------------------------------------------------------*
7
* Notes:                                                                     *
8
*****************************************************************************/
9
 
10
/* This file is part of the S.Ha.R.K. Project - http://shark.sssup.it
11
 *
12
 * Copyright (C) 2001 Marco Ziglioli
13
 *
14
 * This program is free software; you can redistribute it and/or modify
15
 * it under the terms of the GNU General Public License as published by
16
 * the Free Software Foundation; either version 2 of the License, or
17
 * (at your option) any later version.
18
 *
19
 * This program is distributed in the hope that it will be useful,
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 * GNU General Public License for more details.
23
 *
24
 * You should have received a copy of the GNU General Public License
25
 * along with this program; if not, write to the Free Software
26
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
 *
28
 */
29
 
30
 
31
#ifndef  _MY_DAC_H_
32
#define  _MY_DAC_H_
33
 
34
#include <drivers/pci6025e/pci6025e.h>
35
#include <drivers/pci6025e/regconst.h>
36
 
37
#define  DAC0     0
38
#define  DAC1     1
39
 
40
//Analog output releted functions
41
void  DAC_reset(void);
42
void  DAC_boardInit(BYTE, WORD);
43
void  DAC_trigger(WORD);
44
void  DAC_numSetup(DWORD, DWORD);
45
void  DAC_update(BYTE, BYTE);
46
void  DAC_channel(BYTE, BYTE);
47
void  DAC_LDACSourceUpdate(BYTE);
48
void  DAC_stopError(BYTE);
49
void  DAC_FIFOFlags(BYTE);
50
void  DAC_enableInterrupts(WORD);
51
void  DAC_arm(void);
52
void  DAC_startOperation(void);
53
 
54
void  DAC_Init(void);
55
void  DAC_output(BYTE, WORD);
56
#endif
57
/*End of file:    DAC.H*/