|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
7#ifndef ZEPHYR_INCLUDE_SIP_SVC_AGILEX_MB_H_
8#define ZEPHYR_INCLUDE_SIP_SVC_AGILEX_MB_H_
18#define SIP_SVP_MB_MAX_WORD_SIZE 1024
19#define SIP_SVP_MB_HEADER_TRANS_ID_OFFSET 24
20#define SIP_SVP_MB_HEADER_TRANS_ID_MASK 0xFF
21#define SIP_SVP_MB_HEADER_LENGTH_OFFSET 12
22#define SIP_SVP_MB_HEADER_LENGTH_MASK 0x7FF
24#define SIP_SVC_MB_HEADER_GET_CLIENT_ID(header) \
25 ((header) >> SIP_SVP_MB_HEADER_CLIENT_ID_OFFSET & \
26 SIP_SVP_MB_HEADER_CLIENT_ID_MASK)
28#define SIP_SVC_MB_HEADER_GET_TRANS_ID(header) \
29 ((header) >> SIP_SVP_MB_HEADER_TRANS_ID_OFFSET & \
30 SIP_SVP_MB_HEADER_TRANS_ID_MASK)
32#define SIP_SVC_MB_HEADER_SET_TRANS_ID(header, id) \
33 (header) &= ~(SIP_SVP_MB_HEADER_TRANS_ID_MASK << \
34 SIP_SVP_MB_HEADER_TRANS_ID_OFFSET); \
35 (header) |= (((id) & SIP_SVP_MB_HEADER_TRANS_ID_MASK) << \
36 SIP_SVP_MB_HEADER_TRANS_ID_OFFSET);
38#define SIP_SVC_MB_HEADER_GET_LENGTH(header) \
39 ((header) >> SIP_SVP_MB_HEADER_LENGTH_OFFSET & \
40 SIP_SVP_MB_HEADER_LENGTH_MASK)