![]() |
ETHFW API Guide
|
Functions | |
| void | appLogPrintf (const char *format,...) |
| static void | EthFwUtils_assertLocal (bool condition, const char *str, const char *fileName, int32_t lineNum) |
| static void | EthFwUtils_copyMacAddr (uint8_t *dst, const uint8_t *src) |
| static bool | EthFwUtils_cmpMacAddr (const uint8_t *addr1, const uint8_t *addr2) |
| static bool | EthFwUtils_isMcastAddr (const uint8_t *addr) |
Macros | |
| #define | ETHFW_CFG_ASSERT_ENABLE (1) |
| Whether assertions are enabled or not. More... | |
| #define | ETHFW_MAC_ADDR_LEN (6U) |
| MAC address length. More... | |
| #define | ETHFW_UNUSED(x) (x = x) |
| Unused variable. More... | |
| #define | ETHFW_UTILS_ALIGN(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) |
| Align a value by performing a round-up operation. More... | |
| #define | ETHFW_UTILS_IS_ALIGNED(addr, alignSz) (((uintptr_t)addr & ((alignSz) - 1U)) == 0U) |
| Macro to determine if an address is aligned to a given size. More... | |
| #define | ETHFW_UTILS_ARRAY_COPY(dst, src) |
| Macro to copy arrays. They must be of the same size. More... | |
| #define | EthFw_assert(cond, ...) |
| Assertion. More... | |
| #define | EthFw_devAssert(cond, ...) |
| Development-time assertion. More... | |
| #define | ETHFW_UTILS_COMPILETIME_ASSERT(cond) |
| Compile-time assertion. More... | |
| #define ETHFW_CFG_ASSERT_ENABLE (1) |
Whether assertions are enabled or not.
| #define ETHFW_MAC_ADDR_LEN (6U) |
MAC address length.
| #define ETHFW_UNUSED | ( | x | ) | (x = x) |
Unused variable.
| #define ETHFW_UTILS_ALIGN | ( | x, | |
| y | |||
| ) | ((((x) + ((y) - 1)) / (y)) * (y)) |
Align a value by performing a round-up operation.
| #define ETHFW_UTILS_IS_ALIGNED | ( | addr, | |
| alignSz | |||
| ) | (((uintptr_t)addr & ((alignSz) - 1U)) == 0U) |
Macro to determine if an address is aligned to a given size.
| #define ETHFW_UTILS_ARRAY_COPY | ( | dst, | |
| src | |||
| ) |
Macro to copy arrays. They must be of the same size.
| #define EthFw_assert | ( | cond, | |
| ... | |||
| ) |
Assertion.
| #define EthFw_devAssert | ( | cond, | |
| ... | |||
| ) |
Development-time assertion.
| #define ETHFW_UTILS_COMPILETIME_ASSERT | ( | cond | ) |
Compile-time assertion.
| void appLogPrintf | ( | const char * | format, |
| ... | |||
| ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |