- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The documentation of blecm_startTimerSource is quite sparse.
What parameter is passed to the callback function?
I call:
blecm_startTimerSource(12, TimerCallback, 100)
but TimerCallback never gets called.
Is there any updated API documenation available?
The v2.2.2 leaves out a number of details
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was advised that blecm_startTimerSource () is actually being used by the chip's internal ROM code and therefore not available for application use. However you can use bleprofile_regTimerCb to create your timer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found the below from the API documentation in the SDK. Is this what you are looking for?
void blecm_startTimerSource | ( | INT32 | id, |
BLECM_FUNC_WITH_PARAM | appCb, | ||
UINT32 | ticks | ||
) |
Starts a software timer.
Starts a low level software timer.
- Parameters
id ID of the software timer. appCb Application callback function. ticks The interval of the timer in OS ticks (12.5mS units).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That docu I know.
But how to define appCb?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
typedef INT32(*BLECM_FUNC_WITH_PARAM)(void *);
Is this what you are looking for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes,
BLECM_FUNC_WITH_PARAM says:
-- function with parameter --
So what parameter has to filled in here:
void TimerCallback(??)
{
ble_trace0("--Timer Triggered");
}
This should call TimerCallback after one seconds, right?
blecm_startTimerSource(12, TimerCallback, 1000)
But it never gets called, why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just to let you know that we are checking with the factory on the above issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was advised that blecm_startTimerSource () is actually being used by the chip's internal ROM code and therefore not available for application use. However you can use bleprofile_regTimerCb to create your timer.