XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
xwssc结构体 参考

XWSSC对象 更多...

#include <protocol.h>

xwssc 的协作图:

成员变量

struct xwos_object xwobj
 
const char * name
 
atomic_xwsq_t hwifst
 
struct xwssc_hwifal_operation * hwifops
 
void * hwifcb
 
xwu8_t mempool_bma_raw [sizeof(struct xwmm_bma)+sizeof(struct xwmm_bma_orderlist[(((6U)))+1U])+sizeof(struct xwmm_bma_bcb[1U<<(((6U)))])]
 
struct xwmm_bma * mempool
 
struct xwos_thd txthdobj
 
xwos_thd_d txthd
 
struct { 
 
   atomic_xwu32_t   cnt 
 
   struct xwssc_carrier   car [(1U<<((6U)))] 
 
   xwbmp_t   carbmp [((((1U<<((6U))))+(8U *sizeof(xwbmp_t))
      - 1U)/(8U *sizeof(xwbmp_t)))] 
 
   struct xwlib_bclst_node   q [((4U))] 
 
   xwbmp_t   qnebmp [(((((4U)))+(8U *sizeof(xwbmp_t))
      - 1U)/(8U *sizeof(xwbmp_t)))] 
 
   struct xwos_splk   qlock 
 
   struct xwos_sem   qsem 
 
   struct xwos_mtx   csmtx 
 
   struct xwos_cond   cscond 
 
   struct { 
 
      xwu8_t   ack 
 
      xwu8_t   id 
 
   }   remote 
 
   struct xwssc_carrier *   tmp 
 
   struct xwos_splk   notiflk 
 
} txq 
 
struct xwos_thd rxthdobj
 
xwos_thd_d rxthd
 
struct { 
 
   atomic_xwu32_t   cnt 
 
   struct xwlib_bclst_node   q [((12U))] 
 
   struct xwos_splk   lock [((12U))] 
 
   struct xwos_sem   sem [((12U))] 
 
} rxq 
 

详细描述

XWSSC对象

在文件 protocol.h 第 156 行定义.

结构体成员变量说明

◆ xwobj

struct xwos_object xwssc::xwobj

C语言面向对象:继承 struct xwos_object

在文件 protocol.h 第 158 行定义.

◆ name

const char* xwssc::name

在文件 protocol.h 第 159 行定义.

◆ hwifst

atomic_xwsq_t xwssc::hwifst

硬件层状态

在文件 protocol.h 第 160 行定义.

◆ hwifops

struct xwssc_hwifal_operation* xwssc::hwifops

硬件接口抽象层操作函数

在文件 protocol.h 第 161 行定义.

◆ hwifcb

void* xwssc::hwifcb

接口硬件

在文件 protocol.h 第 162 行定义.

◆ mempool_bma_raw

xwu8_t xwssc::mempool_bma_raw[sizeof(struct xwmm_bma)+ sizeof(struct xwmm_bma_orderlist[(((6U)))+1U])+sizeof(struct xwmm_bma_bcb[1U<<(((6U)))])]

内存池分配器的原始内存

在文件 protocol.h 第 165 行定义.

◆ mempool

struct xwmm_bma* xwssc::mempool

内存池分配器

在文件 protocol.h 第 166 行定义.

◆ txthdobj

struct xwos_thd xwssc::txthdobj

发送线程的线程结构体

在文件 protocol.h 第 169 行定义.

◆ txthd

xwos_thd_d xwssc::txthd

发送线程的线程描述符

在文件 protocol.h 第 170 行定义.

◆ cnt

atomic_xwu32_t xwssc::cnt

发送计数器

接收计数器

在文件 protocol.h 第 172 行定义.

◆ car

struct xwssc_carrier xwssc::car[(1U<<((6U)))]

包含待发送帧的发送器

在文件 protocol.h 第 173 行定义.

◆ carbmp

xwbmp_t xwssc::carbmp[((((1U<<((6U))))+( 8U *sizeof(xwbmp_t)) - 1U)/( 8U *sizeof(xwbmp_t)))]

发送器的索引位图

在文件 protocol.h 第 174 行定义.

◆ q

struct xwlib_bclst_node xwssc::q[((12U))]

每优先级发送队列

每个端口的接收队列

在文件 protocol.h 第 175 行定义.

◆ qnebmp

xwbmp_t xwssc::qnebmp[(((((4U)))+( 8U *sizeof(xwbmp_t)) - 1U)/( 8U *sizeof(xwbmp_t)))]

发送队列非空的索引位图

在文件 protocol.h 第 176 行定义.

◆ qlock

struct xwos_splk xwssc::qlock

保护发送队列的自旋锁

在文件 protocol.h 第 177 行定义.

◆ qsem

struct xwos_sem xwssc::qsem

指示待发送帧的数量的信号量

在文件 protocol.h 第 178 行定义.

◆ csmtx

struct xwos_mtx xwssc::csmtx

保护发送和接收线程的共享数据的锁

在文件 protocol.h 第 179 行定义.

◆ cscond

struct xwos_cond xwssc::cscond

同步发送和接收线程的条件量

在文件 protocol.h 第 180 行定义.

◆ ack

xwu8_t xwssc::ack

远端回复的应答

在文件 protocol.h 第 182 行定义.

◆ id

xwu8_t xwssc::id

远端的消息id

在文件 protocol.h 第 183 行定义.

◆ [struct]

struct { ... } xwssc::remote

正在发送的帧信息

◆ tmp

struct xwssc_carrier* xwssc::tmp

缓存正在发送的帧槽

在文件 protocol.h 第 185 行定义.

◆ notiflk

struct xwos_splk xwssc::notiflk

保证通知回调函数原子性的自旋锁

在文件 protocol.h 第 186 行定义.

◆ [struct]

struct { ... } xwssc::txq

发送队列

◆ rxthdobj

struct xwos_thd xwssc::rxthdobj

接收线程的线程结构体

在文件 protocol.h 第 190 行定义.

◆ rxthd

xwos_thd_d xwssc::rxthd

接收线程的线程描述符

在文件 protocol.h 第 191 行定义.

◆ lock

struct xwos_splk xwssc::lock[((12U))]

保护每个接收队列的锁

在文件 protocol.h 第 195 行定义.

◆ sem

struct xwos_sem xwssc::sem[((12U))]

每个接收队列的信号量

在文件 protocol.h 第 196 行定义.

◆ [struct]

struct { ... } xwssc::rxq

接收队列


该结构体的文档由以下文件生成: