diff options
Diffstat (limited to 'openbsc/doc')
-rw-r--r-- | openbsc/doc/e1-data-model.txt | 10 | ||||
-rw-r--r-- | openbsc/doc/gsm-hopping.txt | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/openbsc/doc/e1-data-model.txt b/openbsc/doc/e1-data-model.txt index 8594fe456..9286d5f8a 100644 --- a/openbsc/doc/e1-data-model.txt +++ b/openbsc/doc/e1-data-model.txt @@ -52,10 +52,10 @@ int abis_link_event(int event, void *data); signal some event (such as layer 1 connect/disconnect) from the input core to the stack. -int subch_demux_in(mx, const u_int8_t *data, int len); +int subch_demux_in(mx, const uint8_t *data, int len); receive 'len' bytes from a given E1 timeslot (TRAU frames) -int subchan_mux_out(mx, u_int8_t *data, int len); +int subchan_mux_out(mx, uint8_t *data, int len); obtain 'len' bytes of output data to be sent on E1 timeslot Intrface by Input Core for Input Plugins @@ -112,8 +112,8 @@ struct e1inp_sign_link { struct llist_head tx_list; /* SAPI and TEI on the E1 TS */ - u_int8_t sapi; - u_int8_t tei; + uint8_t sapi; + uint8_t tei; } enum e1inp_ts_type { @@ -160,7 +160,7 @@ int e1inp_update_ts(struct e1inp_ts *ts); /* Receive a packet from the E1 driver */ int e1inp_rx_ts(struct e1inp_ts *ts, struct msgb *msg, - u_int8_t tei, u_int8_t sapi); + uint8_t tei, uint8_t sapi); /* Send a packet, callback function in the driver */ int e1driver_tx_ts(struct e1inp_ts *ts, struct msgb *msg) diff --git a/openbsc/doc/gsm-hopping.txt b/openbsc/doc/gsm-hopping.txt index 591093999..c964963c0 100644 --- a/openbsc/doc/gsm-hopping.txt +++ b/openbsc/doc/gsm-hopping.txt @@ -12,7 +12,7 @@ specific parameters from channel assignment: hopping sequence generation (6.2.3): -u_int8_t rntable[114] = { +uint8_t rntable[114] = { 48, 98, 63, 1, 36, 95, 78, 102, 94, 73, 0, 64, 25, 81, 76, 59, 124, 23, 104, 100, 101, 47, 118, 85, 18, 56, 96, 86, 54, 2, @@ -29,15 +29,15 @@ u_int8_t rntable[114] = { /* mai=0 represents lowest ARFCN in the MA */ -u_int8_t hopping_mai(u_int8_t hsn, u_int32_t fn, u_int8_t maio, - u_int8_t t1, u_int8_t t2, u_int8_t t3_) +uint8_t hopping_mai(uint8_t hsn, uint32_t fn, uint8_t maio, + uint8_t t1, uint8_t t2, uint8_t t3_) { - u_int8_t mai; + uint8_t mai; if (hsn == 0) /* cyclic hopping */ mai = (fn + maio) % n; else { - u_int32_t m, m_, t_, s; + uint32_t m, m_, t_, s; m = t2 + rntable[(hsn xor (t1 % 64)) + t3]; m_ = m % (2^NBIN); |