本文整理汇总了C++中NDBGL3函数的典型用法代码示例。如果您正苦于以下问题:C++ NDBGL3函数的具体用法?C++ NDBGL3怎么用?C++ NDBGL3使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NDBGL3函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: n_connect_response
/*---------------------------------------------------------------------------*
* handle setup response message from userland
*---------------------------------------------------------------------------*/
void
n_connect_response(struct call_desc *cd, int response, int cause)
{
struct isdn_l3_driver *d = cd->l3drv;
int chstate;
T400_stop(cd);
cd->response = response;
cd->cause_out = cause;
switch(response)
{
case SETUP_RESP_ACCEPT:
next_l3state(cd, EV_SETACRS);
chstate = BCH_ST_USED;
break;
case SETUP_RESP_REJECT:
next_l3state(cd, EV_SETRJRS);
chstate = BCH_ST_FREE;
break;
case SETUP_RESP_DNTCRE:
next_l3state(cd, EV_SETDCRS);
chstate = BCH_ST_FREE;
break;
default: /* failsafe */
next_l3state(cd, EV_SETDCRS);
chstate = BCH_ST_FREE;
NDBGL3(L3_ERR, "unknown response, doing SETUP_RESP_DNTCRE");
break;
}
if((cd->channelid >= 0) && (cd->channelid < d->nbch))
{
d->bch_state[cd->channelid] = chstate;
/*
* XXX: don't call l2 function for active cards
*/
if (d->l3driver->N_DOWNLOAD == NULL)
i4b_l2_channel_set_state(cd->l3drv,
cd->channelid, chstate);
update_controller_leds(d);
}
else
{
NDBGL3(L3_MSG, "Warning, invalid channelid %d, response = %d\n", cd->channelid, response);
}
}
示例2: F_12J
/*---------------------------------------------------------------------------*
* L3 FSM state U12 event RELEASE from L2
*---------------------------------------------------------------------------*/
static void F_12J(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_12J executing");
i4b_l3_tx_release_complete(cd, 0);
i4b_l4_disconnect_ind(cd);
freecd_by_cd(cd);
}
示例3: F_19K
/*---------------------------------------------------------------------------*
* L3 FSM state U19 event RELEASE COMPLETE from L2
*---------------------------------------------------------------------------*/
static void F_19K(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_19K executing");
T308_stop(cd);
i4b_l4_disconnect_ind(cd);
freecd_by_cd(cd);
}
示例4: F_03O
/*---------------------------------------------------------------------------*
* L3 FSM state U3 event CONNECT from L2
*---------------------------------------------------------------------------*/
static void F_03O(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_03O executing");
T310_stop(cd);
i4b_l3_tx_connect_ack(cd); /* CONNECT ACK to network */
i4b_l4_connect_active_ind(cd);
}
示例5: F_RELCP
/*---------------------------------------------------------------------------*
* L3 FSM some states event RELEASE COMPLETE from L2
*---------------------------------------------------------------------------*/
static void F_RELCP(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_RELCP executing");
i4b_l3_stop_all_timers(cd);
i4b_l4_disconnect_ind(cd);
freecd_by_cd(cd);
}
示例6: F_01O
/*---------------------------------------------------------------------------*
* L3 FSM state U1 event CONNECT from L2 (XXX !)
*---------------------------------------------------------------------------*/
static void F_01O(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_01O executing");
T303_stop(cd);
i4b_l3_tx_connect_ack(cd);
i4b_l4_connect_active_ind(cd);
}
示例7: F_01M
/*---------------------------------------------------------------------------*
* L3 FSM state U1 event CALL PROCEEDING from L2
*---------------------------------------------------------------------------*/
static void F_01M(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_01M executing");
T303_stop(cd);
T310_start(cd);
i4b_l4_proceeding_ind(cd);
}
示例8: F_01K
/*---------------------------------------------------------------------------*
* L3 FSM state U1 event RELEASE COMPLETE from L2
*---------------------------------------------------------------------------*/
static void F_01K(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_01K executing");
T303_stop(cd);
i4b_l4_disconnect_ind(cd); /* tell l4 we were rejected */
freecd_by_cd(cd);
}
示例9: F_12C
/*---------------------------------------------------------------------------*
* L3 FSM state U12 event release req from L4
*---------------------------------------------------------------------------*/
static void F_12C(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_12C executing");
i4b_l3_tx_release(cd, 1);
cd->T308_first_to = 1;
T308_start(cd);
}
示例10: F_03P
/*---------------------------------------------------------------------------*
* L3 FSM state U3 event PROGESS IND from L2
*---------------------------------------------------------------------------*/
static void F_03P(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_03P executing");
T310_stop(cd);
#ifdef NOTDEF
i4b_l4_progress_ind(cd);
#endif
}
示例11: F_DLEI
/*---------------------------------------------------------------------------*
* L3 FSM relevant states event DL ESTABLISH IND from L2
*---------------------------------------------------------------------------*/
static void F_DLEI(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_DLEI executing");
/* XXX */
/* remain in current state */
}
示例12: F_01B
/*---------------------------------------------------------------------------*
* L3 FSM state U1 event disconnect req from L4
*---------------------------------------------------------------------------*/
static void F_01B(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_01B executing");
/* cause from L4 */
i4b_l3_tx_disconnect(cd);
T303_stop(cd);
T305_start(cd);
}
示例13: F_08Z
/*---------------------------------------------------------------------------*
* L3 FSM state U8 event T313 timeout
*---------------------------------------------------------------------------*/
static void F_08Z(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_08Z executing");
cd->cause_out = 102; /* recovery on timer expiry */
i4b_l3_tx_disconnect(cd);
T305_start(cd);
i4b_l4_disconnect_ind(cd);
}
示例14: F_03C
/*---------------------------------------------------------------------------*
* L3 FSM state U3 event release req from L4
*---------------------------------------------------------------------------*/
static void F_03C(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_03C executing");
T310_stop(cd);
cd->cause_out = 6;
i4b_l3_tx_release(cd, 1); /* 0 = don't send cause */
cd->T308_first_to = 1;
T308_start(cd);
}
示例15: F_DLRIA
/*---------------------------------------------------------------------------*
* L3 FSM state U10 event DL RELEASE IND from L2
*---------------------------------------------------------------------------*/
static void F_DLRIA(call_desc_t *cd)
{
NDBGL3(L3_F_MSG, "FSM function F_DLRIA executing");
if(cd->T309 == TIMER_IDLE)
T309_start(cd);
DL_Est_Req(ctrl_desc[cd->controller].unit);
}