os/kernelhwsrv/kerneltest/e32test/nkernsa/diag.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // e32test\nkernsa\diag.h
    15 // 
    16 //
    17 
    18 #ifdef __cplusplus
    19 extern "C" {
    20 #endif
    21 
    22 typedef int (*TAvailFn)(void);
    23 typedef int (*TPollFn)(void);
    24 typedef void (*TOutFn)(char);
    25 
    26 typedef struct
    27 	{
    28 	TAvailFn	iAvail;
    29 	TPollFn		iPoll;
    30 	TOutFn		iOut;
    31 	} DiagIO;
    32 
    33 extern const DiagIO* TheIoFunctions;
    34 
    35 extern int InputAvailable(void);
    36 extern char GetC(void);
    37 extern void PutC(char);
    38 
    39 extern void PutS(const char*);
    40 extern void PrtHex2(unsigned long);
    41 extern void PrtHex4(unsigned long);
    42 extern void PrtHex8(unsigned long);
    43 extern void NewLine(void);
    44 extern void PutSpc(void);
    45 extern int GetAndEchoLine(char*, int, const char*);
    46 
    47 extern int SkipSpc(const char*);
    48 extern int CharToHex(char);
    49 extern int ReadHex(const char*, unsigned long*);
    50 extern int ReadRangeHex(const char*, unsigned long*, unsigned long*);
    51 
    52 extern void DumpMemory1(const void*, const void*);
    53 extern void DumpMemoryRange1(const void*, unsigned long, const void*);
    54 extern void DumpStruct(const char*, const void*);
    55 
    56 extern void RunCrashDebugger();
    57 
    58 #ifdef __cplusplus
    59 }
    60 #endif
    61