Functions
Usbd_dfu_Private_Functions
Collaboration diagram for Usbd_dfu_Private_Functions:

Functions

static void DFU_LeaveDFUMode (void *pdev)
 DFU_LeaveDFUMode Handles the sub-protocol DFU leave DFU mode request (leaves DFU mode and resets device to jump to user loaded code). More...
 
static void DFU_Req_ABORT (void *pdev)
 DFU_Req_ABORT Handles the DFU ABORT request. More...
 
static void DFU_Req_CLRSTATUS (void *pdev)
 DFU_Req_CLRSTATUS Handles the DFU CLRSTATUS request. More...
 
static void DFU_Req_DETACH (void *pdev, USB_SETUP_REQ *req)
 DFU_Req_DETACH Handles the DFU DETACH request. More...
 
static void DFU_Req_DNLOAD (void *pdev, USB_SETUP_REQ *req)
 DFU_Req_DNLOAD Handles the DFU DNLOAD request. More...
 
static void DFU_Req_GETSTATE (void *pdev)
 DFU_Req_GETSTATE Handles the DFU GETSTATE request. More...
 
static void DFU_Req_GETSTATUS (void *pdev)
 DFU_Req_GETSTATUS Handles the DFU GETSTATUS request. More...
 
static void DFU_Req_UPLOAD (void *pdev, USB_SETUP_REQ *req)
 DFU_Req_UPLOAD Handles the DFU UPLOAD request. More...
 
static uint8_t EP0_RxReady (void *pdev)
 EP0_RxReady Handles the DFU control endpoint data OUT stage. More...
 
static uint8_t EP0_TxSent (void *pdev)
 EP0_TxSent Handles the DFU control endpoint data IN stage. More...
 
static uint8_t usbd_dfu_DeInit (void *pdev, uint8_t cfgidx)
 usbd_dfu_Init De-initializes the DFU layer. More...
 
static uint8_t * USBD_DFU_GetCfgDesc (uint8_t speed, uint16_t *length)
 USBD_DFU_GetCfgDesc Returns configuration descriptor. More...
 
static uint8_t * USBD_DFU_GetUsrStringDesc (uint8_t speed, uint8_t index, uint16_t *length)
 USBD_DFU_GetUsrStringDesc Manages the transfer of memory interfaces string descriptors. More...
 
static uint8_t usbd_dfu_Init (void *pdev, uint8_t cfgidx)
 usbd_dfu_Init Initializes the DFU interface. More...
 
static uint8_t usbd_dfu_Setup (void *pdev, USB_SETUP_REQ *req)
 usbd_dfu_Setup Handles the DFU request parsing. More...
 

Detailed Description

Function Documentation

void DFU_LeaveDFUMode ( void *  pdev)
static

DFU_LeaveDFUMode Handles the sub-protocol DFU leave DFU mode request (leaves DFU mode and resets device to jump to user loaded code).

Parameters
pdevdevice instance
Return values
None

Definition at line 953 of file usbd_dfu_core.c.

static void DFU_Req_ABORT ( void *  pdev)
static

DFU_Req_ABORT Handles the DFU ABORT request.

Parameters
pdevdevice instance
Return values
None

Definition at line 928 of file usbd_dfu_core.c.

static void DFU_Req_CLRSTATUS ( void *  pdev)
static

DFU_Req_CLRSTATUS Handles the DFU CLRSTATUS request.

Parameters
pdevdevice instance
Return values
status

Definition at line 884 of file usbd_dfu_core.c.

static void DFU_Req_DETACH ( void *  pdev,
USB_SETUP_REQ req 
)
static

DFU_Req_DETACH Handles the DFU DETACH request.

Parameters
pdevdevice instance
reqpointer to the request structure.
Return values
None.

Definition at line 635 of file usbd_dfu_core.c.

static void DFU_Req_DNLOAD ( void *  pdev,
USB_SETUP_REQ req 
)
static

DFU_Req_DNLOAD Handles the DFU DNLOAD request.

Parameters
pdevdevice instance
reqpointer to the request structure
Return values
None

Definition at line 674 of file usbd_dfu_core.c.

static void DFU_Req_GETSTATE ( void *  pdev)
static

DFU_Req_GETSTATE Handles the DFU GETSTATE request.

Parameters
pdevdevice instance
Return values
None

Definition at line 914 of file usbd_dfu_core.c.

static void DFU_Req_GETSTATUS ( void *  pdev)
static

DFU_Req_GETSTATUS Handles the DFU GETSTATUS request.

Parameters
pdevinstance
Return values
status

Definition at line 818 of file usbd_dfu_core.c.

static void DFU_Req_UPLOAD ( void *  pdev,
USB_SETUP_REQ req 
)
static

DFU_Req_UPLOAD Handles the DFU UPLOAD request.

Parameters
pdevinstance
reqpointer to the request structure
Return values
status

Definition at line 729 of file usbd_dfu_core.c.

static uint8_t EP0_RxReady ( void *  pdev)
static

EP0_RxReady Handles the DFU control endpoint data OUT stage.

Parameters
pdevdevice instance
Return values
status

Definition at line 619 of file usbd_dfu_core.c.

static uint8_t EP0_TxSent ( void *  pdev)
static

EP0_TxSent Handles the DFU control endpoint data IN stage.

Parameters
pdevdevice instance
Return values
status

Definition at line 545 of file usbd_dfu_core.c.

static uint8_t usbd_dfu_DeInit ( void *  pdev,
uint8_t  cfgidx 
)
static

usbd_dfu_Init De-initializes the DFU layer.

Parameters
pdevdevice instance
cfgidxConfiguration index
Return values
status

Definition at line 428 of file usbd_dfu_core.c.

static uint8_t * USBD_DFU_GetCfgDesc ( uint8_t  speed,
uint16_t *  length 
)
static

USBD_DFU_GetCfgDesc Returns configuration descriptor.

Parameters
speed: current device speed
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 995 of file usbd_dfu_core.c.

static uint8_t * USBD_DFU_GetUsrStringDesc ( uint8_t  speed,
uint8_t  index,
uint16_t *  length 
)
static

USBD_DFU_GetUsrStringDesc Manages the transfer of memory interfaces string descriptors.

Parameters
speed: current device speed
indexdesciptor index
length: pointer data length
Return values
pointerto the descriptor table or NULL if the descriptor is not supported.

Definition at line 1024 of file usbd_dfu_core.c.

static uint8_t usbd_dfu_Init ( void *  pdev,
uint8_t  cfgidx 
)
static

usbd_dfu_Init Initializes the DFU interface.

Parameters
pdevdevice instance
cfgidxConfiguration index
Return values
status

Definition at line 407 of file usbd_dfu_core.c.

static uint8_t usbd_dfu_Setup ( void *  pdev,
USB_SETUP_REQ req 
)
static

usbd_dfu_Setup Handles the DFU request parsing.

Parameters
pdevinstance
requsb requests
Return values
status

Definition at line 451 of file usbd_dfu_core.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:22