2022-08-23 10:39 PM
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?
2022-08-29 04:55 AM
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