summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/layer1/prim.h
blob: 30c51ae6cb571f515566009033b150f95354dda5 (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
#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_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 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 */