diff options
author | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2012-07-12 14:49:15 +0400 |
---|---|---|
committer | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2012-07-12 14:49:15 +0400 |
commit | ef7f28cc7fe67e353821c5f88bc80d5120fec3ca (patch) | |
tree | ca1b24fafa82862b1d5cd38ce1434973033588f0 /src/pcu_l1_if.h | |
parent | c7e7f6868b6f24346424dee904f4e76d3f216ff4 (diff) | |
parent | e13fa2d56936d6bed8febcc41508a30e4a1038f0 (diff) |
Merge branch 'jolly_new'
Merge is based on jolly_new branch with two modifications.
1. Modified PCU L1 interface.
pcu_l1_if.cpp - common functions for tx and rx messages on L1 interface.
sysmo_sock.cpp - SYSMO-PCU socket functions.
openbts_sock.cpp - OpenBTS-PCU socket functions.
pcuif_proto.h - L1 interface's primitives.
2. Modified encoding of RLC/MAC Control messages, now we use structures and encode_gsm_rlcmac_downlink() function for encode control blocks (without hand-coding).
Diffstat (limited to 'src/pcu_l1_if.h')
-rw-r--r-- | src/pcu_l1_if.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/pcu_l1_if.h b/src/pcu_l1_if.h index 82fa8840..f3ac5971 100644 --- a/src/pcu_l1_if.h +++ b/src/pcu_l1_if.h @@ -29,33 +29,19 @@ extern "C" { #include <osmocom/gsm/gsm_utils.h> } -struct pcu_l1if_ts { - uint8_t enable; - uint8_t tsc; -}; - -struct pcu_l1if_trx { - uint16_t arfcn; - struct pcu_l1if_ts ts[8]; -}; - -struct pcu_l1if_bts { - struct pcu_l1if_trx trx[8]; -}; - -extern struct pcu_l1if_bts pcu_l1if_bts; - int get_current_fn(); -void set_current_fn(int fn); void pcu_l1if_tx_pdtch(msgb *msg, uint8_t trx, uint8_t ts, uint16_t arfcn, uint32_t fn, uint8_t block_nr); void pcu_l1if_tx_ptcch(msgb *msg, uint8_t trx, uint8_t ts, uint16_t arfcn, uint32_t fn, uint8_t block_nr); void pcu_l1if_tx_agch(bitvec * block, int len); -void pcu_l1if_tx_pch(bitvec * block, int len); + +void pcu_l1if_tx_pch(bitvec * block, int plen, char *imsi); int pcu_l1if_open(void); void pcu_l1if_close(void); +int pcu_rx(uint8_t msg_type, struct gsm_pcu_if *pcu_prim); +int pcu_sock_send(struct msgb *msg); #endif // PCU_L1_IF_H |