00001 // Copyright (C) 2004 University of Louisiana at Lafayette 00002 // Copyright (C) 2004 Pablo Mejia 00003 // Author: Adrian Aucoin Jr. 00004 00005 00006 #ifndef CAJUN_ADR2205_H 00007 #define CAJUN_ADR2205_H 00008 00009 00010 namespace cajun 00011 { 00012 class adr2205_t 00013 { 00014 public: 00015 static unsigned const MAX_UNITS = 11; 00016 static unsigned const NUM_INPUT_LINES = 4; 00017 static unsigned const NUM_OUTPUT_LINES = 9; 00018 00019 adr2205_t (int fd); 00020 00021 bool initialize (unsigned unit); 00022 00023 bool set_output_lines (unsigned unit, unsigned output); 00024 00025 bool get_input_lines (unsigned unit, unsigned &inputs); 00026 00027 protected: 00028 int m_fd; 00029 bool m_init[MAX_UNITS]; 00030 }; 00031 }; 00032 00033 00034 #endif