Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > What i use file for i2c in slavefifo project example?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



What i use file for i2c in slavefifo project example?
Moderator:
RSKV

Post Reply
Follow this topic



What i use file for i2c in slavefifo project example?

dv2 posted on 10 Dec 2012 5:48 PM PST
Top Contributor
113 Forum Posts

 Hi

I use slave fifo project example now, and i willing to insert i2c function. 

So i found some i2c files in "Target₩Lib₩LP₩" i2c.c and i2c_rw.c ...,.

I really want to know which one is need to i2c function in slave fifo. 

Could you please let me know what am i including files in slave project example?

 




Re: What i use file for i2c in slavefifo project example?

RSKV posted on 11 Dec 2012 11:28 PM PST
Cypress Employee
851 Forum Posts

Hi Dv2,

i2c_hw.c uses the I2C hardware block present in the FX2LP.

i2c_sw.c uses two GPIOs to implement the software I2C.

You can use any of them based on your need.

Thanks,

sai krishna.



Re: What i use file for i2c in slavefifo project example?

dv2 posted on 11 Dec 2012 12:22 AM PST
Top Contributor
113 Forum Posts

 I mean function like following. 

   void EZUSB_InitI2C(void);
  BOOL EZUSB_WriteI2C_(BYTE addr, BYTE length, BYTE xdata *dat);
BOOL EZUSB_ReadI2C_(BYTE addr, BYTE length, BYTE xdata *dat);
BOOL EZUSB_WriteI2C(BYTE addr, BYTE length, BYTE xdata *dat);
BOOL EZUSB_ReadI2C(BYTE addr, BYTE length, BYTE xdata *dat);
void EZUSB_WaitForEEPROMWrite(BYTE addr);

 

 

Is there any reference document?

 



Re: What i use file for i2c in slavefifo project example?

dv2 posted on 11 Dec 2012 12:41 AM PST
Top Contributor
113 Forum Posts

 Addinglyabove post,

I want to know how can i use that function in firmware and how can i call from windows application program. 



Re: What i use file for i2c in slavefifo project example?

dv2 posted on 11 Dec 2012 01:18 AM PST
Top Contributor
113 Forum Posts

 Addinglyabove post,

I want to know how can i use that function in firmware and how can i call from windows application program. 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20