![]() |
ETHFW API Guide
|
Macros | |
| #define | ETHFW_ARRAYSIZE(x) (sizeof(x) / sizeof(x[0])) |
| Macro to get the size of an array. More... | |
| #define | ETHFW_BIT(n) (1U << (n)) |
| Macro to set bit at given bit position. More... | |
| #define | ETHFW_GET_BIT(val, n) (((val) & ETHFW_BIT(n)) >> (n)) |
| Macro to get bit at given bit position. More... | |
| #define | ETHFW_IS_BIT_SET(val, n) (((val) & ETHFW_BIT(n)) != 0U) |
| Macro to check if bit at given bit position is set. More... | |
| #define | ETHFW_NOT_ZERO(val) ((uint32_t)0U != (uint32_t)(val)) |
| Macro to check if value is not zero. More... | |
Ethernet Firmware Error Codes | |
|
Error codes returned by the EthFw driver APIs. | |
| #define | ETHFW_SOK (0) |
| Success. More... | |
| #define | ETHFW_SINPROGRESS (1) |
| Operation in progress. More... | |
| #define | ETHFW_EFAIL (-1) |
| Generic failure error condition (typically caused by hardware). More... | |
| #define | ETHFW_EBADARGS (-2) |
| Bad arguments (i.e. NULL pointer). More... | |
| #define | ETHFW_EINVALIDPARAMS (-3) |
| Invalid parameters (i.e. value out-of-range). More... | |
| #define | ETHFW_ETIMEOUT (-4) |
| Time out while waiting for a given condition to happen. More... | |
| #define | ETHFW_EALLOC (-8) |
| Allocation failure. More... | |
| #define | ETHFW_EUNEXPECTED (-9) |
| Unexpected condition occurred (sometimes unrecoverable). More... | |
| #define | ETHFW_EBUSY (-10) |
| The resource is currently busy performing an operation. More... | |
| #define | ETHFW_EALREADYOPEN (-11) |
| Already open error. More... | |
| #define | ETHFW_EPERM (-12) |
| Operation not permitted. More... | |
| #define | ETHFW_ENOTSUPPORTED (-13) |
| Operation not supported. More... | |
| #define | ETHFW_ENOTFOUND (-14) |
| Resource not found. More... | |
| #define ETHFW_SOK (0) |
Success.
| #define ETHFW_SINPROGRESS (1) |
Operation in progress.
| #define ETHFW_EFAIL (-1) |
Generic failure error condition (typically caused by hardware).
| #define ETHFW_EBADARGS (-2) |
Bad arguments (i.e. NULL pointer).
| #define ETHFW_EINVALIDPARAMS (-3) |
Invalid parameters (i.e. value out-of-range).
| #define ETHFW_ETIMEOUT (-4) |
Time out while waiting for a given condition to happen.
| #define ETHFW_EALLOC (-8) |
Allocation failure.
| #define ETHFW_EUNEXPECTED (-9) |
Unexpected condition occurred (sometimes unrecoverable).
| #define ETHFW_EBUSY (-10) |
The resource is currently busy performing an operation.
| #define ETHFW_EALREADYOPEN (-11) |
Already open error.
| #define ETHFW_EPERM (-12) |
Operation not permitted.
| #define ETHFW_ENOTSUPPORTED (-13) |
Operation not supported.
| #define ETHFW_ENOTFOUND (-14) |
Resource not found.
| #define ETHFW_ARRAYSIZE | ( | x | ) | (sizeof(x) / sizeof(x[0])) |
Macro to get the size of an array.
| #define ETHFW_BIT | ( | n | ) | (1U << (n)) |
Macro to set bit at given bit position.
| #define ETHFW_GET_BIT | ( | val, | |
| n | |||
| ) | (((val) & ETHFW_BIT(n)) >> (n)) |
Macro to get bit at given bit position.
| #define ETHFW_IS_BIT_SET | ( | val, | |
| n | |||
| ) | (((val) & ETHFW_BIT(n)) != 0U) |
Macro to check if bit at given bit position is set.
| #define ETHFW_NOT_ZERO | ( | val | ) | ((uint32_t)0U != (uint32_t)(val)) |
Macro to check if value is not zero.