Author Topic: ICP3300 development: SX_CMD_RESPONSE_PROC usage ?  (Read 2843 times)

haltun

  • Guest
ICP3300 development: SX_CMD_RESPONSE_PROC usage ?
« on: April 06, 2009, 04:06:53 PM »
Hi,
 
What is the method signature of   Void(*fn)() SX_CMD_RESPONSE_PROC.
I couldn


Offline chadmaynard

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +1/-0
    • View Profile
Re: ICP3300 development: SX_CMD_RESPONSE_PROC usage ?
« Reply #1 on: April 09, 2009, 01:38:05 AM »
Perhaps you mean "prototype" ? ANSI C isn't object oriented and doesn't define the word "method" or phrase "method signature" because they are OO concepts. They are instead called "functions" and "prototypes" define the parameters that a function will receive.

Also, you shouldn't be writing code off of other people's examples. You should read the documentation so that you know how to handle every case that needs to be handled in your situation.

Anyway, callback functions (which is what you are asking about, right?) use the same key-value tuples that are defined throughout the rest of the mitai client library. Read the documentation and defined your callback to receive the necessary NULL-terminated args list.

haltun

  • Guest
Re: ICP3300 development: SX_CMD_RESPONSE_PROC usage ?
« Reply #2 on: April 20, 2009, 01:37:35 AM »

Yes, I mean function prototype.

I have been reading the documetation but I am new to Mitai development and also I am not good on C or C++.

I just needed one line of prototype definition, If you wanted to help.

thanks anyway.


 

Sitemap 1 2 3 4 5 6 7 8 9 10