aboutsummaryrefslogtreecommitdiffstats
path: root/src/hdlc.h
blob: 2d44e75ccd0ef31c55864f39c2bda2c3b477ee5b (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include <osmocom/core/bits.h>

struct hdlc_proc {
	ubit_t history[8];
	ubit_t next_outbyte[8];
	uint8_t num_bits;
};

int process_raw_hdlc(struct hdlc_proc *hdlc, uint8_t *data, unsigned int len);