haiku/headers/os/device/D2A.h
Stefano Ceccherini 7d50125fa5 and now for the real thing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-28 18:54:39 +00:00

36 lines
586 B
C++

/*
* Copyright 2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _D2A_H
#define _D2A_H
#include <BeBuild.h>
#include <SupportDefs.h>
#include <stddef.h>
class BD2A {
public:
BD2A();
virtual ~BD2A();
status_t Open(const char* portName);
void Close();
bool IsOpen();
ssize_t Read(uint8* buf);
ssize_t Write(uint8 value);
private:
virtual void _ReservedD2A1();
virtual void _ReservedD2A2();
virtual void _ReservedD2A3();
int fFd;
uint32 _fReserved[3];
};
#endif //_D2A_H