lpcware

IAP C code example query

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Scribe on Sat Sep 08 15:42:38 MST 2012
Hi guys,

I'm looking at the recommended IAP C implementation and am a little confused as to why it recommends an array of longs yet the command itself is looking for an array of ints, is anyone able to shed some light on this? If anyone has an example of the code in use I would be most grateful.

--------
unsigned long command[5];
unsigned long result[4];

typedef void (*IAP)(unsigned int [],unsigned int[]);
--------

Any help much appreciated,
Many thanks

Outcomes