any callback or message method in CYAPI.lib?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

I have tested the slave FIFO data transfer on 68013A according to the VC 2010 examples successfully.But I usually don't know whether the data are ready in the device. Any callback or message method (like UART receive interrupt )are available,so that it can tell me the data are ready in the device and I can get the data in time.

   

Thanks!

   

ZHOU Yigang

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello Zhou Yigang,

If you had installed the CY3684 DVK, you will find the FX2LPSerial.c and FX2LPSerial.h files in the following directory:

C:\Cypress\USB\CY3684\CY3684_EZ-USB_FX2LP_DVK\1.1\Firmware\Bulkloop

The CY3684 DVK can be installed from the below link:

http://www.cypress.com/documentation/development-kitsboards/cy3684-ez-usb-fx2lp-development-kit

These files FX2LPSerial.c and FX2LPSerial.h can be used to debug the firmware. Any information can be printed on a virtual terminal on the host. Please refer to the app note  AN58009 (http://www.cypress.com/file/44386/download ) for more details on implementation of this serial port debugging.

There is no API on the host side that can be used to know the availability of data in the FX2LP buffers. The host needs to query the device for data and will be successful when there is data available.

Hope this helps.

Best regards,

Srinath S

View solution in original post

0 Likes
1 Reply
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello Zhou Yigang,

If you had installed the CY3684 DVK, you will find the FX2LPSerial.c and FX2LPSerial.h files in the following directory:

C:\Cypress\USB\CY3684\CY3684_EZ-USB_FX2LP_DVK\1.1\Firmware\Bulkloop

The CY3684 DVK can be installed from the below link:

http://www.cypress.com/documentation/development-kitsboards/cy3684-ez-usb-fx2lp-development-kit

These files FX2LPSerial.c and FX2LPSerial.h can be used to debug the firmware. Any information can be printed on a virtual terminal on the host. Please refer to the app note  AN58009 (http://www.cypress.com/file/44386/download ) for more details on implementation of this serial port debugging.

There is no API on the host side that can be used to know the availability of data in the FX2LP buffers. The host needs to query the device for data and will be successful when there is data available.

Hope this helps.

Best regards,

Srinath S

0 Likes