Lines Matching refs:icom
140 if ((se = p->icom->write_read(p->icom, in, 0, out, bsize, NULL, tc, ntc, to)) != 0) { in dtp22_fcommand()
154 p->icom->write_read(p->icom, "CE\r", 0, buf, MAX_MES_SIZE, NULL, ">", 1, 0.5); in dtp22_fcommand()
209 if (brt[ci] == p->icom->br) in dtp22_init_coms()
225 if ((se = p->icom->set_ser_port(p->icom, fc_None, brt[i], parity_none, in dtp22_init_coms()
255 if ((se = p->icom->write_read(p->icom, brc[bi], 0, buf, MAX_MES_SIZE, NULL, ">", 1, .2)) != 0) { in dtp22_init_coms()
261 if ((se = p->icom->set_ser_port(p->icom, fc, brt[bi], parity_none, stop_1, length_8)) != ICOM_OK) { in dtp22_init_coms()
267 p->icom->write_read(p->icom, "\r", 0, buf, MAX_MES_SIZE, NULL, ">", 1, 0.1); in dtp22_init_coms()
275 p->icom->del(p->icom); /* Since caller may not clean up */ in dtp22_init_coms()
276 p->icom = NULL; in dtp22_init_coms()
501 if ((se = p->icom->read(p->icom, buf, MAX_MES_SIZE, NULL, ">", 1, 1.0)) != 0) { in dtp22_read_sample()
728 if ((se = p->icom->write(p->icom, "1CA\r", 0, 0.5)) != ICOM_OK) { in dtp22_calibrate()
735 if ((se = p->icom->read(p->icom, buf, MAX_MES_SIZE, NULL, ">", 1, 1.0)) != 0) { in dtp22_calibrate()
955 if (p->icom != NULL) in dtp22_del()
956 p->icom->del(p->icom); in dtp22_del()
1126 extern dtp22 *new_dtp22(icoms *icom, instType itype) { in new_dtp22() argument
1129 a1loge(icom->log, 1, "new_dtp22: malloc failed!\n"); in new_dtp22()
1133 p->log = new_a1log_d(icom->log); in new_dtp22()
1147 p->icom = icom; in new_dtp22()