xref: /haiku/headers/os/device/A2D.h (revision 51978af14a173e7fae0563b562be5603bc652aeb)
1 /********************************************************************************
2 /
3 /	File:		A2D.h
4 /
5 /	Description:	Analog-to-Digital converter class header.
6 /
7 /	Copyright 1996-98, Be Incorporated, All Rights Reserved.
8 /
9 ********************************************************************************/
10 
11 
12 #ifndef	_A2D_H
13 #define	_A2D_H
14 
15 #include <BeBuild.h>
16 #include <stddef.h>
17 #include <SupportDefs.h>
18 
19 /* -----------------------------------------------------------------------*/
20 class BA2D {
21 
22 public:
23 					BA2D();
24 virtual				~BA2D();
25 
26 		status_t	Open(const char *portName);
27 		void		Close(void);
28 		bool		IsOpen(void);
29 
30 		ssize_t		Read(ushort *buf);
31 
32 /* -----------------------------------------------------------------------*/
33 
34 private:
35 virtual	void		_ReservedA2D1();
36 virtual	void		_ReservedA2D2();
37 virtual	void		_ReservedA2D3();
38 
39 		int			ffd;
40 		uint32		_fReserved[3];
41 };
42 
43 #endif
44