python-on-a-chip online compiler
img.h File Reference
Image header. More...
Go to the source code of this file.
Data Structures | |
struct | PmCodeImgObj_s |
Code image object. More... | |
Typedefs | |
typedef struct PmCodeImgObj_s | PmCodeImgObj_t |
Code image object. | |
Functions | |
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. | |
PmReturn_t | img_appendToPath (PmMemSpace_t memspace, uint8_t const *const paddr) |
Appends the given memspace and address to the image path array. |
Detailed Description
Image header.
Created to eliminate a circular include among mem, string and obj.
Definition in file img.h.
Typedef Documentation
typedef struct PmCodeImgObj_s PmCodeImgObj_t |
Code image object.
A type to hold code images in the heap. A code image with an object descriptor at the front. Used for storing image objects during ipm; the code object keeps a reference to this object.
Function Documentation
PmReturn_t img_appendToPath | ( | PmMemSpace_t | memspace, |
uint8_t const *const | paddr | ||
) |
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 Tue Jul 12 2022 23:13:47 by 1.7.2