ModusToolbox USBFXStack
Type Definitions

General Description

Typedefs

typedef bool(* cy_usb_cal_msg_callback_t) (void *pUsbdCtxt, void *pMsg)
 USB driver to stack callback prototype. More...
 
typedef void(* cy_usb_usbd_callback_t) (void *pAppCtxt, cy_stc_usb_usbd_ctxt_t *pUsbdCtxt, cy_stc_usb_cal_msg_t *pMsg)
 USB stack to application callback prototype. More...
 

Typedef Documentation

◆ cy_usb_cal_msg_callback_t

typedef bool(* cy_usb_cal_msg_callback_t) (void *pUsbdCtxt, void *pMsg)

USB driver to stack callback prototype.

A function of this type is used by the USBHS and USBSS drivers to notify the USBD stack about relevant interrupts.

Returns
Return value from stack indicates whether a context switch should be initiated when the ISR returns.
Parameters
pUsbdCtxtPointer to the USBD stack context structure.
pMsgPointer to the message structure.

◆ cy_usb_usbd_callback_t

typedef void(* cy_usb_usbd_callback_t) (void *pAppCtxt, cy_stc_usb_usbd_ctxt_t *pUsbdCtxt, cy_stc_usb_cal_msg_t *pMsg)

USB stack to application callback prototype.

A function of this type is used by the USBD stack to notify the application about events of interest.

Parameters
pAppCtxtApplication context pointer.
pUsbdCtxtUSBD stack context pointer.
pMsgMessage pointer.