img.c File Reference

Image routines. More...

#include "pm.h"

Defines

#define __FILE_ID__   0x07

Functions

PmReturn_t img_findInPaths (pPmObj_t pname, PmMemSpace_t *r_memspace, uint8_t const **r_imgaddr)
PmReturn_t img_appendToPath (PmMemSpace_t memspace, uint8_t *paddr)


Detailed Description

Image routines.

Created to eliminate a circular include among mem, string and obj.


Function Documentation

PmReturn_t img_appendToPath ( PmMemSpace_t  memspace,
uint8_t *  paddr 
)

Appends the given memspace and address to the image path array

Parameters:
memspace The memspace
paddr The address
Returns:
Return status

PmReturn_t img_findInPaths ( pPmObj_t  pname,
PmMemSpace_t r_memspace,
uint8_t const **  r_imgaddr 
)

Iterates over all paths in the paths array until the named module is found. Returns the memspace,address of the head of the module.

Parameters:
pname Pointer to the name of the desired module
r_memspace Return by reference the memory space of the module
r_imgaddr Return by reference the address of the module's image
Returns:
Return status


Generated on Wed Feb 24 13:37:02 2010 for Python-on-a-chip by  doxygen 1.5.9