Assert Classes and Levels

group group_syslib_macros_assert

Defines for the Assert Classes and Levels.

Defines

CY_ASSERT_CLASS_1

Class 1 - The highest class, safety-critical functions which rely on parameters that could be changed between different PSoC devices.

CY_ASSERT_CLASS_2

Class 2 - Functions that have fixed limits such as counter periods (16-bits/32-bits etc.)

CY_ASSERT_CLASS_3

Class 3 - Functions that accept enums as constant parameters.

CY_ASSERT_LEVEL

The user-definable assert level from compiler command-line argument (similarly to DEBUG / NDEBUG)

CY_ASSERT_L1(x)

Assert Level 1.

CY_ASSERT_L2(x)

Assert Level 2.

CY_ASSERT_L3(x)

Assert Level 3.