TRX: Rename trx_if_data() -> trx_if_send_burst()

The new name makes it clear what the function actually does: Send burst
data via the trx interface.

Change-Id: I5031541d4ae4244a62a18acf71139db2874927fa
This commit is contained in:
Harald Welte 2017-06-24 18:02:42 +02:00
parent bb71947829
commit cdf20fec7c
3 changed files with 3 additions and 3 deletions

View File

@ -1398,7 +1398,7 @@ static int trx_sched_fn(struct gsm_bts *bts, uint32_t fn)
} else
gain = 0;
if (nbits)
trx_if_data(l1h, tn, fn, gain, bits, nbits);
trx_if_send_burst(l1h, tn, fn, gain, bits, nbits);
}
}

View File

@ -498,7 +498,7 @@ static int trx_data_read_cb(struct osmo_fd *ofd, unsigned int what)
* \param[in] bits Unpacked bits to be transmitted
* \param[in] nbits Number of \a bits
* \returns 0 on success; negative on error */
int trx_if_data(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr,
int trx_if_send_burst(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr,
const ubit_t *bits, uint16_t nbits)
{
uint8_t buf[TRX_MAX_BURST_LEN];

View File

@ -29,7 +29,7 @@ int trx_if_cmd_rxtune(struct trx_l1h *l1h, uint16_t arfcn);
int trx_if_cmd_txtune(struct trx_l1h *l1h, uint16_t arfcn);
int trx_if_cmd_handover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss);
int trx_if_cmd_nohandover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss);
int trx_if_data(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr,
int trx_if_send_burst(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr,
const ubit_t *bits, uint16_t nbits);
int trx_if_open(struct trx_l1h *l1h);
void trx_if_flush(struct trx_l1h *l1h);