/* Query number of entries in the interrupt queue.  */
s16 Si114xIrqQueueNumentries(HANDLE si114x_handle)
/* Query number of entries in the interrupt queue.  */
s16 Si114xIrqQueueNumentries(HANDLE si114x_handle)
{
  (void) si114x_handle;
  u16 runnerIndex = irqQueueGetIndex;
  s16 count=0;
  while (runnerIndex != irqQueuePutIndex)
  {
    runnerIndex++;
    count++;
    if(runnerIndex == IRQ_QUEUE_SIZE)
      runnerIndex = 0;
  }
  return (count/sizeof(SI114X_IRQ_SAMPLE));
}