xref: /haiku/headers/os/device/D2A.h (revision 7d50125fa520e8332949dd055c1d250589c1f1aa)
1 /*
2  * Copyright 2009, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef	_D2A_H
6 #define	_D2A_H
7 
8 #include <BeBuild.h>
9 #include <SupportDefs.h>
10 
11 #include <stddef.h>
12 
13 class BD2A {
14 public:
15 							BD2A();
16 	virtual					~BD2A();
17 
18 			status_t		Open(const char* portName);
19 			void			Close();
20 			bool			IsOpen();
21 
22 			ssize_t			Read(uint8* buf);
23 			ssize_t			Write(uint8 value);
24 
25 private:
26 	virtual	void			_ReservedD2A1();
27 	virtual	void			_ReservedD2A2();
28 	virtual	void			_ReservedD2A3();
29 
30 			int				fFd;
31 			uint32			_fReserved[3];
32 };
33 
34 #endif //_D2A_H
35 
36