コード例 #1
0
ファイル: trx_if.c プロジェクト: jemmy655/osmo
int trx_if_cmd_poweron(struct trx_l1h *l1h)
{
	if (l1h->trx->nr == 0)
		return trx_ctrl_cmd(l1h, 1, "POWERON", "");
	else
		return 0;
}
コード例 #2
0
ファイル: trx_if.c プロジェクト: Sukelluskello/osmo-bts
int trx_if_cmd_setbsic(struct trx_l1h *l1h, uint8_t bsic)
{
	if (!setbsic_enabled)
		return 0;
	/* if BSIC is enabled only, the positive response is mandatory */
	return trx_ctrl_cmd(l1h, (settsc_enabled) ? 0 : 1, "SETBSIC", "%d",
		bsic);
}
コード例 #3
0
ファイル: trx_if.c プロジェクト: Sukelluskello/osmo-bts
int trx_if_cmd_poweron(struct trx_l1h *l1h)
{
	struct phy_instance *pinst = l1h->phy_inst;
	if (pinst->num == 0)
		return trx_ctrl_cmd(l1h, 1, "POWERON", "");
	else
		return 0;
}
コード例 #4
0
ファイル: trx_if.c プロジェクト: Sukelluskello/osmo-bts
int trx_if_cmd_txtune(struct trx_l1h *l1h, uint16_t arfcn)
{
	uint16_t freq10;

	freq10 = gsm_arfcn2freq10(arfcn, 0); /* TX = downlink */
	if (freq10 == 0xffff) {
		LOGP(DTRX, LOGL_ERROR, "Arfcn %d not defined.\n", arfcn);
		return -ENOTSUP;
	}

	return trx_ctrl_cmd(l1h, 1, "TXTUNE", "%d", freq10 * 100);
}
コード例 #5
0
ファイル: trx_if.c プロジェクト: Sukelluskello/osmo-bts
int trx_if_cmd_nohandover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss)
{
	return trx_ctrl_cmd(l1h, 1, "NOHANDOVER", "%d %d", tn, ss);
}
コード例 #6
0
ファイル: trx_if.c プロジェクト: Sukelluskello/osmo-bts
int trx_if_cmd_setslot(struct trx_l1h *l1h, uint8_t tn, uint8_t type)
{
	return trx_ctrl_cmd(l1h, 1, "SETSLOT", "%d %d", tn, type);
}
コード例 #7
0
ファイル: trx_if.c プロジェクト: Sukelluskello/osmo-bts
int trx_if_cmd_setmaxdly(struct trx_l1h *l1h, int dly)
{
	return trx_ctrl_cmd(l1h, 0, "SETMAXDLY", "%d", dly);
}
コード例 #8
0
ファイル: trx_if.c プロジェクト: Sukelluskello/osmo-bts
int trx_if_cmd_setpower(struct trx_l1h *l1h, int db)
{
	return trx_ctrl_cmd(l1h, 0, "SETPOWER", "%d", db);
}
コード例 #9
0
ファイル: trx_if.c プロジェクト: Sukelluskello/osmo-bts
int trx_if_cmd_setrxgain(struct trx_l1h *l1h, int db)
{
	return trx_ctrl_cmd(l1h, 0, "SETRXGAIN", "%d", db);
}