Home
last modified time | relevance | path

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

/hal_infineon-3.6.0/mtb-pdl-cat1/drivers/include/
Dcy_usbfs_dev_drv_reg.h134 __STATIC_INLINE void Cy_USBFS_Dev_Drv_SetSieEpMode (USBFS_Type *base, uint32_t endpoint, uint…
135 __STATIC_INLINE uint32_t Cy_USBFS_Dev_Drv_GetSieEpMode (USBFS_Type const *base, uint32_t endpoint
136 …E void Cy_USBFS_Dev_Drv_SetSieEpStall (USBFS_Type *base, bool inDirection, uint32_t endpoint);
137 __STATIC_INLINE void Cy_USBFS_Dev_Drv_ClearSieEpStall(USBFS_Type *base, uint32_t endpoint, uint…
138 __STATIC_INLINE uint32_t Cy_USBFS_Dev_Drv_GetSieEpError (USBFS_Type const *base, uint32_t endpoint
141 …TATIC_INLINE uint32_t Cy_USBFS_Dev_Drv_GetSieEpToggle (USBFS_Type const *base, uint32_t endpoint);
142 __STATIC_INLINE void Cy_USBFS_Dev_Drv_ClearSieEpToggle(USBFS_Type *base, uint32_t endpoint);
143 __STATIC_INLINE uint32_t Cy_USBFS_Dev_Drv_GetSieEpCount(USBFS_Type const *base, uint32_t endpoint);
144 __STATIC_INLINE void Cy_USBFS_Dev_Drv_SetSieEpCount(USBFS_Type *base, uint32_t endpoint, uint32…
148 __STATIC_INLINE void Cy_USBFS_Dev_Drv_EnableSieEpInterrupt (USBFS_Type *base, uint32_t endpoint
[all …]
Dcy_usbfs_dev_drv.h943 uint32_t endpoint,
954 uint32_t endpoint,
1220 uint32_t endpoint,
1232 uint32_t endpoint,
1236 uint32_t endpoint,
1242 uint32_t endpoint,
1246 uint32_t endpoint,
1253 uint32_t endpoint,
1256 …IC_INLINE bool Cy_USBFS_Dev_Drv_GetEndpointAckState(USBFS_Type const *base, uint32_t endpoint);
1257 …IC_INLINE uint32_t Cy_USBFS_Dev_Drv_GetEndpointCount (USBFS_Type const *base, uint32_t endpoint);
[all …]
Dcy_usbfs_dev_drv_pvt.h56 void DmaOutEndpointRestore(cy_stc_usbfs_dev_drv_endpoint_data_t *endpoint);
81 uint32_t endpoint,
87 uint32_t endpoint,
93 uint32_t endpoint,
99 uint32_t endpoint,
106 uint32_t endpoint,
113 uint32_t endpoint,
121 uint32_t endpoint);
136 #define IS_EP_VALID(endpoint) CY_USBFS_DEV_DRV_IS_EP_VALID(endpoint) argument
137 #define EP2PHY(endpoint) CY_USBFS_DEV_DRV_EP2PHY(endpoint) argument
[all …]
Dcy_ipc_pipe.h314 void Cy_IPC_Pipe_ExecCallback(cy_stc_ipc_pipe_ep_t * endpoint);
/hal_infineon-3.6.0/mtb-pdl-cat1/drivers/source/
Dcy_usbfs_dev_drv_io.c76 static void DisableEndpoint(USBFS_Type *base, uint32_t endpoint, cy_stc_usbfs_dev_drv_context_t *co…
98 static void DisableEndpoint(USBFS_Type *base, uint32_t endpoint, cy_stc_usbfs_dev_drv_context_t *co… in DisableEndpoint() argument
101 Cy_USBFS_Dev_Drv_SetSieEpMode(base, endpoint, CY_USBFS_DEV_DRV_EP_CR_DISABLE); in DisableEndpoint()
102 context->epPool[endpoint].state = CY_USB_DEV_EP_DISABLED; in DisableEndpoint()
173 uint32_t endpoint; in Cy_USBFS_Dev_Drv_UnConfigureDevice() local
186 for (endpoint = 0U; endpoint < CY_USBFS_DEV_DRV_NUM_EPS_MAX; ++endpoint) in Cy_USBFS_Dev_Drv_UnConfigureDevice()
189 DisableEndpoint(base, endpoint, context); in Cy_USBFS_Dev_Drv_UnConfigureDevice()
268 uint32_t endpoint = EPADDR2PHY(endpointData->address); in RestoreEndpointHwBuffer() local
274 Cy_USBFS_Dev_Drv_SetArbWriteAddr(base, endpoint, (uint32_t) endpointData->startBuf); in RestoreEndpointHwBuffer()
275 Cy_USBFS_Dev_Drv_SetArbReadAddr (base, endpoint, (uint32_t) endpointData->startBuf); in RestoreEndpointHwBuffer()
[all …]
Dcy_usbfs_dev_drv_io_dma.c88 cy_stc_usbfs_dev_drv_endpoint_data_t *endpoint);
165 uint32_t endpoint; in DmaInit() local
168 for (endpoint = 0UL; endpoint < CY_USBFS_DEV_DRV_NUM_EPS_MAX; ++endpoint) in DmaInit()
174 cy_stc_usbfs_dev_drv_endpoint_data_t *endpointData = &context->epPool[endpoint]; in DmaInit()
176 if (config->dmaConfig[endpoint] != NULL) in DmaInit()
187 endpointData->base = config->dmaConfig[endpoint]->base; in DmaInit()
188 endpointData->chNum = config->dmaConfig[endpoint]->chNum; in DmaInit()
189 endpointData->descr0 = config->dmaConfig[endpoint]->descr0; in DmaInit()
190 endpointData->descr1 = config->dmaConfig[endpoint]->descr1; in DmaInit()
191 endpointData->outTrigMux = config->dmaConfig[endpoint]->outTrigMux; in DmaInit()
[all …]
Dcy_ipc_pipe.c275 cy_stc_ipc_pipe_ep_t * endpoint; in Cy_IPC_Pipe_EndpointInit() local
279 endpoint = &cy_ipc_pipe_epArray[epAddr]; in Cy_IPC_Pipe_EndpointInit()
282 endpoint->ipcChan = _FLD2VAL(CY_IPC_PIPE_CFG_CHAN, epConfig); in Cy_IPC_Pipe_EndpointInit()
283 endpoint->intrChan = _FLD2VAL(CY_IPC_PIPE_CFG_INTR, epConfig); in Cy_IPC_Pipe_EndpointInit()
284 endpoint->pipeIntMask = _FLD2VAL(CY_IPC_PIPE_CFG_IMASK, epConfig); in Cy_IPC_Pipe_EndpointInit()
287 endpoint->ipcPtr = Cy_IPC_Drv_GetIpcBaseAddress (endpoint->ipcChan); in Cy_IPC_Pipe_EndpointInit()
290 endpoint->ipcIntrPtr = Cy_IPC_Drv_GetIntrBaseAddr(endpoint->intrChan); in Cy_IPC_Pipe_EndpointInit()
293 Cy_IPC_Drv_SetInterruptMask(endpoint->ipcIntrPtr, endpoint->pipeIntMask, endpoint->pipeIntMask); in Cy_IPC_Pipe_EndpointInit()
296 endpoint->clientCount = cbCnt; in Cy_IPC_Pipe_EndpointInit()
297 endpoint->callbackArray = cbArray; in Cy_IPC_Pipe_EndpointInit()
[all …]
Dcy_usbfs_dev_drv.c58 static void SieEnpointIntrHandler(USBFS_Type *base, uint32_t endpoint, cy_stc_usbfs_dev_drv_context…
65 static void EndpointTransferComplete(USBFS_Type *base, uint32_t endpoint,
226 uint32_t endpoint; in Cy_USBFS_Dev_Drv_DeInit() local
266 for (endpoint = 0UL; endpoint < CY_USBFS_DEV_DRV_NUM_EPS_MAX; ++endpoint) in Cy_USBFS_Dev_Drv_DeInit()
269 USBFS_DEV_SIE_EP_CR0(base, endpoint) = 0UL; in Cy_USBFS_Dev_Drv_DeInit()
270 USBFS_DEV_SIE_EP_CNT0(base, endpoint) = 0UL; in Cy_USBFS_Dev_Drv_DeInit()
271 USBFS_DEV_SIE_EP_CNT1(base, endpoint) = 0UL; in Cy_USBFS_Dev_Drv_DeInit()
274 USBFS_DEV_ARB_EP_CFG(base, endpoint) = 0UL; in Cy_USBFS_Dev_Drv_DeInit()
275 USBFS_DEV_ARB_EP_INT_EN(base, endpoint) = 0UL; in Cy_USBFS_Dev_Drv_DeInit()
276 USBFS_DEV_ARB_RW_WA16(base, endpoint) = 0UL; in Cy_USBFS_Dev_Drv_DeInit()
[all …]
/hal_infineon-3.6.0/mtb-hal-cat1/include/
Dcyhal_usb_dev.h130 #define CYHAL_USB_DEV_IS_IN_EP(endpoint) (0U != (0x80U & (uint32_t) (endpoint))) argument
133 #define CYHAL_USB_DEV_GET_EP_NUM(endpoint) ((uint32_t) (endpoint) & 0x0FU) argument
136 #define CYHAL_USB_DEV_GET_EP_IDX(endpoint) (CYHAL_USB_DEV_GET_EP_NUM(endpoint) - 1U) argument
178 typedef void (* cyhal_usb_dev_endpoint_callback_t)(cyhal_usb_dev_ep_t endpoint);
374 …t_add(cyhal_usb_dev_t *obj, bool alloc, bool enable ,cyhal_usb_dev_ep_t endpoint, uint32_t max_pac…
384 cy_rslt_t cyhal_usb_dev_endpoint_remove(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint);
397 cy_rslt_t cyhal_usb_dev_endpoint_stall(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint);
410 cy_rslt_t cyhal_usb_dev_endpoint_unstall(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint);
420 bool cyhal_usb_dev_endpoint_is_stalled(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint);
433 …cy_rslt_t cyhal_usb_dev_endpoint_read(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint, uint8_t *…
[all …]
/hal_infineon-3.6.0/mtb-hal-cat1/source/
Dcyhal_usb_dev.c74 #define _CYHAL_USB_DEV_IS_EP_NUM_VALID(endpoint) CY_USBFS_DEV_DRV_IS_EP_VALID(endpoint) argument
629 … cyhal_usb_dev_ep_t endpoint, uint32_t max_packet, cyhal_usb_dev_ep_type_t type) in cyhal_usb_dev_endpoint_add() argument
639 ep_config.endpointAddr = (uint8_t) endpoint; in cyhal_usb_dev_endpoint_add()
647 cy_rslt_t cyhal_usb_dev_endpoint_remove(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_remove() argument
649 …return (CY_USBFS_DEV_DRV_SUCCESS == Cy_USBFS_Dev_Drv_RemoveEndpoint(obj->base, endpoint, &(obj->co… in cyhal_usb_dev_endpoint_remove()
653 cy_rslt_t cyhal_usb_dev_endpoint_stall(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_stall() argument
655 …S == Cy_USBFS_Dev_Drv_StallEndpoint(obj->base, CYHAL_USB_DEV_GET_EP_NUM(endpoint), &(obj->context)… in cyhal_usb_dev_endpoint_stall()
659 cy_rslt_t cyhal_usb_dev_endpoint_unstall(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_unstall() argument
661 …== Cy_USBFS_Dev_Drv_UnStallEndpoint(obj->base, CYHAL_USB_DEV_GET_EP_NUM(endpoint), &(obj->context)… in cyhal_usb_dev_endpoint_unstall()
665 bool cyhal_usb_dev_endpoint_is_stalled(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_is_stalled() argument
[all …]
/hal_infineon-3.6.0/mtb-pdl-cat1/devices/COMPONENT_CAT1A/include/
Dcy_device.h1277 #define USBFS_DEV_SIE_REGS(base, endpoint) ((uint32_t)(base) + USBFS_DEV_SIE_REGS_BASE + ((endpoint argument
1279 #define USBFS_DEV_SIE_EP_CNT0(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_SIE_REGS(base, en… argument
1281 #define USBFS_DEV_SIE_EP_CNT1(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_SIE_REGS(base, en… argument
1283 #define USBFS_DEV_SIE_EP_CR0(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_SIE_REGS(base, en… argument
1296 #define USBFS_DEV_ARB_REGS(base, endpoint) ((uint32_t)(base) + USBFS_DEV_ARB_REGS_BASE + ((endpoint argument
1298 #define USBFS_DEV_ARB_EP_CFG(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
1300 #define USBFS_DEV_ARB_EP_INT_EN(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
1302 #define USBFS_DEV_ARB_EP_SR(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
1304 #define USBFS_DEV_ARB_RW_WA(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
1306 #define USBFS_DEV_ARB_RW_WA_MSB(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
[all …]
/hal_infineon-3.6.0/mtb-pdl-cat1/devices/COMPONENT_CAT1C/include/
Dcy_device.h1935 #define USBFS_DEV_SIE_REGS(base, endpoint) ((uint32_t)(base) + USBFS_DEV_SIE_REGS_BASE + ((endpoint argument
1937 #define USBFS_DEV_SIE_EP_CNT0(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_SIE_REGS(base, en… argument
1939 #define USBFS_DEV_SIE_EP_CNT1(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_SIE_REGS(base, en… argument
1941 #define USBFS_DEV_SIE_EP_CR0(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_SIE_REGS(base, en… argument
1954 #define USBFS_DEV_ARB_REGS(base, endpoint) ((uint32_t)(base) + USBFS_DEV_ARB_REGS_BASE + ((endpoint argument
1956 #define USBFS_DEV_ARB_EP_CFG(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
1958 #define USBFS_DEV_ARB_EP_INT_EN(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
1960 #define USBFS_DEV_ARB_EP_SR(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
1962 #define USBFS_DEV_ARB_RW_WA(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
1964 #define USBFS_DEV_ARB_RW_WA_MSB(base, endpoint) (*(volatile uint32_t *) (USBFS_DEV_ARB_REGS(base… argument
[all …]