1/*
2 * Copyright 2002, Marcus Overhagen. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5
6#include <DigitalPort.h>
7
8BDigitalPort::BDigitalPort()
9{
10}
11
12
13BDigitalPort::~BDigitalPort()
14{
15}
16
17
18status_t
19BDigitalPort::Open(const char *portName)
20{
21	return B_ERROR;
22}
23
24
25void
26BDigitalPort::Close(void)
27{
28}
29
30
31bool
32BDigitalPort::IsOpen(void)
33{
34	return false;
35}
36
37
38ssize_t
39BDigitalPort::Read(uint8 *buf)
40{
41	return 0;
42}
43
44
45ssize_t
46BDigitalPort::Write(uint8 value)
47{
48	return 0;
49}
50
51
52status_t
53BDigitalPort::SetAsOutput(void)
54{
55	return B_ERROR;
56}
57
58
59bool
60BDigitalPort::IsOutput(void)
61{
62	return false;
63}
64
65
66status_t
67BDigitalPort::SetAsInput(void)
68{
69	return B_ERROR;
70}
71
72
73bool
74BDigitalPort::IsInput(void)
75{
76	return false;
77}
78
79
80void
81BDigitalPort::_ReservedDigitalPort1()
82{
83}
84
85
86void
87BDigitalPort::_ReservedDigitalPort2()
88{
89}
90
91
92void
93BDigitalPort::_ReservedDigitalPort3()
94{
95}
96
97
98