summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/layer1/prim.h
blob: 95719346b887c60d4f24b7efe5949706c61fe654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _L1_PRIM_H
#define _L1_PRIM_H

#include <stdint.h>

#include <layer1/tdma_sched.h>

struct l1ctl_fbsb_req;

/* Utils */
const uint8_t *pu_get_idle_frame(void);
void pu_update_rx_level(uint8_t rx_level);
const uint8_t *pu_get_meas_frame(void);

/* Primitives tests/requests */
void l1s_fb_test(uint8_t base_fn, uint8_t fb_mode);
void l1s_sb_test(uint8_t base_fn);
void l1s_pm_test(uint8_t base_fn, uint16_t arfcn);
void l1s_nb_test(uint8_t base_fn);

void l1s_neigh_sb_cfg(enum l1s_nsb_mode mode, uint8_t detect_count);

void l1s_fbsb_req(uint8_t base_fn, struct l1ctl_fbsb_req *req);
void l1a_freq_req(uint32_t fn_sched);
void l1a_rach_req(uint16_t offset, uint8_t combined, uint8_t ra);

/* Primitives raw scheduling sets */
extern const struct tdma_sched_item nb_sched_set[];
extern const struct tdma_sched_item nb_sched_set_ul[];

extern const struct tdma_sched_item neigh_sb_sched_set[];

extern const struct tdma_sched_item tch_sched_set[];
extern const struct tdma_sched_item tch_a_sched_set[];
extern const struct tdma_sched_item tch_d_sched_set[];
extern const struct tdma_sched_item neigh_pm_sched_set[];

#endif /* _L1_PRIM_H */