python-on-a-chip online compiler

Dependencies:   mbed TSI

Embed: (wiki syntax)

« Back to documentation index

img.c File Reference

img.c File Reference

Image routines. More...

Go to the source code of this file.

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 routines.

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

Definition in file img.c.


Function Documentation

PmReturn_t img_appendToPath ( PmMemSpace_t  memspace,
uint8_t const *const   paddr 
)

Appends the given memspace and address to the image path array.

Parameters:
memspaceThe memspace
paddrThe address
Returns:
Return status

Definition at line 131 of file img.c.

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:
pnamePointer to the name of the desired module
r_memspaceReturn by reference the memory space of the module
r_imgaddrReturn by reference the address of the module's image
Returns:
Return status

Definition at line 98 of file img.c.