mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
Extend USB trace logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2212 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -385,6 +385,10 @@ typedef int (*trace_callback_t)(struct usbtrace_s *trace, void *arg);
|
||||
|
||||
typedef uint16 usbtrace_idset_t;
|
||||
|
||||
/* Print routine to use for usbdev_trprint() output */
|
||||
|
||||
typedef int (*trprintf_t)(const char *fmt, ...);
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
@@ -455,6 +459,16 @@ EXTERN int usbtrace_enumerate(trace_callback_t callback, void *arg);
|
||||
# define usbtrace_enumerate(event)
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
* Name: usbtrace_trprint
|
||||
*
|
||||
* Description:
|
||||
* Print the trace record using the supplied printing function
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
EXTERN void usbtrace_trprintf(trprintf_t trprintf, uint16 event, uint16 value);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user