xref: /haiku/headers/os/device/A2D.h (revision d8c2849d2c8358183d718bfd6a55d04824ea8007)
1*d8c2849dSStefano Ceccherini /*
2*d8c2849dSStefano Ceccherini  * Copyright 2009, Haiku, Inc. All rights reserved.
3*d8c2849dSStefano Ceccherini  * Distributed under the terms of the MIT License.
4*d8c2849dSStefano Ceccherini  */
530410560Sbeveloper #ifndef	_A2D_H
630410560Sbeveloper #define	_A2D_H
730410560Sbeveloper 
830410560Sbeveloper #include <BeBuild.h>
930410560Sbeveloper #include <SupportDefs.h>
1030410560Sbeveloper 
11*d8c2849dSStefano Ceccherini #include <stddef.h>
1230410560Sbeveloper 
13*d8c2849dSStefano Ceccherini class BA2D {
1430410560Sbeveloper public:
1530410560Sbeveloper 					BA2D();
1630410560Sbeveloper 	virtual				~BA2D();
1730410560Sbeveloper 
1830410560Sbeveloper 		status_t		Open(const char* portName);
19*d8c2849dSStefano Ceccherini 		void			Close();
20*d8c2849dSStefano Ceccherini 		bool			IsOpen();
2130410560Sbeveloper 
2230410560Sbeveloper 		ssize_t			Read(ushort* buf);
2330410560Sbeveloper 
2430410560Sbeveloper private:
2530410560Sbeveloper 	virtual	void			_ReservedA2D1();
2630410560Sbeveloper 	virtual	void			_ReservedA2D2();
2730410560Sbeveloper 	virtual	void			_ReservedA2D3();
2830410560Sbeveloper 
29*d8c2849dSStefano Ceccherini 		int			fFd;
3030410560Sbeveloper 		uint32			_fReserved[3];
3130410560Sbeveloper };
3230410560Sbeveloper 
33*d8c2849dSStefano Ceccherini #endif // _A2D_H
34*d8c2849dSStefano Ceccherini 
35