|
struct | xwssc_frmhead |
| XWSSC帧的信息头 更多...
|
|
struct | xwssc_frm |
| XWSSC的帧 更多...
|
|
union | xwssc_slot |
| XWSSC帧槽 更多...
|
|
struct | xwssc_carrier |
| 包含待发送帧的发送器 更多...
|
|
struct | xwssc |
| XWSSC对象 更多...
|
|
#define | XWSSC_SOF ((xwu8_t)0xAA) |
|
#define | XWSSC_EOF (XWSSC_SOF ^ (xwu8_t)0xFF) |
|
#define | XWSSC_SOF_SIZE (2U) |
|
#define | XWSSC_EOF_SIZE (2U) |
|
#define | XWSSC_FRMHEAD_SIZE(size) ((size) & 0xFU) |
|
#define | XWSSC_FRMHEAD_SIZE_MIRROR(size) ((size) & 0xF0U) |
|
#define | XWSSC_FRMHEAD_MAXSIZE (16U) |
|
#define | XWSSC_FRM_ONSTACK_MAXSIZE (64U) |
|
#define | XWSSC_ID_MSK (0xFFU) |
|
#define | XWSSC_ID(id) ((xwu8_t)((xwu8_t)(id) & XWSSC_ID_MSK)) |
|
#define | XWSSC_ECSIZE(head) |
|
#define | XWSSC_SDUPOS(head) (&((head)->ecsdusz[XWSSC_ECSIZE(head)])) |
|
#define | XWSSC_RXSDUSIZE(slot) |
|
#define | XWSSC_CRC32_SIZE (4U) |
|
#define | XWSSC_SDU_MAX_SIZE (XWSSC_MEMPOOL_SIZE / 8) |
|
#define | XWSSC_TXTHD_STACK (4096U) |
|
#define | XWSSC_RXTHD_STACK (4096U) |
|
#define | xwssclogf(xwssc, lv, fmt, ...) |
|
#define | XWSSC_BUG() XWOS_BUG() |
|
#define | XWSSC_BUG_ON(x) XWOS_BUG_ON(x) |
|
#define | XWSSC_VALIDATE(exp, errstr, ...) |
|
#define | XWSSC_VALIDATE_FORCE(exp, errstr, ...) |
|
enum | xwssc_flag_em { XWSSC_FLAG_CONNECT = 0x10U
, XWSSC_FLAG_ACK = 0x80U
, XWSSC_FLAG_SDU = 0x00U
, XWSSC_FLAG_MSK = 0xF0U
} |
| 协议内部标志 更多...
|
|
enum | xwssc_frm_ack_em {
XWSSC_ACK_OK = 0
, XWSSC_ACK_ECONNRESET
, XWSSC_ACK_EALREADY
, XWSSC_ACK_NOMEM
,
XWSSC_ACK_NUM
} |
| 应答信号枚举 更多...
|
|
xwer_t | xwssc_grab (struct xwssc *xwssc) |
|
xwer_t | xwssc_put (struct xwssc *xwssc) |
|
void | xwssc_encode_sdusize (xwsz_t sdusize, xwu8_t *ecsdusz, xwu8_t *ecsize) |
|
void | xwssc_decode_sdusize (xwu8_t *ecsdusz, xwsz_t *sdusize) |
|
xwu8_t | xwssc_cal_head_chksum (xwu8_t data[], xwsz_t size) |
|
bool | xwssc_chk_head (xwu8_t data[], xwsz_t size) |
|
union xwssc_slot * | xwssc_rxq_choose (struct xwssc *xwssc, xwu8_t port) |
|
xwer_t | xwssc_rxthd (struct xwssc *xwssc) |
|
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) |
|
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) |
|
xwer_t | xwssc_tx_ack_sdu (struct xwssc *xwssc, xwu8_t port, xwu8_t id, xwu8_t ack) |
|
xwer_t | xwssc_txthd (struct xwssc *xwssc) |
|