00001 /*************************************************************************** 00002 * Mode: C/C++; tab-width: 2; indent-tabs-mode: keep-tab; c-basic-offset: 2 00003 * 00004 * Service Layer functions 00005 * 00006 * Copyright (c) 2005 TTTech. All rights reserved. Confidential proprietary 00007 * Schoenbrunnerstrasse 7, A-1040 Wien, Austria. office@tttech.com 00008 * 00009 *++ 00010 * 00011 * File: tt_sl_api.h 00012 * 00013 * Revisions 00014 * 02-Feb-2005 (EER) Initial Version 00015 * 00016 * Remark: [nnnnn] is the number of the RoundUp-Issue 00017 ***************************************************************************/ 00018 00019 #ifndef TT_SL_API_H_ 00020 #define TT_SL_API_H_ 00021 00022 #include "tte_target.h" 00023 #include "tte_environment.h" 00024 00025 /*************************************************************************** 00026 * D E F I N E S 00027 ***************************************************************************/ 00028 00029 /*************************************************************************** 00030 * P R O T O T Y P E S 00031 ***************************************************************************/ 00032 00033 /*************************************************************************** 00034 * G E N E R I C F U N C T I O N S 00035 ***************************************************************************/ 00036 00037 /*************************************************************************** 00038 * 00039 * Name: 00040 * tt_sl_memcpy[_w] 00041 * 00042 * Purpose: 00043 * C-Lib equivalent for memcpy 00044 * 00045 * Parameters: 00046 * void *dest...................... Pointer to the destination area 00047 * const void *src................. Pointer to the source area 00048 * ubyte4 len...................... Length of the area which shall be copied 00049 * const tt_Host_Watchdog *watchdog Const Pointer to a data structure that 00050 * holds all information to update the 00051 * watchdog of the host CPU 00052 * (only for tt_sl_memcpy_w) 00053 * 00054 * Parameter Ranges: 00055 * dest......... Pointer to the destination area 00056 * src.......... Pointer to the source area 00057 * len.......... 32-bit unsigned 00058 * watchdog .... Pointer 00059 * 00060 * Return Values (void): 00061 * .......... Pointer to the destination area 00062 * 00063 ***************************************************************************/ 00064 void * tt_sl_memcpy_w ( void *dest 00065 , const void *src 00066 , uint32_t len 00067 , const void *watchdog 00068 ); 00069 00070 /*************************************************************************** 00071 * 00072 * Name: 00073 * tt_sl_memset 00074 * 00075 * Purpose: 00076 * C-Lib equivalent for memset 00077 * 00078 * Parameters: 00079 * void *dest...................... Pointer to the destination area 00080 * const uint8_t val............... Pointer to the source area 00081 * ubyte4 len...................... Length of the area which shall be copied 00082 * 00083 * Parameter Ranges: 00084 * dest......... Pointer to the destination area 00085 * val.......... 8-bit unsigned 00086 * len.......... 32-bit unsigned 00087 * 00088 * Return Values (void): 00089 * .......... Pointer to the destination area 00090 * 00091 ***************************************************************************/ 00092 void * tt_sl_memset ( void *dest 00093 , uint8_t val 00094 , uint32_t len 00095 ); 00096 00097 #define tt_sl_memcpy(dest, src, len) (tt_sl_memcpy_w((dest), (src), (len), 0)) 00098 00099 #endif /* TT_SL_API_H_ */