libosmogsm 1.10.0.57-8972
Osmocom GSM library
|
Files | |
file | gsm29205.h |
file | gsm29205.c |
Functions related to 3GPP TS 29.205, primarily message generation/encoding. | |
Data Structures | |
struct | osmo_gcr_parsed |
Parsed representation of Global Call Reference, 3GPP TS 29.205 Table B 2.1.9.1. More... | |
Macros | |
#define | OSMO_GCR_MIN_LEN 13 |
Functions | |
uint8_t | osmo_enc_gcr (struct msgb *msg, const struct osmo_gcr_parsed *g) |
Create Global Call Reference. More... | |
int | osmo_dec_gcr (struct osmo_gcr_parsed *gcr, const uint8_t *elem, uint8_t len) |
Decode Global Call Reference, 3GPP TS 29.205 Table B 2.1.9.1. More... | |
bool | osmo_gcr_eq (const struct osmo_gcr_parsed *gcr1, const struct osmo_gcr_parsed *gcr2) |
Compare two GCR structs. More... | |
Variables | |
uint8_t | osmo_gcr_parsed::net [5] |
uint8_t | osmo_gcr_parsed::net_len |
Network ID, ITU-T Q.1902.3. More... | |
uint16_t | osmo_gcr_parsed::node |
length (3-5 octets) of gsm29205_gcr::net More... | |
uint8_t | osmo_gcr_parsed::cr [5] |
Node ID. More... | |
#define OSMO_GCR_MIN_LEN 13 |
int osmo_dec_gcr | ( | struct osmo_gcr_parsed * | gcr, |
const uint8_t * | elem, | ||
uint8_t | len | ||
) |
Decode Global Call Reference, 3GPP TS 29.205 Table B 2.1.9.1.
[out] | gcr | Caller-provided memory to store Global Call Reference |
[in] | elem | IE value to be decoded |
[in] | len | Length of elem in bytes |
References osmo_gcr_parsed::cr, len, osmo_gcr_parsed::net, osmo_gcr_parsed::net_len, and osmo_gcr_parsed::node.
Referenced by gsm0808_dec_gcr().
uint8_t osmo_enc_gcr | ( | struct msgb * | msg, |
const struct osmo_gcr_parsed * | g | ||
) |
Create Global Call Reference.
[out] | msg | Message Buffer for appending IE |
[in] | g | Global Call Reference, 3GPP TS 29.205 Table B 2.1.9.1 |
References g, msg, and msgb_lv_put().
Referenced by gsm0808_enc_gcr().
bool osmo_gcr_eq | ( | const struct osmo_gcr_parsed * | gcr1, |
const struct osmo_gcr_parsed * | gcr2 | ||
) |
Compare two GCR structs.
[in] | gcr1 | pointer to the GCR struct |
[in] | gcr2 | pointer to the GCR struct |
References osmo_gcr_parsed::cr, osmo_gcr_parsed::net, osmo_gcr_parsed::net_len, and osmo_gcr_parsed::node.
uint8_t osmo_gcr_parsed::cr[5] |
Node ID.
Referenced by osmo_dec_gcr(), osmo_gcr_dump_buf(), and osmo_gcr_eq().
uint8_t osmo_gcr_parsed::net[5] |
Referenced by osmo_dec_gcr(), osmo_gcr_dump_buf(), and osmo_gcr_eq().
uint8_t osmo_gcr_parsed::net_len |
Network ID, ITU-T Q.1902.3.
Referenced by osmo_dec_gcr(), osmo_gcr_dump_buf(), and osmo_gcr_eq().
uint16_t osmo_gcr_parsed::node |
length (3-5 octets) of gsm29205_gcr::net
Referenced by osmo_dec_gcr(), osmo_gcr_dump_buf(), and osmo_gcr_eq().