链接/计数是否可用于实现 TDMA 网络?
例如、TDMA 主器件 TX 是否可以在插槽0中、RX 是否可以在插槽1-n 中、然后返回到 TX?
if (isMaster()) {
/* Set up the next pointers for the command chain */
/* 1: Nop->TX (no condition) */
rf_ctx.RF_cmdNop->startTrigger.triggerType = TRIG_ABSTIME;
rf_ctx.RF_cmdNop->startTrigger.pastTrig = 1;
rf_ctx.RF_cmdNop->pNextOp = (rfc_radioOp_t*)rf_ctx.RF_cmdPropTx;
rf_ctx.RF_cmdNop->condition.rule = COND_ALWAYS;
/* 2: TX->Branch (no condition)*/
rf_ctx.RF_cmdPropTx->condition.rule = COND_ALWAYS;
rf_ctx.RF_cmdPropTx->pNextOp = (rfc_radioOp_t*)rf_ctx.RF_cmdCountBranch;
/*3: Branch->Rx (when count !=0)
* Branch->Tx (when count ==0) */
rf_ctx.RF_cmdCountBranch->condition.rule = COND_SKIP_ON_FALSE; /* If count==0 return FALSE */
rf_ctx.RF_cmdCountBranch->pNextOp = (rfc_radioOp_t*)rf_ctx.RF_cmdPropRx;
rf_ctx.RF_cmdCountBranch->pNextOpIfOk = (rfc_radioOp_t*)rf_ctx.RF_cmdPropTx;
rf_ctx.RF_cmdCountBranch->counter = radio_cfg.numSlots - 1;
}
如果可以、如何设置触发器? 在触发链式事件时、从技术上讲是否是 TRIG_NOW?
rf_ctx.RF_cmdPropRx->startTrigger.triggerType = TRIG_NOW; // executes 'now' in chain context?
rf_ctx.RF_cmdPropRx->endTrigger.triggerType = TRIG_REL_START;
rf_ctx.RF_cmdPropRx->endTime = PACKET_INTERVAL_US;