The usbh_mem_alloc function allocates a block of memory form previously initialized memory pool. The argument ctrl is the index of the controller (memory pool). The argument ptr is pointer to the pointer of allocated memory. The argument sz is the requested size of allocated memory block.
The usbh_mem_alloc function is part of the RL-USB-Host Software Stack.
Return Value
The usbh_mem_alloc function returns one of the following manifest constants.