added property list library to return all required and optional properties of an object. Not finished with all object properties yet, but functional in the EPICs demo. Updated property enumerations and text names based on 135-2010 standard.

This commit is contained in:
skarg
2012-04-15 21:00:43 +00:00
parent c5015b334d
commit f6c6a9cb8b
7 changed files with 763 additions and 52 deletions
+2 -1
View File
@@ -47,6 +47,7 @@
#include "datalink.h"
#include "whois.h"
#include "rp.h"
#include "proplist.h"
/* some demo stuff needed */
#include "filename.h"
#include "handlers.h"
@@ -765,7 +766,7 @@ static uint8_t Read_Properties(
* In practice, this should only happen for simple devices that don't
* implement RPM or have really limited MAX_APDU size.
*/
Device_Objects_Property_List(pMyObject->type, &PropertyListStruct);
Property_List_Special(pMyObject->type, &PropertyListStruct);
pPropList = PropertyListStruct.Required.pList;
if (pPropList != NULL) {
Property_List_Length = PropertyListStruct.Required.count;