NexMotion  1.4.0
Open Robots & Machines [WIP]
Debug_Trace

Debug trace functions. More...

Collaboration diagram for Debug_Trace:

Functions

void FNTYPE NMC_DebugSetTraceMode (I32_T TraceMode)
 Set API trace mode. More...
 
void FNTYPE NMC_DebugSetHookData (void *PHookUserData)
 Set the data structure index for the hook function. More...
 
void FNTYPE NMC_DebugSetHookFunction (PF_NmcHookAPI PFHookFuncPtr)
 Set the hook function. More...
 
const void *FNTYPE NMC_DebugGetApiAddress (const char *PApiName)
 Read the API address. More...
 

Detailed Description

Debug trace functions.

Function Documentation

const void* FNTYPE NMC_DebugGetApiAddress ( const char *  PApiName)

Read the API address.

Parameters
[in]PApiName[Input] The function name of a NexMotion API
Returns
const void*: Return the function pointer to set the NexMotion API.

Usage:
Please refer to the section, Function Trace.

Examples:

Reference:
None

void FNTYPE NMC_DebugSetHookData ( void *  PHookUserData)

Set the data structure index for the hook function.

Parameters
[in]PHookUserData[Input] A pointer variable to set a variable or a data structure specified by user
Returns
None.

Usage:
Please refer to the section, Function Trace.

Examples:

Reference:
None

void FNTYPE NMC_DebugSetHookFunction ( PF_NmcHookAPI  PFHookFuncPtr)

Set the hook function.

Parameters
PFHookFuncPtrA function pointer to set the hook function
Returns
None.

Usage:
Please refer to the section, Function Trace.

Examples:

Reference:
None

void FNTYPE NMC_DebugSetTraceMode ( I32_T  TraceMode)

Set API trace mode.

Parameters
TraceMode
0: Turn off the trace function and do not output anything
1: Output the APIs with errors only
2: Output all APIs
Returns
None.

Usage:
Please refer to the section, Function Trace.

Examples:

Reference:
None