2 * Copyright 2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _DIGITAL_PORT_H
6 #define _DIGITAL_PORT_H
9 #include <SupportDefs.h>
17 virtual ~BDigitalPort();
19 status_t
Open(const char* portName
);
23 ssize_t
Read(uint8
* buf
);
24 ssize_t
Write(uint8 value
);
26 status_t
SetAsOutput();
29 status_t
SetAsInput();
33 virtual void _ReservedDigitalPort1();
34 virtual void _ReservedDigitalPort2();
35 virtual void _ReservedDigitalPort3();
42 #endif // _DIGITAL_PORT_H