![]() |
Edge AI Add-on API 2.2.0
|
Go to the source code of this file.
Macros | |
| #define | RETURN_IF(is_true, ret_val) |
| Macro for verifying that the provided condition is true. It will cause the exterior function to return an error value if it is not. | |
| #define | BIT_ONE(pos) |
| Creates a bit mask from one unit among the remaining zeros (for example 00..00000010). | |
| #define | BIT_ZERO(pos) |
| Creates a bit mask from one zero among the remaining ones (for example 11..11101111). | |
| #define | BIT_IS_SET(value, pos) |
| Checks that bit is set. | |
| #define | BIT_IS_CLR(value, pos) |
| Checks that bit is clear. | |
| #define | BITS_CHANGED(before, after) |
| Indicates bits changed between 0 <-> 1. | |
| #define | BITS_RISING(before, after) |
| Indicates bits changed 0 -> 1. | |
| #define | BITS_FALLING(before, after) |
| Indicates bits changed 1 -> 0. | |
| #define | ROUNDED_DIV(A, B) |
| Macro for performing rounded integer division (as opposed to truncating the result). | |
| #define | COUNT_OF(x) |
| Macro for counting items in an object. | |
| #define | OFFSET_OF(type, field) |
| Macro for getting offset for a field in the provided type. | |