| gclib 368 Communications API for Galil controllers and PLCs |

All Data Structures Files Functions Variables Typedefs Macros Pages
Data Structures | Macros | Typedefs | Functions
arrays.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.

## Data Structures
struct | H_ArrayData
| Structure to create a linked list for array data. More...

## Typedefs
typedef struct H_ArrayData | ArrayNode

## Functions
void | H_InitArrayNode (ArrayNode *node)
| Function to initialize the memory of a new node.
GReturn | H_AddArray (ArrayNode *head, char *name, char *data)
| Add an ArrayData node to the linked list.
void | H_FreeArrays (ArrayNode *node)
| Frees all memory downsteam of node. After passing list head to this function, all memory is freed and the head node is invalid.
GReturn | H_UploadArrayToList (GCon g, ArrayNode *head, char *name)
| Uplaods a particular array and adds it to the linked list.
GReturn | H_CreateArrayNode (ArrayNode *head, char *name)
| Creates a buffer on the heap to write data, and adds it to the linked list.
GReturn | H_ArrayAddElement (ArrayNode *node, GCStringIn element)
| Adds an array element to an array node.
GReturn | H_DownloadArraysFromList (GCon g, ArrayNode *head)
| Walks through the array linked list, downloading each. More...
GReturn | H_WriteArrayCsv (ArrayNode *head, GCStringIn file_path)
| After filling the array list, this function is called to write out the CSV.
GReturn GCALL | GArrayDownloadFile (GCon g, GCStringIn file_path)
| Array download from file. More...
GReturn GCALL | GArrayUploadFile (GCon g, GCStringIn file_path, GCStringIn names)
| Array upload to file. More...

## Detailed Description

Function calls for uploading and downloading arrays with CSV files.

Definition in file arrays.c.