Error codes

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

Group

Code

Name

Description

Generic

0

LIB_ERR_NONE

No error.

Memory

10000

LIB_MEM_ERR_NONE

No error.

10001

LIB_MEM_ERR_NULL_PTR

Invalid null pointer argument.

10100

LIB_MEM_ERR_INVALID_MEM_SIZE

Invalid memory size.

10101

LIB_MEM_ERR_INVALID_MEM_ALIGN

Invalid memory align (Must be a power of 2).

10110

LIB_MEM_ERR_INVALID_SEG_SIZE

Invalid memory segment size.

10111

LIB_MEM_ERR_INVALID_SEG_OVERLAP

Invalid memory segment overlaps another memory segment.

10112

LIB_MEM_ERR_INVALID_SEG_EXISTS

Invalid memory segment already exists.

10120

LIB_MEM_ERR_INVALID_POOL

Invalid memory pool.

10130

LIB_MEM_ERR_INVALID_BLK_NBR

Invalid block number.

10131

LIB_MEM_ERR_INVALID_BLK_SIZE

Invalid block size.

10132

LIB_MEM_ERR_INVALID_BLK_ALIGN

Invalid block align (must be a power of 2).

10133

LIB_MEM_ERR_INVALID_BLK_IX

Invalid block index.

10135

LIB_MEM_ERR_INVALID_BLK_ADDR

Invalid block address.

10136

LIB_MEM_ERR_INVALID_BLK_ADDR_IN_POOL

Invalid block address already in pool.

10200

LIB_MEM_ERR_SEG_EMPTY

Memory segment is empty.

10201

LIB_MEM_ERR_SEG_OVF

Requested memory block would overflow memory segment.

10205

LIB_MEM_ERR_POOL_FULL

Memory pool is full.

10206

LIB_MEM_ERR_POOL_EMPTY

Memory pool is empty.

10207

LIB_MEM_ERR_POOL_UNLIMITED

Memory pool has no specified limit.

10210

LIB_MEM_ERR_HEAP_EMPTY

Heap is empty.

10211

LIB_MEM_ERR_HEAP_OVF

Requested memory block would overflow heap.

10215

LIB_MEM_ERR_HEAP_NOT_FOUND

Heap not found.