Skip to main content
TAzja.1
Visitor II
August 24, 2022
Question

STM32F4xx USB Host BgndProcess

  • August 24, 2022
  • 1 reply
  • 934 views

STM32F401

in usbh_def.h:

typedef struct
{
 const char *Name;
 uint8_t ClassCode;
 USBH_StatusTypeDef(*Init)(struct _USBH_HandleTypeDef *phost);
 USBH_StatusTypeDef(*DeInit)(struct _USBH_HandleTypeDef *phost);
 USBH_StatusTypeDef(*Requests)(struct _USBH_HandleTypeDef *phost);
 USBH_StatusTypeDef(*BgndProcess)(struct _USBH_HandleTypeDef *phost);
 USBH_StatusTypeDef(*SOFProcess)(struct _USBH_HandleTypeDef *phost);
 void *pData;
} USBH_ClassTypeDef;

What function is BgndProcess exactly pointing to? I did a search in the project files, theres only 2 lines matching, one of which is a declaration of a pointer to a function, and the other being function call. Does anybody know what exactly this function does, and where in the files I can see the full function?

This topic has been closed for replies.

1 reply

Technical Moderator
August 29, 2022

Hello @TAzja.1​ ,

BgndProcess: Class operation background process. Called from the core state machine during HOST_CLASS state.

You can refer to this UM1720 STM32Cube USB host library, it may help you.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks