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/configops.c
Normal file
53
Sim01/configops.c
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
#include "configops.h"
|
||||
#include "StandardConstants.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
/*
|
||||
Name: clearConfigData
|
||||
Process: frees dynamically allocated config data structure
|
||||
if it has not already been freed
|
||||
Function Input/Parameters: pointer to config data structure (ConfigDataType *)
|
||||
Function Output/Parameters: none
|
||||
Function Output/Returned: NULL (ConfigDataType *)
|
||||
Device Input/Device: none
|
||||
Device Output/Device: none
|
||||
Dependencies: ???
|
||||
*/
|
||||
ConfigDataType *clearConfigData(ConfigDataType *configData)
|
||||
{
|
||||
// return NULL (temp)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
Name: displayConfigData
|
||||
Process: screen dump/display of all config data
|
||||
Function Input/Parameters: pointer to config data structure (ConfigDataType *)
|
||||
Function Output/Parameters: none
|
||||
Function Output/Returned: none
|
||||
Device Input/Device: none
|
||||
Device Output/Monitor: displayed as spec'd
|
||||
Dependencies: ???
|
||||
*/
|
||||
void displayConfigData(ConfigDataType *configData)
|
||||
{
|
||||
// void function, no return.
|
||||
}
|
||||
|
||||
/*
|
||||
Name: getConfigData
|
||||
Process: driver function for capturing config data from config file
|
||||
Function Input/Parameters: file name (const char *)
|
||||
Function Output/Parameters: pointer to config data pointer (ConfigDataType **)
|
||||
end/result state message pointer (char *)
|
||||
Function Output/Returned: Boolean result of data access operation (bool)
|
||||
Device Input/File: config data uploaded
|
||||
Device Output/Device: none
|
||||
Dependencies: ???
|
||||
*/
|
||||
bool getConfigData(const char *fileName,
|
||||
ConfigDataType **configData, char *endStateMsg)
|
||||
{
|
||||
// return false (temp)
|
||||
return false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue