Sim1 Complete up until Step 5
+- .gitignore ++ Sim01 Files ++ SimTimer stuff ++ SimProgGen
This commit is contained in:
parent
08677204ca
commit
dc4eca7285
25 changed files with 2059 additions and 0 deletions
53
Sim01/metadataops.h
Normal file
53
Sim01/metadataops.h
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
#ifndef METADATAOPS
|
||||
#define METADATAOPS
|
||||
|
||||
#include "StandardConstants.h"
|
||||
|
||||
typedef struct OpCodeTypeStruct
|
||||
{
|
||||
int temp;
|
||||
} OpCodeType;
|
||||
|
||||
/*
|
||||
Name: clearMetaDataList
|
||||
Process: recursively traverses list, frees dynamically allocated nodes
|
||||
Function Input/Parameters: node opcode (const OpCodeType *)
|
||||
Function Output/Parameters: none
|
||||
Function Output/Returned: NULL (OpCodeType *)
|
||||
Device Input/Device: none
|
||||
Device Output/Device: none
|
||||
Dependencies: ???
|
||||
*/
|
||||
OpCodeType *clearMetaDataList(OpCodeType *localPtr);
|
||||
|
||||
/*
|
||||
Name: displayMetaData
|
||||
Process: data dump/display of all opcode items
|
||||
Function Input/Parameters: pointer to
|
||||
head of opcode/metadata list (const OpCodeType *)
|
||||
Function Output/Parameters: none
|
||||
Function Output/Returned: none
|
||||
Device Input/Device: none
|
||||
Device Output/Device: none
|
||||
Dependencies: ???
|
||||
*/
|
||||
void displayMetaData(const OpCodeType *localPtr);
|
||||
|
||||
/*
|
||||
Name: getMetaData
|
||||
Process: main driver function to upload, parse, and store list
|
||||
of op code commands in a linked list
|
||||
Function Input/Parameters: file name (const char *)
|
||||
Function Output/Parameters: ptr to opcode linked list head ptr (OpCodeType **),
|
||||
result msg of fct state after completion (char *)
|
||||
Function Output/Returned: Boolean result of operation (bool)
|
||||
Device Input/File: op code list uploaded
|
||||
Device Output/Device: none
|
||||
Dependencies: copyString fopen, getStringToDelimiter, compareString, fclose,
|
||||
malloc, getOpCommand, updateStartCount, updateEndCount,
|
||||
clearMetaDataList, free, addNode
|
||||
*/
|
||||
bool getMetaData(const char *fileName,
|
||||
OpCodeType **opCodeDataHead, char *endStateMsg);
|
||||
|
||||
#endif // METADATAOPS
|
||||
Loading…
Add table
Add a link
Reference in a new issue