\doxysection{l1sap.\+h}
\label{l1sap_8h_source}\index{include/osmocom/gsm/l1sap.h@{include/osmocom/gsm/l1sap.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include <osmocom/core/prim.h>}}
\DoxyCodeLine{6 }
\DoxyCodeLine{8 \textcolor{keyword}{enum} osmo\_ph\_prim \{}
\DoxyCodeLine{9         PRIM\_PH\_DATA,               }
\DoxyCodeLine{10         PRIM\_PH\_RACH,               }
\DoxyCodeLine{11         PRIM\_PH\_CONN,               }
\DoxyCodeLine{12         PRIM\_PH\_EMPTY\_FRAME, }
\DoxyCodeLine{13         PRIM\_PH\_RTS,         }
\DoxyCodeLine{14         PRIM\_MPH\_INFO,             }
\DoxyCodeLine{15         PRIM\_TCH,               }
\DoxyCodeLine{16         PRIM\_TCH\_RTS,               }
\DoxyCodeLine{17 \};}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string osmo\_ph\_prim\_names[];}
\DoxyCodeLine{20 }
\DoxyCodeLine{22 \textcolor{keyword}{enum} osmo\_mph\_info\_type \{}
\DoxyCodeLine{23         PRIM\_INFO\_TIME,           }
\DoxyCodeLine{24         PRIM\_INFO\_MEAS,           }
\DoxyCodeLine{25         PRIM\_INFO\_ACTIVATE,   }
\DoxyCodeLine{26         PRIM\_INFO\_DEACTIVATE,       }
\DoxyCodeLine{27         PRIM\_INFO\_MODIFY,       }
\DoxyCodeLine{28         PRIM\_INFO\_ACT\_CIPH,   }
\DoxyCodeLine{29         PRIM\_INFO\_DEACT\_CIPH,       }
\DoxyCodeLine{30         PRIM\_INFO\_ACT\_UL\_ACC,       }
\DoxyCodeLine{31         PRIM\_INFO\_DEACT\_UL\_ACC,   }
\DoxyCodeLine{32 \};}
\DoxyCodeLine{33 }
\DoxyCodeLine{35 \textcolor{keyword}{enum} osmo\_ph\_pres\_info\_type \{}
\DoxyCodeLine{36         PRES\_INFO\_INVALID = 0, }
\DoxyCodeLine{37         PRES\_INFO\_HEADER  = 1,  }
\DoxyCodeLine{38         PRES\_INFO\_FIRST   = 3,   }
\DoxyCodeLine{39         PRES\_INFO\_SECOND  = 5,  }
\DoxyCodeLine{40         PRES\_INFO\_BOTH    = 7,    }
\DoxyCodeLine{41         PRES\_INFO\_UNKNOWN}
\DoxyCodeLine{42 \};}
\DoxyCodeLine{43 }
\DoxyCodeLine{45 \textcolor{keyword}{struct }ph\_rach\_req\_param \{}
\DoxyCodeLine{46         uint8\_t ra;           }
\DoxyCodeLine{47         uint8\_t ta;           }
\DoxyCodeLine{48         uint8\_t tx\_power;       }
\DoxyCodeLine{49         uint8\_t is\_combined\_ccch;}
\DoxyCodeLine{50         uint16\_t offset;  }
\DoxyCodeLine{51 \};}
\DoxyCodeLine{52 }
\DoxyCodeLine{54 \textcolor{keyword}{enum} ph\_burst\_type \{}
\DoxyCodeLine{55         GSM\_L1\_BURST\_TYPE\_NONE = 0,}
\DoxyCodeLine{56         GSM\_L1\_BURST\_TYPE\_ACCESS\_0,}
\DoxyCodeLine{57         GSM\_L1\_BURST\_TYPE\_ACCESS\_1,}
\DoxyCodeLine{58         GSM\_L1\_BURST\_TYPE\_ACCESS\_2}
\DoxyCodeLine{59 \};}
\DoxyCodeLine{60 }
\DoxyCodeLine{62 \textcolor{keyword}{struct }ph\_rach\_ind\_param \{}
\DoxyCodeLine{63         uint8\_t chan\_nr; }
\DoxyCodeLine{64         uint16\_t ra;          }
\DoxyCodeLine{65         uint8\_t acc\_delay;     }
\DoxyCodeLine{66         uint32\_t fn;          }
\DoxyCodeLine{67         uint8\_t is\_11bit;       }
\DoxyCodeLine{68         \textcolor{keyword}{enum} ph\_burst\_type burst\_type; }
\DoxyCodeLine{69         \textcolor{comment}{/* elements added on 2018-\/02-\/26 */}}
\DoxyCodeLine{70         int8\_t rssi;                }
\DoxyCodeLine{71         uint16\_t ber10k;  }
\DoxyCodeLine{72         int16\_t acc\_delay\_256bits;}
\DoxyCodeLine{73         int16\_t lqual\_cb;       }
\DoxyCodeLine{74 \};}
\DoxyCodeLine{75 }
\DoxyCodeLine{77 \textcolor{keyword}{struct }ph\_data\_param \{}
\DoxyCodeLine{78         uint8\_t link\_id; }
\DoxyCodeLine{79         uint8\_t chan\_nr; }
\DoxyCodeLine{80         uint32\_t fn;          }
\DoxyCodeLine{81         int8\_t rssi;                }
\DoxyCodeLine{82         uint16\_t ber10k;  }
\DoxyCodeLine{83         \textcolor{keyword}{union }\{}
\DoxyCodeLine{84                 int16\_t ta\_offs\_qbits;     }
\DoxyCodeLine{85                 int16\_t ta\_offs\_256bits;}
\DoxyCodeLine{86         \};}
\DoxyCodeLine{87         int16\_t lqual\_cb;       }
\DoxyCodeLine{88         \textcolor{keyword}{enum} osmo\_ph\_pres\_info\_type pdch\_presence\_info; }
\DoxyCodeLine{89         uint8\_t is\_sub:1; }
\DoxyCodeLine{90 \};}
\DoxyCodeLine{91 }
\DoxyCodeLine{93 \textcolor{keyword}{struct }ph\_tch\_param \{}
\DoxyCodeLine{94         uint8\_t chan\_nr; }
\DoxyCodeLine{95         uint32\_t fn;          }
\DoxyCodeLine{96         int8\_t rssi;                }
\DoxyCodeLine{97         uint8\_t marker;           }
\DoxyCodeLine{98         uint16\_t ber10k;  }
\DoxyCodeLine{99         int16\_t lqual\_cb;       }
\DoxyCodeLine{100         int16\_t ta\_offs\_256bits;}
\DoxyCodeLine{101         uint8\_t is\_sub:1; }
\DoxyCodeLine{102 \};}
\DoxyCodeLine{103 }
\DoxyCodeLine{105 \textcolor{keyword}{struct }ph\_conn\_ind\_param \{}
\DoxyCodeLine{106         uint32\_t fn;          }
\DoxyCodeLine{107 \};}
\DoxyCodeLine{108 }
\DoxyCodeLine{110 \textcolor{keyword}{struct }info\_time\_ind\_param \{}
\DoxyCodeLine{111         uint32\_t fn;          }
\DoxyCodeLine{112 \};}
\DoxyCodeLine{113 }
\DoxyCodeLine{115 \textcolor{keyword}{struct }info\_meas\_ind\_param \{}
\DoxyCodeLine{116         uint8\_t chan\_nr; }
\DoxyCodeLine{117         uint32\_t fn;          }
\DoxyCodeLine{118         uint16\_t ber10k;  }
\DoxyCodeLine{119         \textcolor{keyword}{union }\{}
\DoxyCodeLine{120                 int16\_t ta\_offs\_qbits;     }
\DoxyCodeLine{121                 int16\_t ta\_offs\_256bits;}
\DoxyCodeLine{122         \};}
\DoxyCodeLine{123         int16\_t c\_i\_cb;           }
\DoxyCodeLine{124         uint8\_t is\_sub:1; }
\DoxyCodeLine{125         uint8\_t inv\_rssi;       }
\DoxyCodeLine{126 \};}
\DoxyCodeLine{127 }
\DoxyCodeLine{129 \textcolor{keyword}{struct }info\_act\_req\_param \{}
\DoxyCodeLine{130         uint8\_t chan\_nr; }
\DoxyCodeLine{131         uint8\_t sacch\_only;   }
\DoxyCodeLine{132 \};}
\DoxyCodeLine{133 }
\DoxyCodeLine{135 \textcolor{keyword}{struct }info\_act\_cnf\_param \{}
\DoxyCodeLine{136         uint8\_t chan\_nr; }
\DoxyCodeLine{137         uint8\_t cause;             }
\DoxyCodeLine{138 \};}
\DoxyCodeLine{139 }
\DoxyCodeLine{141 \textcolor{keyword}{struct }info\_ciph\_req\_param \{}
\DoxyCodeLine{142         uint8\_t chan\_nr; }
\DoxyCodeLine{143         uint8\_t downlink;       }
\DoxyCodeLine{144         uint8\_t uplink;           }
\DoxyCodeLine{145 \};}
\DoxyCodeLine{146 }
\DoxyCodeLine{148 \textcolor{keyword}{struct }info\_ulacc\_req\_param \{}
\DoxyCodeLine{149         uint8\_t chan\_nr; }
\DoxyCodeLine{150 \};}
\DoxyCodeLine{151 }
\DoxyCodeLine{153 \textcolor{keyword}{struct }mph\_info\_param \{}
\DoxyCodeLine{154         \textcolor{keyword}{enum} osmo\_mph\_info\_type type; }
\DoxyCodeLine{155         \textcolor{keyword}{union }\{}
\DoxyCodeLine{156                 \textcolor{keyword}{struct }info\_time\_ind\_param time\_ind;}
\DoxyCodeLine{157                 \textcolor{keyword}{struct }info\_meas\_ind\_param meas\_ind;}
\DoxyCodeLine{158                 \textcolor{keyword}{struct }info\_act\_req\_param act\_req;}
\DoxyCodeLine{159                 \textcolor{keyword}{struct }info\_act\_cnf\_param act\_cnf;}
\DoxyCodeLine{160                 \textcolor{keyword}{struct }info\_ciph\_req\_param ciph\_req;}
\DoxyCodeLine{161                 \textcolor{keyword}{struct }info\_ulacc\_req\_param ulacc\_req;}
\DoxyCodeLine{162         \} u;}
\DoxyCodeLine{163 \};}
\DoxyCodeLine{164 }
\DoxyCodeLine{166 \textcolor{keyword}{struct }osmo\_phsap\_prim \{}
\DoxyCodeLine{167         \textcolor{keyword}{struct }osmo\_prim\_hdr oph; }
\DoxyCodeLine{168         \textcolor{keyword}{union }\{}
\DoxyCodeLine{169                 \textcolor{keyword}{struct }ph\_data\_param data;}
\DoxyCodeLine{170                 \textcolor{keyword}{struct }ph\_tch\_param tch;}
\DoxyCodeLine{171                 \textcolor{keyword}{struct }ph\_rach\_req\_param rach\_req;}
\DoxyCodeLine{172                 \textcolor{keyword}{struct }ph\_rach\_ind\_param rach\_ind;}
\DoxyCodeLine{173                 \textcolor{keyword}{struct }ph\_conn\_ind\_param conn\_ind;}
\DoxyCodeLine{174                 \textcolor{keyword}{struct }mph\_info\_param info;}
\DoxyCodeLine{175         \} u;                   }
\DoxyCodeLine{176 \};}

\end{DoxyCode}
