IAP in LPC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IAP in LPC

1,277件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by raguramangopal on Sat Dec 21 12:07:51 MST 2013
#define IAP_LOCATION 0x7ffffff1
...
unsigned long command[5];
unsigned long result[3];
...
typedef void (*IAP)(unsigned int [],unsigned int[]);
IAP iap_entry;

iap_entry = (IAP) IAP_LOCATION;

iap_entry(command, result);

Can someone explain how it works, especially below code

iap_entry = (IAP) IAP_LOCATION;
iap_entry(command, result)
ラベル(1)
0 件の賞賛
返信
1 返信

925件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sun Dec 22 03:30:09 MST 2013
It is calling a function at a specific address. Look up "function pointers" in the C language.
0 件の賞賛
返信