Richard Collins / USBHostControllerDriver
Embed: (wiki syntax)

« Back to documentation index

LinkedListItem Struct Reference

LinkedListItem Struct Reference

For the transfer descriptors, endpoint descriptors and setup structures I 'allocate' and use one of these ojects from a pool of memory. More...

#include <UsbStructures.h>


Detailed Description

For the transfer descriptors, endpoint descriptors and setup structures I 'allocate' and use one of these ojects from a pool of memory.

The pool is a linked list with each node being 16 bytes in size. This gives excelent allocate and object deallocation speed, also allows one pool for all types used giving very good memory utilisation. Memory pools are used extensivly in software where the allocation size is constant and frequent and high speed is required. For examples a 'bullet' object in a game. Using the normal memory allocator would cause a significant cpu load.

Definition at line 154 of file UsbStructures.h.