Main Page | Class List | File List | Class Members | File Members | Related Pages

include/otto/iso.h

Go to the documentation of this file.
00001 // $Id: iso.h,v 1.3 2004/06/29 20:27:02 alpha Exp $ 00002 // 00003 // Copyright (c) 1999-2004 Darius Rad 00004 // 00005 // This file is part of the OpenOtto project. 00006 // 00007 // OpenOtto is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either version 2 of the License, or 00010 // (at your option) any later version. 00011 // 00012 00017 00018 00019 #ifndef _OTTO_ISO_H 00020 #define _OTTO_ISO_H 00021 00022 00024 #define OTTO_ISO_PACKET_LENGTH_MAX 16 00025 00026 00028 enum otto_iso_svcid 00029 { 00030 OTTO_ISO_SVCID_SCR = 0x81, 00031 OTTO_ISO_SVCID_SCRPR = 0xc1, 00032 OTTO_ISO_SVCID_SPR = 0x82, 00033 OTTO_ISO_SVCID_SPRPR = 0xc2, 00034 OTTO_ISO_SVCID_SPRNR = 0x7f, 00035 }; 00036 00038 union otto_iso_packet 00039 { 00040 struct 00041 { 00042 unsigned char data[OTTO_ISO_PACKET_LENGTH_MAX]; 00043 int length; 00044 } 00045 raw; 00046 00048 struct 00049 { 00050 unsigned char fmt; 00051 unsigned char tgt; 00052 unsigned char src; 00053 unsigned char scr; 00054 unsigned char cs; 00055 } 00056 scr; 00057 00059 struct 00060 { 00061 unsigned char fmt; 00062 unsigned char tgt; 00063 unsigned char src; 00064 unsigned char len; 00065 unsigned char scrpr; 00066 unsigned char kb1; 00067 unsigned char kb2; 00068 unsigned char cs; 00069 } 00070 scrpr; 00071 }; 00072 00073 00074 #endif

Generated on Thu Jul 8 19:26:05 2004 for OpenOtto by doxygen 1.3.7