AHP® GT Controllers API
AHP GT Controllers
|
Functions | |
DLL_EXPORT unsigned int | ahp_gt_get_version (void) |
Obtain the current libahp-gt version. More... | |
DLL_EXPORT int | ahp_gt_connect (const char *port) |
Connect to the GT controller. More... | |
DLL_EXPORT int | ahp_gt_connect_fd (int fd) |
Connect to the GT controller using an existing file descriptor. More... | |
DLL_EXPORT int | ahp_gt_connect_udp (const char *address, int port) |
Connect to the GT controller throught an UDP connection. More... | |
DLL_EXPORT int | ahp_gt_get_fd () |
Return the file descriptor of the port connected to the GT controllers. More... | |
DLL_EXPORT void | ahp_gt_disconnect () |
Disconnect from the GT controller. | |
DLL_EXPORT void | ahp_gt_set_fd (int fd) |
Set the file descriptor that links to the controller. More... | |
DLL_EXPORT unsigned int | ahp_gt_is_connected () |
Report connection status. More... | |
DLL_EXPORT unsigned int | ahp_gt_is_detected (int index) |
Report detection status. More... | |
DLL_EXPORT int | ahp_gt_get_mc_version (int axis) |
Get the GT firmware version. More... | |
DLL_EXPORT int ahp_gt_connect | ( | const char * | port | ) |
port | The serial port filename |
DLL_EXPORT int ahp_gt_connect_fd | ( | int | fd | ) |
fd | The serial stream file descriptor |
DLL_EXPORT int ahp_gt_connect_udp | ( | const char * | address, |
int | port | ||
) |
address | The ip address of the server |
port | The port on which the server should connect |
DLL_EXPORT int ahp_gt_get_fd | ( | ) |
DLL_EXPORT int ahp_gt_get_mc_version | ( | int | axis | ) |
axis | The axis number if checking for a single axis module |
|
inline |
DLL_EXPORT unsigned int ahp_gt_is_connected | ( | ) |
DLL_EXPORT unsigned int ahp_gt_is_detected | ( | int | index | ) |
index | the address to check |
DLL_EXPORT void ahp_gt_set_fd | ( | int | fd | ) |
fd | The file descriptor |