aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding_scheme.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-03-25 16:32:50 +0100
committerMax <msuraev@sysmocom.de>2019-03-26 11:19:30 +0100
commit8a8e0fb2675878c045d9770da0940c7c895b89ec (patch)
treef24bf858ddbc36b3f51ca0270a56b5a4e606e5f0 /src/coding_scheme.h
parentfb3fd093536af6c4f40709b8170bf32cf435fc94 (diff)
MCS: add mcs_is_*() helpers
In preparation for Channel Coding Command encoder in follow-up patches let's add necessary helpers. Those are similar to previously used helpers from GprsCodingScheme class but without CamelCase and with less typo chances between Gprs and Egprs cases. Change-Id: I6699cbc8d7ae766fa4d2b3d37e5f9ff1cf158b7e
Diffstat (limited to 'src/coding_scheme.h')
-rw-r--r--src/coding_scheme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coding_scheme.h b/src/coding_scheme.h
index f69a76e3..3a9ef250 100644
--- a/src/coding_scheme.h
+++ b/src/coding_scheme.h
@@ -33,6 +33,10 @@ enum CodingScheme {
extern const struct value_string mcs_names[];
const char *mcs_name(enum CodingScheme val);
+bool mcs_is_gprs(enum CodingScheme cs);
+bool mcs_is_edge(enum CodingScheme cs);
+bool mcs_is_edge_gmsk(enum CodingScheme cs);
+
enum HeaderType {
HEADER_INVALID,
HEADER_GPRS_CONTROL,