|
libosmogsm
0.9.6.241-b6c8
Osmocom GSM library
|
#include <stdint.h>#include <osmocom/core/timer.h>#include <osmocom/core/msgb.h>#include <osmocom/gsm/prim.h>Go to the source code of this file.
Data Structures | |
| struct | mdl_error_ind_param |
| for MDL-ERROR.ind More... | |
| struct | dl_rel_req_param |
| for DL-REL.req More... | |
| struct | osmo_dlsap_prim |
| primitive header for LAPD DL-SAP primitives More... | |
| struct | lapd_msg_ctx |
| LAPD message context. More... | |
| struct | lapd_cr_ent |
| struct | lapd_history |
| struct | lapd_datalink |
| LAPD datalink. More... | |
Enumerations | |
| enum | osmo_dl_prim { PRIM_DL_UNIT_DATA, PRIM_DL_DATA, PRIM_DL_EST, PRIM_DL_REL, PRIM_DL_SUSP, PRIM_DL_RES, PRIM_DL_RECON, PRIM_MDL_ERROR } |
| LAPD related primitives (L2<->L3 SAP) More... | |
| enum | lapd_mode { LAPD_MODE_USER, LAPD_MODE_NETWORK } |
| LAPD mode/role. More... | |
| enum | lapd_state { LAPD_STATE_NULL = 0, LAPD_STATE_TEI_UNASS, LAPD_STATE_ASS_TEI_WAIT, LAPD_STATE_EST_TEI_WAIT, LAPD_STATE_IDLE, LAPD_STATE_SABM_SENT, LAPD_STATE_DISC_SENT, LAPD_STATE_MF_EST, LAPD_STATE_TIMER_RECOV } |
| LAPD state (Figure B.2/Q.921) | |
| enum | lapd_format { LAPD_FORM_UKN = 0, LAPD_FORM_I, LAPD_FORM_S, LAPD_FORM_U } |
| LAPD message format (I / S / U) | |
Functions | |
| void | lapd_dl_init (struct lapd_datalink *dl, uint8_t k, uint8_t v_range, int maxf) |
| void | lapd_dl_exit (struct lapd_datalink *dl) |
| void | lapd_dl_reset (struct lapd_datalink *dl) |
| int | lapd_set_mode (struct lapd_datalink *dl, enum lapd_mode mode) |
| Set the lapdm_mode of a LAPDm entity. | |
| int | lapd_ph_data_ind (struct msgb *msg, struct lapd_msg_ctx *lctx) |
| int | lapd_recv_dlsap (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
primitive related stuff