Hi,
i am using an external Hall sensor to give an INT on the CC2650 with an magnet.
I receive the interrupts and my question is what is the unit of the returnet value from the interrupt:
void timerCallback(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
{
timerBuf[timerBufIndex++] = GPTimerCC26XX_getValue(handle);
if(timerBufIndex == 10)
{
//GPTimerCC26XX_stop(handle);
timerBufIndex=0;
}
}
The Timer is triggert for a positive edge: GPTimerCC26XX_POS_EDGE
So if i understood it right, the Timer will give an Interrupt for every positive Edge.
And the time between them would be given in return on the callback function.
Is this right?
Is the returned value in micro seconds?