Welcome to the EyeBot
Version 7 - RPi1
A Controller For Various Hardware IO
|
Header file for the HDT functions. More...
Go to the source code of this file.
Functions | |
int | HDTValidate (char *filename) |
checks all HDT entries in given filename. will not check for specific entry (only check entry headers). More... | |
int | HDTListEntry (char *filename, HDT_ENTRY *deventry, int count) |
Copy all entries to deventry. user need to free the allocated memory by using free(deventry->buffer). return value may be less than count. More... | |
int | HDTFindEntry (void *hdtfile, char *devname, HDT_ENTRY *deventry) |
finds an entry in the hdt file that matches given name and copies the entry to given structure. the newline character is replaced by null. user need to free the allocated memory by using free(deventry->buffer). More... | |
int | HDTFindTable (void *hdtfile, char *tabname, HDT_TABLE *tabentry) |
finds a table in the hdt file that matches given name and copies the table data to given structure. More... | |
HDT_TABLE * | HDTLoadTable (char *filename, HDT_DEVICE *pdevices) |
load all tables needed by pdevices - if found. the return value is a pointer to the first table. the tables are in a linked list allocated with dynamic memory. use HDTClearTable to free up the resources. More... | |
int | HDTClearTable (HDT_TABLE *ptables) |
Free the allocated resources for the tables created by HDTLoadTable. More... | |
HDT_CAM * | HDTLoadCAM (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearCAM (HDT_CAM *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
HDT_MOTOR * | HDTLoadMOTOR (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearMOTOR (HDT_MOTOR *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
HDT_ENCODER * | HDTLoadENCODER (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearENCODER (HDT_ENCODER *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
int | HDTLinkENC2MOT (HDT_ENCODER *pencoders, HDT_MOTOR *pmotors) |
Link the encoders to the motors. More... | |
HDT_PSD * | HDTLoadPSD (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearPSD (HDT_PSD *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
HDT_SERVO * | HDTLoadSERVO (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearSERVO (HDT_SERVO *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
HDT_DRIVE * | HDTLoadDRIVE (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearDRIVE (HDT_DRIVE *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
int | HDTLinkDRV2ENC (HDT_DRIVE *pdrives, HDT_ENCODER *pencoders) |
Link the drives to the encoders. More... | |
HDT_IRTV * | HDTLoadIRTV (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearIRTV (HDT_IRTV *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
HDT_ADC * | HDTLoadADC (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearADC (HDT_ADC *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
HDT_COM * | HDTLoadCOM (char *filename, char *devname) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources. More... | |
int | HDTClearCOM (HDT_COM *pdevs) |
Free the allocated resources for the <device> created by HDTLoad<device>. More... | |
Header file for the HDT functions.
int HDTClearADC | ( | HDT_ADC * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_ADC* | pdevs : <device> list to be cleared |
int HDTClearCAM | ( | HDT_CAM * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_CAM* | pdevs : <device> list to be cleared |
int HDTClearCOM | ( | HDT_COM * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_COM* | pdevs : <device> list to be cleared |
int HDTClearDRIVE | ( | HDT_DRIVE * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_DRIVE* | pdevs : <device> list to be cleared |
int HDTClearENCODER | ( | HDT_ENCODER * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_ENCODER* | pdevs : <device> list to be cleared |
int HDTClearIRTV | ( | HDT_IRTV * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_IRTV* | pdevs : <device> list to be cleared |
int HDTClearMOTOR | ( | HDT_MOTOR * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_MOTOR* | pdevs : <device> list to be cleared |
int HDTClearPSD | ( | HDT_PSD * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_PSD* | pdevs : <device> list to be cleared |
int HDTClearSERVO | ( | HDT_SERVO * | pdevs | ) |
Free the allocated resources for the <device> created by HDTLoad<device>.
HDT_SERVO* | pdevs : <device> list to be cleared |
int HDTClearTable | ( | HDT_TABLE * | ptables | ) |
Free the allocated resources for the tables created by HDTLoadTable.
HDT_TABLE* | ptables : tables to be cleared |
int HDTFindEntry | ( | void * | hdtfile, |
char * | devname, | ||
HDT_ENTRY * | deventry | ||
) |
finds an entry in the hdt file that matches given name and copies the entry to given structure. the newline character is replaced by null. user need to free the allocated memory by using free(deventry->buffer).
void* | hdtfile : hdt file fopen with "rt" flag |
char* | devname : name of entry to search for |
HDT_ENTRY* | deventry : storage structure for the entry |
int HDTFindTable | ( | void * | hdtfile, |
char * | tabname, | ||
HDT_TABLE * | tabentry | ||
) |
finds a table in the hdt file that matches given name and copies the table data to given structure.
void* | hdtfile : hdt file (fopen with "rt" flag) |
char* | tabname : name of table to search for |
HDT_TABLE* | tabentry : storage structure for the table |
int HDTLinkDRV2ENC | ( | HDT_DRIVE * | pdrives, |
HDT_ENCODER * | pencoders | ||
) |
Link the drives to the encoders.
HDT_DRIVE* | pdrives : list of drive methods |
HDT_ENCODER* | pencoders : list of encoders |
int HDTLinkENC2MOT | ( | HDT_ENCODER * | pencoders, |
HDT_MOTOR * | pmotors | ||
) |
Link the encoders to the motors.
HDT_ENCODER* | pencoders : list of encoders |
HDT_MOTOR* | pmotors : list of motors |
int HDTListEntry | ( | char * | filename, |
HDT_ENTRY * | deventry, | ||
int | count | ||
) |
Copy all entries to deventry. user need to free the allocated memory by using free(deventry->buffer). return value may be less than count.
char* | filename : name of HDT file to be checked for listing |
HDT_ENTRY* | deventry : storage structure for the entry |
int | count : number of deventry storage supplied |
HDT_ADC* HDTLoadADC | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char* | devname : device semantics |
HDT_CAM* HDTLoadCAM | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char* | devname : device semantics |
HDT_COM* HDTLoadCOM | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char | *devname : device semantics |
HDT_DRIVE* HDTLoadDRIVE | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char* | devname : device semantics |
HDT_ENCODER* HDTLoadENCODER | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char* | devname : device semantics |
HDT_IRTV* HDTLoadIRTV | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char* | devname : device semantics |
HDT_MOTOR* HDTLoadMOTOR | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char* | devname : device semantics |
HDT_PSD* HDTLoadPSD | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char* | devname : device semantics |
HDT_SERVO* HDTLoadSERVO | ( | char * | filename, |
char * | devname | ||
) |
load all <device> entry found in the hdt file if devname is null. else, load only the requested device. the return value is a pointer to the first <device>. the <devices> are in a linked list allocated with dynamic memory. use HDTClear<device> to free up the resources.
char* | filename : hdt file to open |
char* | devname : device semantics |
HDT_TABLE* HDTLoadTable | ( | char * | filename, |
HDT_DEVICE * | pdevices | ||
) |
load all tables needed by pdevices - if found. the return value is a pointer to the first table. the tables are in a linked list allocated with dynamic memory. use HDTClearTable to free up the resources.
char* | filename : hdt file to open |
HDT_DEVICE* | pdevices : devices with tablename in linked list |
int HDTValidate | ( | char * | filename | ) |
checks all HDT entries in given filename. will not check for specific entry (only check entry headers).
char* | filename : name of HDT file to be checked |