Subversion Repositories shark

Rev

Rev 3 | Details | Compare with Previous | 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>
80 pj 36
#include "ll/sys/cdefs.h"
2 pj 37
 
80 pj 38
__BEGIN_DECLS
39
 
2 pj 40
#define  DAC0     0
41
#define  DAC1     1
42
 
43
//Analog output releted functions
44
void  DAC_reset(void);
45
void  DAC_boardInit(BYTE, WORD);
46
void  DAC_trigger(WORD);
47
void  DAC_numSetup(DWORD, DWORD);
48
void  DAC_update(BYTE, BYTE);
49
void  DAC_channel(BYTE, BYTE);
50
void  DAC_LDACSourceUpdate(BYTE);
51
void  DAC_stopError(BYTE);
52
void  DAC_FIFOFlags(BYTE);
53
void  DAC_enableInterrupts(WORD);
54
void  DAC_arm(void);
55
void  DAC_startOperation(void);
56
 
57
void  DAC_Init(void);
58
void  DAC_output(BYTE, WORD);
80 pj 59
 
60
__END_DECLS
2 pj 61
#endif
62
/*End of file:    DAC.H*/