cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4xx USB Host BgndProcess

TAzja.1
Associate

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?

1 REPLY 1
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen