![]() |
![]() |
Modules | |
| PASAHO Long Info Command Macros | |
| PASAHO Long Info Protocol Indication Macros | |
| PASAHO Long Info IP Reassembly Macros | |
| PASAHO Short Info Command Macros | |
| PASAHO Next Route Command Macros | |
| PASAHO Checksum/CRC Command Macros | |
| PASAHO Blind Patch Command Macros | |
| PASAHO Report Timestamp Command Macros | |
| PASAHO IP Fragmentation Command Macros | |
| PASAHO Message Length Patching Command Macros | |
PASAHO Common Macros | |
|
| |
| #define | PASAHO_READ_BITFIELD(a, b, c) (((a)>>(b)) & ((1UL<<(c))-1)) |
| PASAHO_READ_BITFIELD is used to read the specific bit fields. | |
| #define | PASAHO_SET_BITFIELD(a, x, b, c) |
| PASAHO_SET_BITFIELD is used to set the specific bit fields. | |
| #define | PASAHO_SET_CMDID(x, v) PASAHO_SET_BITFIELD((x)->word0, (v), 29,3) |
| PASAHO_SET_CMDID is used to set the command ID. | |
| #define | PASAHO_PACFG_CMD (((uint32_t)PASAHO_CONFIGURE << 5) << 24) |
| PASAHO_PACFG_CMD is used to set the PA configuration command only. | |
| #define PASAHO_READ_BITFIELD | ( | a, | |||
| b, | |||||
| c | ) | (((a)>>(b)) & ((1UL<<(c))-1)) |
PASAHO_READ_BITFIELD is used to read the specific bit fields.
It is one of the main macros for accessing configuration bit fields Input parameter a contains bit field b is bit offset withing bit field c is number of bits used by that parameter
| #define PASAHO_SET_BITFIELD | ( | a, | |||
| x, | |||||
| b, | |||||
| c | ) |
(a) &= ~(((1UL<<(c))-1)<<(b)), \
(a) |= (((x) & ((1UL<<(c))-1))<<(b))
PASAHO_SET_BITFIELD is used to set the specific bit fields.
It is one of the main macros for accessing configuration bit fields Input parameter a contains bit field b is bit offset withing bit field c is number of bits used by that parameter x is new value of parameter that is packed in this bit field