00001 // JTAGSOCK.H 00002 // 00003 // Definitions for JTAG socket interface 00004 // 00005 // Copyright (c) 2002, Jason Riffel - TotalEmbedded LLC. 00006 // All rights reserved. 00007 // 00008 // Redistribution and use in source and binary forms, with or without 00009 // modification, are permitted provided that the following conditions 00010 // are met: 00011 // 00012 // Redistributions of source code must retain the above copyright 00013 // notice, this list of conditions and the following disclaimer. 00014 // 00015 // Redistributions in binary form must reproduce the above copyright 00016 // notice, this list of conditions and the following disclaimer in 00017 // the documentation and/or other materials provided with the 00018 // distribution. 00019 // 00020 // Neither the name of TotalEmbedded nor the names of its 00021 // contributors may be used to endorse or promote products derived 00022 // from this software without specific prior written permission. 00023 // 00024 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00025 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00026 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00027 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00028 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00029 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00030 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00031 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00032 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00033 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 00034 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00035 // POSSIBILITY OF SUCH DAMAGE. 00036 // 00037 00038 #ifndef JTAGSOCK_H 00039 #define JTAGSOCK_H 00040 00041 // 00042 // PROTOTYPES 00043 // 00044 int fJTAGSOCK_Establish (unsigned short us_portnum); 00045 int fJTAGSOCK_GetConnection(int i_socket); 00046 int fJTAGSOCK_ReadByte (int i_socket, char *pc_byte); 00047 int fJTAGSOCK_WriteByte (int i_socket, char c_byte); 00048 00049 // 00050 // DEFINES 00051 // 00052 #define dJTAGSOCK_NUM_CONNECTIONS 1 00053 #define dJTAGSOCK_MAXHOSTNAME 40 //20 00054 00055 #endif // #ifndef JTAGSOCK_H
1.5.6