Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Heart Rate Monitor → Thread

   

Ask about EVENT_FUNC

Rank

Total Posts: 4

Joined 0

PM

Hello,

I'm a newbie so I hope that my question will not bother you.
I took a look at the code source for the HRM and I found a function pointer in the file timer.h :

typedef void (*EVENT_FUNC)(USHORT usTimeStamp_, UCHAR ucAlarmNumber_);

I don't understand what this function will do and I can't find the definition of this function. Is there a library special for this function ?

Thanks for your helps      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

The code that you are referring to is used in timer.c, to setup callbacks based on a timer. The timers are used to simulate heart beat events, so this is probably not going to be very useful for you if you are implementing a real sensor or a display.