aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoding.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-01 16:13:38 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-08 00:45:38 +0100
commit2647a337a8343ab1cbb9bb17f918df2db98864e7 (patch)
tree5f16e94e12b74357800b4da966af666ab8aced64 /src/encoding.h
parent18831c3ca94b8cfcdb64a883d88d22404d7c28bd (diff)
encoding: Redesign Encoding::write_immediate_assignment API
The EGPRS support will need more information to encode the IMMEDIATE ASSIGMENT. Instead of adding more parameters pass a pointer to the TBF unless an SBA shall be done (indicated by tbf == NULL). All values that can be derived from the TBF and are not needed for an SBA are removed from the parameter list. Return a negative value on error. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/encoding.h')
-rw-r--r--src/encoding.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/encoding.h b/src/encoding.h
index 12487258..94e9a02f 100644
--- a/src/encoding.h
+++ b/src/encoding.h
@@ -39,11 +39,11 @@ struct gprs_rlc_data_block_info;
class Encoding {
public:
static int write_immediate_assignment(
- struct gprs_rlcmac_bts *bts,
- bitvec * dest, uint8_t downlink, uint8_t ra,
- uint32_t ref_fn, uint8_t ta, uint16_t arfcn, uint8_t ts, uint8_t tsc,
- uint8_t tfi, uint8_t usf, uint32_t tlli, uint8_t polling,
- uint32_t fn, uint8_t single_block, uint8_t alpha, uint8_t gamma,
+ struct gprs_rlcmac_tbf *tbf,
+ bitvec * dest, uint8_t downlink, uint8_t ra,
+ uint32_t ref_fn, uint8_t ta, uint16_t arfcn, uint8_t ts,
+ uint8_t tsc, uint8_t usf, uint8_t polling,
+ uint32_t fn, uint8_t alpha, uint8_t gamma,
int8_t ta_idx);
static void write_packet_uplink_assignment(