osmo-gmr 0.2.104-2b98
Osmocom GMR-1
crc.h
Go to the documentation of this file.
1/* GMR-1 CRC */
2/* See GMR-1 05.003 (ETSI TS 101 376-5-3 V1.2.1) - Section 4.3 */
3
4/* (C) 2011-2019 by Sylvain Munaut <tnt@246tNt.com>
5 * All Rights Reserved
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef __OSMO_GMR1_L1_CRC_H__
22#define __OSMO_GMR1_L1_CRC_H__
23
33#include <osmocom/core/crcgen.h>
34
35
36extern const struct osmo_crc8gen_code gmr1_crc8;
37extern const struct osmo_crc16gen_code gmr1_crc12;
38extern const struct osmo_crc16gen_code gmr1_crc16;
39
40
43#endif /* __OSMO_GMR1_L1_CRC_H__ */
const struct osmo_crc16gen_code gmr1_crc12
GMR-1 CRC12 g12(D) = D12 + D11 + D3 + D2 + D + 1.
Definition: crc.c:48
const struct osmo_crc8gen_code gmr1_crc8
GMR-1 CRC8 g8(D) = D8 + D7 + D4 + D3 + D + 1.
Definition: crc.c:38
const struct osmo_crc16gen_code gmr1_crc16
GMR-1 CRC16 g16(D) = D16 + D12 + D5 + 1.
Definition: crc.c:58