summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/layer1/l23_api.h
blob: e4a3fd0a687036341980bf10ae09ab4289e9eff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _L1_L23_API_H
#define _L1_L23_API_H

#include <stdint.h>
#include <osmocom/core/msgb.h>
#include <l1ctl_proto.h>

void l1a_l23api_init(void);
void l1a_l23_handler(void);
void l1_queue_for_l2(struct msgb *msg);
struct msgb *l1ctl_msgb_alloc(uint8_t msg_type);
struct msgb *l1_create_l2_msg(int msg_type, uint32_t fn, uint16_t snr, uint16_t arfcn);
extern void (*l1a_l23_tx_cb)(struct msgb *msg);
void l1a_l23_rx(uint8_t dlci, struct msgb *msg);

void l1ctl_tx_reset(uint8_t msg_type, uint8_t reset_type);

#endif /* _L1_L23_API_H */