usb_buffer_malloc — Allocates a buffer apropriate for a usb transaction.
extern usb_io_buffer* usb_buffer_malloc(struct usb_endpoint_s* endpoint, unsigned long size, void* external_storage, int* result);
| endpoint Endpoint |
| size Size of buffer required |
| external_storage Allows external allocation usually NULL |
| result Pointer to variable to contain result value |
Allocates a buffer apropriate for a usb transaction. All transactions must be performed using a usb_io_buffer this function is used to allocate one.
Allocated buffer