blob: 05d3de6000a7e9bd58d8808b2edb1b94a3166bef [file] [log] [blame]
Neels Hofmeyr17518fe2017-06-20 04:35:06 +02001/*! \file gprs_rlc.h */
2
Tom Tsou9a5bbf32016-07-14 15:13:45 -07003#pragma once
4
5#include <stdint.h>
6
Neels Hofmeyr87e45502017-06-20 00:17:59 +02007/*! Structure for CPS coding and puncturing scheme (TS 04.60 10.4.8a) */
Tom Tsou9a5bbf32016-07-14 15:13:45 -07008struct egprs_cps {
9 uint8_t bits;
10 uint8_t mcs;
11 uint8_t p[2];
12};
13
Neels Hofmeyr87e45502017-06-20 00:17:59 +020014/*! CPS puncturing table selection (TS 04.60 10.4.8a) */
Tom Tsou9a5bbf32016-07-14 15:13:45 -070015enum egprs_cps_punc {
16 EGPRS_CPS_P1,
17 EGPRS_CPS_P2,
18 EGPRS_CPS_P3,
19 EGPRS_CPS_NONE = -1,
20};
21
Neels Hofmeyr87e45502017-06-20 00:17:59 +020022/*! EGPRS header types (TS 04.60 10.0a.2) */
Tom Tsou9a5bbf32016-07-14 15:13:45 -070023enum egprs_hdr_type {
24 EGPRS_HDR_TYPE1,
25 EGPRS_HDR_TYPE2,
26 EGPRS_HDR_TYPE3,
27};
28
29int egprs_get_cps(struct egprs_cps *cps, uint8_t type, uint8_t bits);