|
AHP® GT Controllers API
AHP GT Controllers
|
Functions | |
| DLL_EXPORT unsigned int | ahp_gt_get_version (void) |
| Obtain the current libahp-gt version. | |
| DLL_EXPORT int | ahp_gt_connect (const char *port) |
| Connect to the GT controller. | |
| DLL_EXPORT int | ahp_gt_connect_fd (int fd) |
| Connect to the GT controller using an existing file descriptor. | |
| DLL_EXPORT int | ahp_gt_connect_udp (const char *address, int port) |
| Connect to the GT controller throught an UDP connection. | |
| DLL_EXPORT int | ahp_gt_get_fd (void) |
| Return the file descriptor of the port connected to the GT controllers. | |
| DLL_EXPORT void | ahp_gt_disconnect (void) |
| Disconnect from the GT controller. | |
| DLL_EXPORT void | ahp_gt_set_fd (int fd) |
| Set the file descriptor that links to the controller. | |
| DLL_EXPORT unsigned int | ahp_gt_is_connected (void) |
| Report connection status. | |
| DLL_EXPORT unsigned int | ahp_gt_is_detected (int index) |
| Report detection status. | |
| DLL_EXPORT int | ahp_gt_get_mc_version (int axis) |
| Get the GT firmware version. | |
| 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 | ( | void | ) |
| 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 | ( | void | ) |
| 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 |