Ctools Use Case Library
|
Macros | |
#define | Ctools_all_osal x |
There OSAL functions required for both Ctools use case library, CP Tracer library and STM Library are same and should be implemented in the application. An example implementation of all the required OSAL functions is available in cToolsHelper.c. Both cToolsHelper.c and cToolsHelper.h can be found at: <CTOOLS_INSTALL_DIR>\Examples\common\cToolsHelper.c The cToolsHelper.c should be compiled as a part of the application SW. For more information and description of all the required OSAL functions, which need to be implemented in the application, please refer to CPTLib Helper functions documentation at: <CTOOLS_INSTALL_DIR>\CPTLib\doc\CPT_####_html\index.html. | |
Functions | |
void * | cTools_memAlloc (size_t sizeInBytes) |
The macro is used by the CTOOLS use case to allocate memory of specified size. More... | |
void | cTools_memFree (void *) |
The macro is used by the CTOOLS use case to free a allocated block of memory. More... | |
void* cTools_memAlloc | ( | size_t | sizeInBytes) |
The macro is used by the CTOOLS use case to allocate memory of specified size.
Prototype: The following is the C prototype for the expected OSAL API.
void* cTools_memAlloc (uint32_t numBytes)
Parameter
Number of bytes to be allocated
Return Value
Pointer to the allocated block size
void cTools_memFree | ( | void * | ) |
The macro is used by the CTOOLS use case to free a allocated block of memory.
Prototype: The following is the C prototype for the expected OSAL API.
void cTools_memFree (void *ptr)
Parameter
Pointer to the block of memory to be cleaned up.
Size of the allocated memory which is being freed.
Return Value
Not applicable.