![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
DFU class API functions structure.
This module exposes functions which interact directly with USB device controller hardware.
Definition at line 182 of file usbd_dfuuser.h.
#include "usbd_dfuuser.h"
Data Fields | |
| uint32_t(* | GetMemSize )(USBD_DFU_INIT_PARAM_T *param) |
| ErrorCode_t(* | init )(USBD_HANDLE_T hUsb, USBD_DFU_INIT_PARAM_T *param, uint32_t init_state) |
| uint32_t(* GetMemSize)(USBD_DFU_INIT_PARAM_T *param) |
Function to determine the memory required by the DFU function driver module.
This function is called by application layer before calling pUsbApi->dfu->Init(), to allocate memory used by DFU function driver module. The application should allocate the memory which is accessible by USB controller/DMA controller.
| [in] | param | Structure containing DFU function driver module initialization parameters. |
Function to determine the memory required by the DFU function driver module.
This function is called by application layer before calling pUsbApi->dfu->Init(), to allocate memory used by DFU function driver module. The application should allocate the memory which is accessible by USB controller/DMA controller.
| param | Structure containing DFU function driver module initialization parameters. |
Definition at line 195 of file usbd_dfuuser.h.
| ErrorCode_t(* init)(USBD_HANDLE_T hUsb, USBD_DFU_INIT_PARAM_T *param, uint32_t init_state) |
Function to initialize DFU function driver module.
This function is called by application layer to initialize DFU function driver module.
| [in] | hUsb | Handle to the USB device stack. |
| [in,out] | param | Structure containing DFU function driver module initialization parameters. |
| LPC_OK | On success |
| ERR_USBD_BAD_MEM_BUF | Memory buffer passed is not 4-byte aligned or smaller than required. |
| ERR_API_INVALID_PARAM2 | Either DFU_Write() or DFU_Done() or DFU_Read() callbacks are not defined. |
| ERR_USBD_BAD_DESC |
|
| ERR_USBD_BAD_INTF_DESC | Wrong interface descriptor is passed. |
Function to initialize DFU function driver module.
This function is called by application layer to initialize DFU function driver module.
| hUsb | Handle to the USB device stack. |
| param | Structure containing DFU function driver module initialization parameters. |
| LPC_OK | On success |
| ERR_USBD_BAD_MEM_BUF | Memory buffer passed is not 4-byte aligned or smaller than required. |
| ERR_API_INVALID_PARAM2 | Either DFU_Write() or DFU_Done() or DFU_Read() callbacks are not defined. |
| ERR_USBD_BAD_DESC |
|
| ERR_USBD_BAD_INTF_DESC | Wrong interface descriptor is passed. |
Definition at line 217 of file usbd_dfuuser.h.