|
|
Typical Usage:
(Examples of a typical usage of the component in user code.
For more information please
see the page Component Code
Typical Usage.)
Assume the component name "Cim1".
This component can be used in several cases. Following example is one of them.
MAIN.C
PIMAGE img; /* PIMAGE is defined in PE_Types.h */
uint16_t size;
void main(void)
{
/* Get pointer to a structure describing an image */
img = Cim1_GetImage();
size = img->size; /* Gets size of an image */
...
}
|