Home
last modified time | relevance | path

Searched refs:hpcd (Results 1 – 12 of 12) sorted by relevance

/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Drivers/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_pcd.c115 static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t epnum);
118 static HAL_StatusTypeDef PCD_EP_ISR_Handler(PCD_HandleTypeDef *hpcd);
148 HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd) in HAL_PCD_Init() argument
153 if(hpcd == NULL) in HAL_PCD_Init()
159 assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); in HAL_PCD_Init()
161 if(hpcd->State == HAL_PCD_STATE_RESET) in HAL_PCD_Init()
164 hpcd->Lock = HAL_UNLOCKED; in HAL_PCD_Init()
167 HAL_PCD_MspInit(hpcd); in HAL_PCD_Init()
170 hpcd->State = HAL_PCD_STATE_BUSY; in HAL_PCD_Init()
173 __HAL_PCD_DISABLE(hpcd); in HAL_PCD_Init()
[all …]
Dstm32l4xx_hal_pcd_ex.c92 HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size) in HAL_PCDEx_SetTxFiFo() argument
107 Tx_Offset = hpcd->Instance->GRXFSIZ; in HAL_PCDEx_SetTxFiFo()
111 hpcd->Instance->DIEPTXF0_HNPTXFSIZ = (size << 16) | Tx_Offset; in HAL_PCDEx_SetTxFiFo()
115 Tx_Offset += (hpcd->Instance->DIEPTXF0_HNPTXFSIZ) >> 16; in HAL_PCDEx_SetTxFiFo()
118 Tx_Offset += (hpcd->Instance->DIEPTXF[index] >> 16); in HAL_PCDEx_SetTxFiFo()
122 hpcd->Instance->DIEPTXF[fifo - 1] = (size << 16) | Tx_Offset; in HAL_PCDEx_SetTxFiFo()
134 HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size) in HAL_PCDEx_SetRxFiFo() argument
136 hpcd->Instance->GRXFSIZ = size; in HAL_PCDEx_SetRxFiFo()
146 HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd) in HAL_PCDEx_ActivateLPM() argument
148 USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; in HAL_PCDEx_ActivateLPM()
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Drivers/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_pcd.c115 static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t epnum);
118 static HAL_StatusTypeDef PCD_EP_ISR_Handler(PCD_HandleTypeDef *hpcd);
148 HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd) in HAL_PCD_Init() argument
153 if(hpcd == NULL) in HAL_PCD_Init()
159 assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); in HAL_PCD_Init()
161 if(hpcd->State == HAL_PCD_STATE_RESET) in HAL_PCD_Init()
164 hpcd->Lock = HAL_UNLOCKED; in HAL_PCD_Init()
167 HAL_PCD_MspInit(hpcd); in HAL_PCD_Init()
170 hpcd->State = HAL_PCD_STATE_BUSY; in HAL_PCD_Init()
173 __HAL_PCD_DISABLE(hpcd); in HAL_PCD_Init()
[all …]
Dstm32l4xx_hal_pcd_ex.c92 HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size) in HAL_PCDEx_SetTxFiFo() argument
107 Tx_Offset = hpcd->Instance->GRXFSIZ; in HAL_PCDEx_SetTxFiFo()
111 hpcd->Instance->DIEPTXF0_HNPTXFSIZ = (size << 16) | Tx_Offset; in HAL_PCDEx_SetTxFiFo()
115 Tx_Offset += (hpcd->Instance->DIEPTXF0_HNPTXFSIZ) >> 16; in HAL_PCDEx_SetTxFiFo()
118 Tx_Offset += (hpcd->Instance->DIEPTXF[index] >> 16); in HAL_PCDEx_SetTxFiFo()
122 hpcd->Instance->DIEPTXF[fifo - 1] = (size << 16) | Tx_Offset; in HAL_PCDEx_SetTxFiFo()
134 HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size) in HAL_PCDEx_SetRxFiFo() argument
136 hpcd->Instance->GRXFSIZ = size; in HAL_PCDEx_SetRxFiFo()
146 HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd) in HAL_PCDEx_ActivateLPM() argument
148 USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; in HAL_PCDEx_ActivateLPM()
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Src/
Dusbd_conf.c92 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
[all …]
Dusb_device.c128 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg) in HAL_PCDEx_BCD_Callback() argument
133 if (hpcd->battery_charging_active == ENABLE) in HAL_PCDEx_BCD_Callback()
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Src/
Dusbd_conf.c92 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
[all …]
Dusb_device.c128 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg) in HAL_PCDEx_BCD_Callback() argument
133 if (hpcd->battery_charging_active == ENABLE) in HAL_PCDEx_BCD_Callback()
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Drivers/STM32L4xx_HAL_Driver/Inc/
Dstm32l4xx_hal_pcd_ex.h89 HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size);
90 HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size);
94 HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd,
99 HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd);
100 HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd);
101 HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd);
102 HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd);
103 void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd);
104 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
105 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
Dstm32l4xx_hal_pcd.h280 HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd);
281 HAL_StatusTypeDef HAL_PCD_DeInit (PCD_HandleTypeDef *hpcd);
282 void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd);
283 void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd);
294 HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd);
295 HAL_StatusTypeDef HAL_PCD_Stop(PCD_HandleTypeDef *hpcd);
296 void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd);
298 void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum);
299 void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum);
300 void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd);
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Drivers/STM32L4xx_HAL_Driver/Inc/
Dstm32l4xx_hal_pcd_ex.h89 HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size);
90 HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size);
94 HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd,
99 HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd);
100 HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd);
101 HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd);
102 HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd);
103 void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd);
104 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
105 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
Dstm32l4xx_hal_pcd.h280 HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd);
281 HAL_StatusTypeDef HAL_PCD_DeInit (PCD_HandleTypeDef *hpcd);
282 void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd);
283 void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd);
294 HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd);
295 HAL_StatusTypeDef HAL_PCD_Stop(PCD_HandleTypeDef *hpcd);
296 void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd);
298 void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum);
299 void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum);
300 void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd);
[all …]