#include "pm.h"
Defines | |
#define | __FILE_ID__ 0x0F |
Functions | |
PmReturn_t | obj_loadFromImg (PmMemSpace_t memspace, uint8_t const **paddr, pPmObj_t *r_pobj) |
PmReturn_t | obj_loadFromImgObj (pPmObj_t pimg, pPmObj_t *r_pobj) |
int8_t | obj_isFalse (pPmObj_t pobj) |
PmReturn_t | obj_isIn (pPmObj_t pobj, pPmObj_t pitem) |
int8_t | obj_compare (pPmObj_t pobj1, pPmObj_t pobj2) |
Object type operations.
Compares two objects for equality.
pobj1 | Ptr to first object. | |
pobj2 | Ptr to second object. |
int8_t obj_isFalse | ( | pPmObj_t | pobj | ) |
Finds the boolean value of the given object.
pobj | Ptr to object to test. |
PmReturn_t obj_isIn | ( | pPmObj_t | pobj, | |
pPmObj_t | pitem | |||
) |
Returns the boolean true if the item is in the object
pobj | Ptr to container object | |
pitem | Ptr to item |
PmReturn_t obj_loadFromImg | ( | PmMemSpace_t | memspace, | |
uint8_t const ** | paddr, | |||
pPmObj_t * | r_pobj | |||
) |
Loads an object from an image in memory. Return pointer to object. Leave add pointing one byte past end of obj.
The following lists the simple object types and their image structures: -None: -type: int8_t - OBJ_TYPE_NON
-Int: -type: int8_t - OBJ_TYPE_INT -value: int32_t - signed integer value
-Float: -type: int8_t - OBJ_TYPE_FLOAT -value: float32_t - 32-bit floating point value
-Slice (is this allowed in img?): -type: int8_t - OBJ_TYPE_SLICE -index1: int16_t - first index. -index2: int16_t - second index.
memspace | memory space/type | |
paddr | ptr to ptr to obj return by reference: paddr pts to first byte after obj | |
r_pobj | Return arg, the loaded object. |
PmReturn_t obj_loadFromImgObj | ( | pPmObj_t | pimg, | |
pPmObj_t * | r_pobj | |||
) |
Loads a code object from a code image object
pimg | Ptr to a code image object | |
r_pobj | Return arg, the loaded object |