#include "gclib.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
Go to the source code of this file.
Defines | |
#define | GCLIB_DLL_EXPORTED |
#define | _CRT_SECURE_NO_WARNINGS |
#define | GCALL __stdcall |
#define | SMALLBUF 256 |
#define | MALLOCBUF G_HUGE_BUFFER |
#define | MAXPROG MALLOCBUF |
#define | MAXARRAY MALLOCBUF |
#define | POLLINGINTERVAL 100 |
Functions | |
GCLIB_DLL_EXPORTED void GCALL | GSleep (unsigned int timeout_ms) |
Uses GUtility() and `G_UTIL_SLEEP` to provide a blocking sleep call which can be useful for timing-based chores. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GVersion (GCStringOut ver, GSize ver_len) |
Uses GUtility() and `G_UTIL_VERSION` to provide the library version number. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GAddresses (GCStringOut addresses, GSize addresses_len) |
Uses GUtility() and `G_UTIL_ADDRESSES` to provide a listing of all available connection addresses. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GInfo (GCon g, GCStringOut info, GSize info_len) |
Uses GUtility() and `G_UTIL_INFO` to provide a useful connection string. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GTimeout (GCon g, short timeout_ms) |
Uses GUtility() and `G_UTIL_TIMEOUT_OVERRIDE` to set the library timeout. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GCmd (GCon g, GCStringIn command) |
Wrapper around GCommand for use when the return value is not desired. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GCmdT (GCon g, GCStringIn command, GCStringOut trimmed_response, GSize response_len, GCStringOut *front) |
Wrapper around GCommand that trims the response. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GCmdI (GCon g, GCStringIn command, int *value) |
Wrapper around GCommand that provides the return value of a command parsed into an int. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GCmdD (GCon g, GCStringIn command, double *value) |
Wrapper around GCommand that provides the return value of a command parsed into a double. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GMotionComplete (GCon g, GCStringIn axes) |
Blocking call that returns once all axes specified have completed their motion. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GRecordRate (GCon g, double period_ms) |
Sets the asynchronous data record to a user-specified period via `DR`. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GProgramDownloadFile (GCon g, GCStringIn file_path, GCStringIn preprocessor) |
Program download from file. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GProgramUploadFile (GCon g, GCStringIn file_path) |
Program upload to file. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GArrayDownloadFile (GCon g, GCStringIn file_path) |
Array download from file. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GArrayUploadFile (GCon g, GCStringIn file_path, GCStringIn names) |
Array upload to file. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GIpRequests (GCStringOut requests, GSize requests_len) |
Provides a list of all Galil controllers requesting IP addresses via BOOT-P or DHCP. | |
GCLIB_DLL_EXPORTED GReturn GCALL | GAssign (char *ip, char *mac) |
Assigns IP address over the Ethernet to a controller at a given MAC address. | |
GCLIB_DLL_EXPORTED void GCALL | GError (GReturn rc, GCStringOut error, GSize error_len) |
Provides a human-readable description string for return codes. |
Open-source convenience functions for Galil C Lib. Please email softwarefeedback@galil.com with suggestions for useful/missing functions.
Definition in file gclibo.h.