blob: d34d49bfb9d40ff6e1f853d5f9c0c489a1e5f2b5 [file] [log] [blame]
Tom Tsou9a5bbf32016-07-14 15:13:45 -07001#pragma once
2
3#include <stdint.h>
4
5/*! \brief Structure for CPS coding and puncturing scheme (TS 04.60 10.4.8a) */
6struct egprs_cps {
7 uint8_t bits;
8 uint8_t mcs;
9 uint8_t p[2];
10};
11
12/*! \brief CPS puncturing table selection (TS 04.60 10.4.8a) */
13enum egprs_cps_punc {
14 EGPRS_CPS_P1,
15 EGPRS_CPS_P2,
16 EGPRS_CPS_P3,
17 EGPRS_CPS_NONE = -1,
18};
19
20/*! \brief EGPRS header types (TS 04.60 10.0a.2) */
21enum egprs_hdr_type {
22 EGPRS_HDR_TYPE1,
23 EGPRS_HDR_TYPE2,
24 EGPRS_HDR_TYPE3,
25};
26
27int egprs_get_cps(struct egprs_cps *cps, uint8_t type, uint8_t bits);