Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

l1394_resource.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           l1394resource.h  -  description
00003                              -------------------
00004     begin                : Fri Nov 3 2000
00005     copyright            : (C) 2000-2004 by Michael Repplinger
00006     email                : repplinger@cs.uni-sb.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef L1394RESOURCE_H
00018 #define L1394RESOURCE_H
00019 
00020 using namespace std;
00021 // define the different node types (internal definition).
00022 namespace L1394{
00023 
00024 
00025 #define MAX_READ 10        //change if need
00026 #define MAX_WRITE 10       //change if need
00027 #define DELAY 80           //change if need
00028 
00029 
00030 //define avc subunit types
00031 #define SUBUNIT_VIDEO_MONITOR 0x00
00032 #define SUBUNIT_DISC           0x03
00033 #define SUBUNIT_TAPE           0x04
00034 #define SUBUNIT_TUNER         0x05
00035 #define SUBUNIT_VIDEO_CAMERA   0x07
00036 
00037 enum DeviceType {_Camera = 0, _Vcr, _VideoMonitor, _Disc, _Tuner};
00038 enum NodeType {_UnknownNode = 0, _Card, _FcpNode, _DccNode, _SBP2Node, _PhyNode};
00039 enum EVENT{BUSRESET = 0, NODE_DESTROY, NODE_DISABLED, NODE_ENABLED};
00040 
00041 //Begin AVC code
00042 
00043 #define FCP_COMMAND_ADDR  0xFFFFF0000B00ULL
00044 #define FCP_RESPONSE_ADDR 0xFFFFF0000D00ULL
00045 
00046 //define avc command type
00047 #define CONTROL 0x00
00048 #define STATUS  0x01
00049 #define SPECIFIC_INQUIRY 0x02
00050 #define NOTIFY 0x03
00051 #define GENERAL_INQUIRY 0x04
00052 
00053 //define avc response code
00054 #define NOT_IMPLEMENTED 0x08
00055 #define ACCEPTED 0x09
00056 #define REJECTED 0x0a
00057 #define IN_TRANSACTION 0x0b
00058 #define IMPLEMENTED 0x0c
00059 #define CHANGED 0x0d
00060 #define INTERIM 0x0f
00061 //End AVC code
00062 
00063 #define L1394_SUCCESS 1
00064 #define L1394_FAILED -1
00065 
00066 }
00067 #endif
00068 

Generated on Wed Aug 24 00:36:40 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/