
SensL © 2011
33
USER MANUAL
HRM-TDC
SensL © 2011
33
> Appendix > Hrm-tdc Registers And Low Level Dll Functions
This function initializes an array of HRM-TDC handles to allow communication with all HRM-TDC modules present
on the USB bus. The size of the array must be greater or equal to the number of modules detected using the function
HRM_GetConnectedModuleCount.
Driver - HRM_CloseModule
HRM_STATUS WINAPI HRM_CloseModule(HANDLE handle)
On completion of the application, this function must be called to release the handle and close the session.
Example:
int
moduleCount;
HANDLE
handleArr[20];
HRM_RefreshConnectedModuleList();
moduleCount = HRM_GetConnectedModuleCount();
if
(moduleCount)
{
HRM_GetConnectedModuleList(handleArr);
APPLICATION CODE HERE
HRM_CloseModule(handleArr);
}
else
printf(“No HRM-TDC modules detected”);
In this example the
APPLICATION CODE
can address up to
‘moduleCount’
HRM-TDC modules.
Now that communication with the module has been established the configuration registers can be programmed
using the associated low level driver.
ARR – Address Route Register
Register Description
The method of time-binning is based on using the received time-tag data and discrete I/O inputs to form the address
in memory for time-bin processing. In its simplest form, a time-tag could be used as the address bus so that each
time-bin is separated by the resolution of the least significant bit. On receipt of a time-tag the system outputs the
time-tag as an address and then increments that location (time-bin). In the HRM-TDC system further data bits are
included in the address selection to allow multiple curve plotting based on multiple channel inputs and discrete
inputs for X, Y array plotting. To allow maximum flexibility the AAR register can define any bit to be placed in any