original files of m241
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
/* usbDescrCopyLib.h - USB descriptor copy utility functions */
|
||||
|
||||
/* Copyright 2000, 2010 Wind River Systems, Inc. */
|
||||
|
||||
/*
|
||||
Modification history
|
||||
--------------------
|
||||
01c,29apr10,pad Moved extern C statement after include statements.
|
||||
01b,13apr00,wef fixed #ifndef bug
|
||||
01a,05apr00,wef First -removed these functions from usbLib.c to decouple host /
|
||||
peripheral stack interdependency.
|
||||
*/
|
||||
|
||||
#ifndef __INCusbDescrCopyLibh
|
||||
#define __INCusbDescrCopyLibh
|
||||
|
||||
|
||||
/* includes */
|
||||
|
||||
#include "usb/usb.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* function prototypes */
|
||||
|
||||
VOID usbDescrCopy
|
||||
(
|
||||
pUINT8 pBfr, /* destination buffer */
|
||||
pVOID pDescr, /* source buffer */
|
||||
UINT16 bfrLen, /* dest len */
|
||||
pUINT16 pActLen /* actual length copied */
|
||||
);
|
||||
|
||||
VOID usbDescrCopy32
|
||||
(
|
||||
pUINT8 pBfr, /* destination buffer */
|
||||
pVOID pDescr, /* source buffer */
|
||||
UINT32 bfrLen, /* dest len */
|
||||
pUINT32 pActLen /* actual length copied */
|
||||
);
|
||||
|
||||
VOID usbDescrStrCopy
|
||||
(
|
||||
pUINT8 pBfr, /* destination buffer */
|
||||
char *pStr, /* source buffer */
|
||||
UINT16 bfrLen, /* dest len */
|
||||
pUINT16 pActLen /* actual length copied */
|
||||
);
|
||||
|
||||
VOID usbDescrStrCopy32
|
||||
(
|
||||
pUINT8 pBfr, /* destination buffer */
|
||||
char *pStr, /* source buffer */
|
||||
UINT32 bfrLen, /* dest len */
|
||||
pUINT32 pActLen /* actual length copied */
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCusbDescrCopyLibh*/
|
||||
|
||||
/* End of file. */
|
||||
|
||||
Reference in New Issue
Block a user