2009-08-28 22:44:17 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2002-08-11 02:45:28 +04:00
|
|
|
#ifndef _A2D_H
|
|
|
|
#define _A2D_H
|
|
|
|
|
|
|
|
#include <BeBuild.h>
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
2009-08-28 22:44:17 +04:00
|
|
|
#include <stddef.h>
|
2002-08-11 02:45:28 +04:00
|
|
|
|
2009-08-28 22:44:17 +04:00
|
|
|
class BA2D {
|
2002-08-11 02:45:28 +04:00
|
|
|
public:
|
2009-08-28 22:54:39 +04:00
|
|
|
BA2D();
|
|
|
|
virtual ~BA2D();
|
2002-08-11 02:45:28 +04:00
|
|
|
|
2009-08-28 22:54:39 +04:00
|
|
|
status_t Open(const char* portName);
|
|
|
|
void Close();
|
|
|
|
bool IsOpen();
|
2002-08-11 02:45:28 +04:00
|
|
|
|
2009-08-28 22:54:39 +04:00
|
|
|
ssize_t Read(ushort* buf);
|
2002-08-11 02:45:28 +04:00
|
|
|
|
|
|
|
private:
|
2009-08-28 22:44:17 +04:00
|
|
|
virtual void _ReservedA2D1();
|
|
|
|
virtual void _ReservedA2D2();
|
|
|
|
virtual void _ReservedA2D3();
|
2002-08-11 02:45:28 +04:00
|
|
|
|
2009-08-28 22:54:39 +04:00
|
|
|
int fFd;
|
|
|
|
uint32 _fReserved[3];
|
2002-08-11 02:45:28 +04:00
|
|
|
};
|
|
|
|
|
2009-08-28 22:44:17 +04:00
|
|
|
#endif // _A2D_H
|
|
|
|
|