How to use the function name as parameters

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
YedongWeng
Member
Posts: 8
Joined: Mon Sep 03, 2012 3:40 pm

How to use the function name as parameters

Post by YedongWeng »

How can I use the function name as a parameter, or how to get the address of the function in XC.
Thanks advance.


User avatar
Ross
XCore Expert
Posts: 968
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

You can use function pointers in C, or does it have to be XC?
User avatar
YedongWeng
Member
Posts: 8
Joined: Mon Sep 03, 2012 3:40 pm

Post by YedongWeng »

Ross wrote:You can use function pointers in C, or does it have to be XC?
Thank you!
But I want to achieve in the XC, there are ways to achieve this?