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