usb_buffer_malloc
Prev | 4.1. buffer.h | Next

## Name

usb_buffer_malloc — Allocates a buffer apropriate for a usb transaction.

## Synopsis

``extern usb_io_buffer* usb_buffer_malloc`(struct usb_endpoint_s* endpoint, unsigned long size, void* external_storage, int* result);`

## Arguments

`endpoint` Endpoint
`size` Size of buffer required
`external_storage` Allows external allocation usually NULL
`result` Pointer to variable to contain result value

## Description

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.

## Return Values

Allocated buffer

## See Also

USB_BufferMalloc (SWI&55389)

Prev | Up | Next
Chapter 4. usb/ | Home | usb_buffer_free