Home | History | Annotate | Download | only in ag

Lines Matching refs:code

54 #define AT_SET_RES_CB(res_cb, c, p, i) {res_cb.code = c; res_cb.p_arg = p; res_cb.int_arg = i;}
56 /* type for AT result code block */
59 UINT8 code;
153 /* AT result code table element */
160 /* AT result code argument types */
197 /* AT result code constant table (Indexed by result code) */
268 /* translation of API result code values to internal values */
323 ** Description Send an AT result code.
329 static void bta_ag_send_result(tBTA_AG_SCB *p_scb, UINT8 code, char *p_arg,
343 /* copy result code string */
344 BCM_STRCPY_S(p, sizeof(buf), bta_ag_result_tbl[code].p_res);
349 switch(code)
364 p += strlen(bta_ag_result_tbl[code].p_res);
367 if (bta_ag_result_tbl[code].fmt == BTA_AG_RES_FMT_INT)
371 else if (bta_ag_result_tbl[code].fmt == BTA_AG_RES_FMT_STR)
423 /* copy result code string */
424 BCM_STRCPY_S(p, sizeof(buf), bta_ag_result_tbl[m_res_cb->res_cb[res_idx].code].p_res);
425 p += strlen(bta_ag_result_tbl[m_res_cb->res_cb[res_idx].code].p_res);
428 if (bta_ag_result_tbl[m_res_cb->res_cb[res_idx].code].fmt == BTA_AG_RES_FMT_INT)
432 else if (bta_ag_result_tbl[m_res_cb->res_cb[res_idx].code].fmt == BTA_AG_RES_FMT_STR)
458 ** Description Send an OK result code.
473 ** Description Send an ERROR result code.
493 ** Description Send an indicator CIEV result code.
905 /* We do not check string. Code will be added later if needed. */
1309 UINT8 code = bta_ag_trans_result[p_result->result];
1317 bta_ag_send_result(p_scb, code, NULL, p_result->data.num);
1392 bta_ag_send_result(p_scb, code, p_result->data.str, 0);
1422 UINT8 code = bta_ag_trans_result[p_result->result];
1430 bta_ag_send_result(p_scb, code, NULL, p_result->data.num);
1596 bta_ag_send_result(p_scb, code, NULL, p_result->data.state);
1609 bta_ag_send_result(p_scb, code, p_result->data.str, 0);
1621 bta_ag_send_result(p_scb, code, p_result->data.str, 0);
1641 bta_ag_send_result(p_scb, code, p_result->data.str, 0);
1656 bta_ag_send_result(p_scb, code, p_result->data.str, 0);
1666 bta_ag_send_result(p_scb, code, NULL, p_result->data.state);
1675 bta_ag_send_result(p_scb, code, NULL, p_result->data.num);
1796 ** Description Send RING result code to peer.