gclib  437
Communications API for Galil controllers and PLCs
gclibo.c File Reference
#include "gclibo.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>

Go to the source code of this file.

Functions

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. More...
 
GReturn GCALL GVersion (GCStringOut ver, GSize ver_len)
 Uses GUtility(), G_UTIL_VERSION and G_UTIL_GCAPS_VERSION to provide the library and gcaps version numbers. More...
 
GReturn GCALL GInfo (GCon g, GCStringOut info, GSize info_len)
 Uses GUtility() and G_UTIL_INFO to provide a useful connection string. More...
 
GReturn GCALL GAddresses (GCStringOut addresses, GSize addresses_len)
 Uses GUtility(), G_UTIL_GCAPS_ADDRESSES or G_UTIL_ADDRESSES to provide a listing of all available connection addresses. More...
 
GReturn GCALL GTimeout (GCon g, short timeout_ms)
 Uses GUtility() and G_UTIL_TIMEOUT_OVERRIDE to set the library timeout. More...
 
GReturn GCALL GAssign (GCStringIn ip, GCStringIn mac)
 Uses GUtility(), G_UTIL_GCAPS_ASSIGN or G_UTIL_ASSIGN to assign an IP address over the Ethernet to a controller at a given MAC address. More...
 
GReturn GCALL GIpRequests (GCStringOut requests, GSize requests_len)
 Uses GUtility(), G_UTIL_GCAPS_IPREQUEST or G_UTIL_IPREQUEST to provide a list of all Galil controllers requesting IP addresses via BOOT-P or DHCP. More...
 
GReturn GCALL GCmd (GCon g, GCStringIn command)
 Wrapper around GCommand for use when the return value is not desired. More...
 
GReturn GCALL GCmdT (GCon g, GCStringIn command, GCStringOut trimmed_response, GSize response_len, GCStringOut *front)
 Wrapper around GCommand that trims the response. More...
 
GReturn GCALL GCmdI (GCon g, GCStringIn command, int *value)
 Wrapper around GCommand that provides the return value of a command parsed into an int. More...
 
GReturn GCALL GCmdD (GCon g, GCStringIn command, double *value)
 Wrapper around GCommand that provides the return value of a command parsed into a double. More...
 
GReturn GCALL GMotionComplete (GCon g, GCStringIn axes)
 Blocking call that returns once all axes specified have completed their motion. More...
 
GReturn GCALL GWaitForBool (GCon g, GCStringIn predicate, int trials)
 Blocking call that returns when the controller evaluates the predicate as true. More...
 
GReturn GCALL GRecordRate (GCon g, double period_ms)
 Sets the asynchronous data record to a user-specified period via DR. More...
 
GReturn GCALL GProgramDownloadFile (GCon g, GCStringIn file_path, GCStringIn preprocessor)
 Program download from file. More...
 
GReturn GCALL GProgramUploadFile (GCon g, GCStringIn file_path)
 Program upload to file. More...
 
void GCALL GError (GReturn rc, GCStringOut error, GSize error_len)
 Provides a human-readable description string for return codes. More...
 

Detailed Description

Partial implementation of gclibo.h

Definition in file gclibo.c.