?? hostif.h
字號:
/*
* +-------------------------------------------------------------------+
* | Copyright (c) 1995,1996,1997 by Philips Semiconductors. |
* | |
* | This software is furnished under a license and may only be used |
* | and copied in accordance with the terms and conditions of such a |
* | license and with the inclusion of this copyright notice. This |
* | software or any other copies of this software may not be provided |
* | or otherwise made available to any other person. The ownership |
* | and title of this software is not transferred. |
* | |
* | The information in this software is subject to change without |
* | any prior notice and should not be construed as a commitment by |
* | Philips Semiconductors. |
* | |
* | This code and information is provided "as is" without any |
* | warranty of any kind, either expressed or implied, including but |
* | not limited to the implied warranties of merchantability and/or |
* | fitness for any particular purpose. |
* +-------------------------------------------------------------------+
*
*
* Module name : HostIF.h 1.6
*
* Last update : 11:04:04 - 99/03/29
*
* Title : Low level host communication, TM-1 part
*
* Author : Juul van der Spek
*
* Reviewed :
*
* Revision history :
*
* Description :
*
* This module is part of an implementation of the HostCall interface.
* HostCall is the software component which is required by
* the TCS toolset to adapt the programs generated by this toolset
* to a specific host (see file HostCall.h in the TCS include dir).
*
* HostIF is one of two modules which form an implementation of
* the HostCall interface (the other one is RPCClient), and provides
* the necessary communication layer.
* This communication layer consists of functions for sending and
* receiving pointer values to/from the RPCServer running on the
* host.
*
* The implementation of HostCall is partitioned between RPCClient
* and HostIF as follows:
*
* - _HostCall_notify is provided in HostIF
* - _HostCall_host_handshake is provided in RPCClient
* - _HostCall_host_send is provided in RPCClient.
* - _HostCall_init and -terminate are provided in RPCClient.
* - Module RPCClient provides the general implementation strategy
* and solves all cache problems.
* - HostIF provides a simple communication interface for sending
* pointers hence and forth.
* - RPCClient communicates with a RPCServer on the host.
*
* More specific, HostIF should provide for the following:
*
* 1) It must implement functions _HostIF_init and _HostIF_term,
* for whatever initialisation and termination is needed.
* 2) It must implement a function _HostIF_send for sending a pointer
* (to a command buffer) to the RPCServer on the host.
* This function must return a success status.
* 3) It must be able to receive similar pointers from the
* RPCServer on the host, which must each be passed to a call
* to function _RPCClient_notify.
* 4) A debug print routine to whatever destination
*
*/
#ifndef HostIF_INCLUDED
#define HostIF_INCLUDED
/*----------------------------includes---------------------------------------*/
#include <stdarg.h>
#include <tmlib/tmtypes.h>
/*----------------------------functions---------------------------------------*/
/*
* Function : Send the pointer value of 'command' to
* the RPCServer on the host.
* Parameters : command (I) pointer to send.
* Function Result : TRUE iff. the pointer could be sent to the host.
* Precondition : -
* Postcondition : -
* Sideeffects : -
*/
Bool _HostIF_send( Pointer command );
/*
* Function : Initialisation- and termination routines
* Parameters : -
* Function Result : (init only) TRUE iff. initialisation succeeded
* Precondition : -
* Postcondition : -
* Sideeffects : -
*/
Bool _HostIF_init();
void _HostIF_term();
#endif /* HostIF_INCLUDED */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -