|
XWOS API
4.0
XWOS C/C++ API参考手册
|

| #define XWSSC_BUG | ( | ) | XWOS_BUG() |
在文件 protocol.h 第 68 行定义.
| #define XWSSC_BUG_ON | ( | x | ) | XWOS_BUG_ON(x) |
在文件 protocol.h 第 69 行定义.
| #define XWSSC_CRC32_SIZE (4U) |
在文件 protocol.h 第 55 行定义.
| #define XWSSC_ECSIZE | ( | head | ) |
在文件 protocol.h 第 49 行定义.
在文件 protocol.h 第 37 行定义.
| #define XWSSC_EOF_SIZE (2U) |
在文件 protocol.h 第 39 行定义.
| #define XWSSC_FRM_ONSTACK_MAXSIZE (64U) |
在文件 protocol.h 第 44 行定义.
| #define XWSSC_FRMHEAD_MAXSIZE (16U) |
在文件 protocol.h 第 43 行定义.
| #define XWSSC_FRMHEAD_SIZE | ( | size | ) | ((size) & 0xFU) |
在文件 protocol.h 第 41 行定义.
| #define XWSSC_FRMHEAD_SIZE_MIRROR | ( | size | ) | ((size) & 0xF0U) |
在文件 protocol.h 第 42 行定义.
| #define XWSSC_ID | ( | id | ) | ((xwu8_t)((xwu8_t)(id) & XWSSC_ID_MSK)) |
在文件 protocol.h 第 47 行定义.
| #define XWSSC_ID_MSK (0xFFU) |
在文件 protocol.h 第 46 行定义.
| #define XWSSC_RXSDUSIZE | ( | slot | ) |
在文件 protocol.h 第 52 行定义.
| #define XWSSC_RXTHD_STACK (4096U) |
在文件 protocol.h 第 59 行定义.
| #define XWSSC_SDU_MAX_SIZE (XWSSC_MEMPOOL_SIZE / 8) |
在文件 protocol.h 第 56 行定义.
| #define XWSSC_SDUPOS | ( | head | ) | (&((head)->ecsdusz[XWSSC_ECSIZE(head)])) |
在文件 protocol.h 第 51 行定义.
| #define XWSSC_SOF ((xwu8_t)0xAA) |
在文件 protocol.h 第 36 行定义.
| #define XWSSC_SOF_SIZE (2U) |
在文件 protocol.h 第 38 行定义.
| #define XWSSC_TXTHD_STACK (4096U) |
在文件 protocol.h 第 58 行定义.
| #define XWSSC_VALIDATE | ( | exp, | |
| errstr, | |||
| ... | |||
| ) |
在文件 protocol.h 第 72 行定义.
| #define XWSSC_VALIDATE_FORCE | ( | exp, | |
| errstr, | |||
| ... | |||
| ) |
在文件 protocol.h 第 80 行定义.
| #define xwssclogf | ( | xwssc, | |
| lv, | |||
| fmt, | |||
| ... | |||
| ) |
在文件 protocol.h 第 65 行定义.
| enum xwssc_flag_em |
协议内部标志
| 枚举值 | |
|---|---|
| XWSSC_FLAG_CONNECT | 连接标志 |
| XWSSC_FLAG_ACK | 应答标志 |
| XWSSC_FLAG_SDU | 数据 |
| XWSSC_FLAG_MSK | |
在文件 protocol.h 第 88 行定义.
| enum xwssc_frm_ack_em |
应答信号枚举
| 枚举值 | |
|---|---|
| XWSSC_ACK_OK | OK |
| XWSSC_ACK_ECONNRESET | 链接被重置(远端复位?) |
| XWSSC_ACK_EALREADY | 已经完成 |
| XWSSC_ACK_NOMEM | 内存不足 |
| XWSSC_ACK_NUM | ACK的数量 |
在文件 protocol.h 第 98 行定义.
| xwer_t xwssc_eq_msg | ( | struct xwssc * | xwssc, |
| const xwu8_t | sdu[], | ||
| xwsz_t | sdusize, | ||
| xwu8_t | pri, | ||
| xwu8_t | port, | ||
| xwu8_t | qos, | ||
| xwssc_ntf_f | ntfcb, | ||
| void * | cbarg, | ||
| xwssc_txh_t * | txhbuf | ||
| ) |
| union xwssc_slot * xwssc_rxq_choose | ( | struct xwssc * | xwssc, |
| xwu8_t | port | ||
| ) |
| struct xwssc_carrier * xwssc_txq_carrier_alloc | ( | struct xwssc * | xwssc | ) |
| void xwssc_txq_carrier_free | ( | struct xwssc * | xwssc, |
| struct xwssc_carrier * | car | ||
| ) |
| struct xwssc_carrier * xwssc_txq_choose | ( | struct xwssc * | xwssc | ) |