AHP® GT Controllers API
AHP GT Controllers
Loading...
Searching...
No Matches
Multi-device addressing

Functions

DLL_EXPORT int ahp_gt_detect_device (void)
 Detect the currently selected device.
DLL_EXPORT int ahp_gt_select_device (int address)
 Select a device on a serial bus.
DLL_EXPORT int ahp_gt_get_current_device (void)
 Obtain the current device address.
DLL_EXPORT void ahp_gt_set_address (int address)
 Change the current device address.
DLL_EXPORT int ahp_gt_get_address (void)
 Get the current device address.

Detailed Description

Function Documentation

◆ ahp_gt_detect_device()

DLL_EXPORT int ahp_gt_detect_device ( void )
Returns
-1 if no devices were detected, 0 if a device with the current address was detected

◆ ahp_gt_get_address()

DLL_EXPORT int ahp_gt_get_address ( void )
Returns
the address of the connected GT Controller

◆ ahp_gt_get_current_device()

DLL_EXPORT int ahp_gt_get_current_device ( void )
Returns
-1 if no devices were detected at all, or currently selected device address

◆ ahp_gt_select_device()

DLL_EXPORT int ahp_gt_select_device ( int address)
Parameters
addressThe address to query on bus
Returns
-1 if the selected device were not detected, 0 if the selected device is available

◆ ahp_gt_set_address()

DLL_EXPORT void ahp_gt_set_address ( int address)
Parameters
addressThe bus address to set on the connected GT Controller