Error codes

This page provides a brief explanation of µC/LIB error codes defined in lib_def.h. Any error codes not listed here may be searched in lib_def.h for both their numerical value and usage.

Error codes list

GroupCodeNameDescription
Generic0LIB_ERR_NONENo error.
Memory10000LIB_MEM_ERR_NONENo error.
10001LIB_MEM_ERR_NULL_PTRInvalid null pointer argument.
10100LIB_MEM_ERR_INVALID_MEM_SIZEInvalid memory size.
10101LIB_MEM_ERR_INVALID_MEM_ALIGNInvalid memory align (Must be a power of 2).
10110LIB_MEM_ERR_INVALID_SEG_SIZEInvalid memory segment size.
10111LIB_MEM_ERR_INVALID_SEG_OVERLAPInvalid memory segment overlaps another memory segment.
10112LIB_MEM_ERR_INVALID_SEG_EXISTSInvalid memory segment already exists.
10120LIB_MEM_ERR_INVALID_POOLInvalid memory pool.
10130LIB_MEM_ERR_INVALID_BLK_NBRInvalid block number.
10131LIB_MEM_ERR_INVALID_BLK_SIZEInvalid block size.
10132LIB_MEM_ERR_INVALID_BLK_ALIGNInvalid block align (must be a power of 2).
10133LIB_MEM_ERR_INVALID_BLK_IXInvalid block index.
10135LIB_MEM_ERR_INVALID_BLK_ADDRInvalid block address.
10136LIB_MEM_ERR_INVALID_BLK_ADDR_IN_POOLInvalid block address already in pool.
10200LIB_MEM_ERR_SEG_EMPTYMemory segment is empty.
10201LIB_MEM_ERR_SEG_OVFRequested memory block would overflow memory segment.
10205LIB_MEM_ERR_POOL_FULLMemory pool is full.
10206LIB_MEM_ERR_POOL_EMPTYMemory pool is empty.
10207LIB_MEM_ERR_POOL_UNLIMITEDMemory pool has no specified limit.
10210LIB_MEM_ERR_HEAP_EMPTYHeap is empty.
10211LIB_MEM_ERR_HEAP_OVFRequested memory block would overflow heap.
10215LIB_MEM_ERR_HEAP_NOT_FOUNDHeap not found.