1 /******************************************************************************** 2 / 3 / File: D2A.h 4 / 5 / Description: Digital-To-Analog converter class header. 6 / 7 / Copyright 1996-98, Be Incorporated, All Rights Reserved. 8 / 9 ********************************************************************************/ 10 11 12 #ifndef _D2A_H 13 #define _D2A_H 14 15 #include <BeBuild.h> 16 #include <stddef.h> 17 #include <SupportDefs.h> 18 19 /* -----------------------------------------------------------------------*/ 20 class BD2A { 21 22 public: 23 BD2A(); 24 virtual ~BD2A(); 25 26 status_t Open(const char *portName); 27 void Close(void); 28 bool IsOpen(void); 29 30 ssize_t Read(uint8 *buf); 31 ssize_t Write(uint8 value); 32 33 /* -----------------------------------------------------------------------*/ 34 35 private: 36 37 virtual void _ReservedD2A1(); 38 virtual void _ReservedD2A2(); 39 virtual void _ReservedD2A3(); 40 41 int ffd; 42 uint32 _fReserved[3]; 43 }; 44 45 #endif 46