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