Macro callbacks in I2C component

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

cross mob
Anonymous
Not applicable

I'm trying to use the macro callbacks feature described in the I2C component datasheet, but the auto-generated I2C API does not include cyapicallbacks.h like the datasheet suggests that it should. I see the #ifdefs and the compiled-out callback functions in the source file, but the source file does not include the macro callbacks header file.

   

 

   

I'm using I2C Slave component v3.50. What am I missing??

0 Likes
1 Solution
Anonymous
Not applicable

Haha I've been racking my brain trying to figure out why cyapicallbacks.h wasn't included, but I found my answer here: http://www.cypress.com/forum/psoc-4-architecture/cmostartc-no-return-exception-handler-callback?sour....

   

As you noticed, I'm new to the forum and couldn't figure out how to properly search the forums. Figured it out, and found my answer.

   

Thanks Bob!

   

-Matt

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum.

   

Relax!

   

The cyapicallback.h file is #included in i2c.h.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Haha I've been racking my brain trying to figure out why cyapicallbacks.h wasn't included, but I found my answer here: http://www.cypress.com/forum/psoc-4-architecture/cmostartc-no-return-exception-handler-callback?sour....

   

As you noticed, I'm new to the forum and couldn't figure out how to properly search the forums. Figured it out, and found my answer.

   

Thanks Bob!

   

-Matt

0 Likes