Lines Matching refs:hpcd

92 void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state);
186 void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd) in HAL_PCD_SetupStageCallback() argument
188 USBD_LL_SetupStage((USBD_HandleTypeDef*)hpcd->pData, (uint8_t *)hpcd->Setup); in HAL_PCD_SetupStageCallback()
197 void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) in HAL_PCD_DataOutStageCallback() argument
199 USBD_LL_DataOutStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->OUT_ep[epnum].xfer_buff); in HAL_PCD_DataOutStageCallback()
208 void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) in HAL_PCD_DataInStageCallback() argument
210 USBD_LL_DataInStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->IN_ep[epnum].xfer_buff); in HAL_PCD_DataInStageCallback()
218 void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd) in HAL_PCD_SOFCallback() argument
220 USBD_LL_SOF((USBD_HandleTypeDef*)hpcd->pData); in HAL_PCD_SOFCallback()
228 void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd) in HAL_PCD_ResetCallback() argument
233 switch (hpcd->Init.speed) in HAL_PCD_ResetCallback()
243 USBD_LL_SetSpeed((USBD_HandleTypeDef*)hpcd->pData, speed); in HAL_PCD_ResetCallback()
246 USBD_LL_Reset((USBD_HandleTypeDef*)hpcd->pData); in HAL_PCD_ResetCallback()
255 void HAL_PCD_SuspendCallback(PCD_HandleTypeDef *hpcd) in HAL_PCD_SuspendCallback() argument
257 __HAL_PCD_GATE_PHYCLOCK(hpcd); in HAL_PCD_SuspendCallback()
259 USBD_LL_Suspend((USBD_HandleTypeDef*)hpcd->pData); in HAL_PCD_SuspendCallback()
262 if (hpcd->Init.low_power_enable) in HAL_PCD_SuspendCallback()
276 void HAL_PCD_ResumeCallback(PCD_HandleTypeDef *hpcd) in HAL_PCD_ResumeCallback() argument
278 __HAL_PCD_UNGATE_PHYCLOCK(hpcd); in HAL_PCD_ResumeCallback()
281 if (hpcd->Init.low_power_enable) in HAL_PCD_ResumeCallback()
288 USBD_LL_Resume((USBD_HandleTypeDef*)hpcd->pData); in HAL_PCD_ResumeCallback()
297 void HAL_PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) in HAL_PCD_ISOOUTIncompleteCallback() argument
299 USBD_LL_IsoOUTIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); in HAL_PCD_ISOOUTIncompleteCallback()
308 void HAL_PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) in HAL_PCD_ISOINIncompleteCallback() argument
310 USBD_LL_IsoINIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); in HAL_PCD_ISOINIncompleteCallback()
318 void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd) in HAL_PCD_ConnectCallback() argument
320 USBD_LL_DevConnected((USBD_HandleTypeDef*)hpcd->pData); in HAL_PCD_ConnectCallback()
328 void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd) in HAL_PCD_DisconnectCallback() argument
330 USBD_LL_DevDisconnected((USBD_HandleTypeDef*)hpcd->pData); in HAL_PCD_DisconnectCallback()
645 PCD_HandleTypeDef *hpcd = (PCD_HandleTypeDef*) pdev->pData; in USBD_LL_IsStallEP() local
649 return hpcd->IN_ep[ep_addr & 0x7F].is_stall; in USBD_LL_IsStallEP()
653 return hpcd->OUT_ep[ep_addr & 0x7F].is_stall; in USBD_LL_IsStallEP()
778 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) in HAL_PCDEx_LPM_Callback() argument
783 if (hpcd->Init.low_power_enable) in HAL_PCDEx_LPM_Callback()
790 __HAL_PCD_UNGATE_PHYCLOCK(hpcd); in HAL_PCDEx_LPM_Callback()
791 USBD_LL_Resume(hpcd->pData); in HAL_PCDEx_LPM_Callback()
795 __HAL_PCD_GATE_PHYCLOCK(hpcd); in HAL_PCDEx_LPM_Callback()
796 USBD_LL_Suspend(hpcd->pData); in HAL_PCDEx_LPM_Callback()
799 if (hpcd->Init.low_power_enable) in HAL_PCDEx_LPM_Callback()
858 void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state) in HAL_PCDEx_SetConnectionState() argument
883 PCD_HandleTypeDef *hpcd = (PCD_HandleTypeDef*)pdev->pData; in USBD_LL_BatteryCharging() local
884 if (hpcd->Init.battery_charging_enable == ENABLE) in USBD_LL_BatteryCharging()