mirror of
https://github.com/brmlab/osmo-tetra.git
synced 2025-06-10 19:04:07 +02:00
initial import of Osmocom TETRA phy and lower MAC code
This commit is contained in:
parent
a4c4e5a1ab
commit
7ee08faee0
45 changed files with 4217 additions and 0 deletions
20
src/tetra_tdma.h
Normal file
20
src/tetra_tdma.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef TETRA_TDMA_H
|
||||
#define TETRA_TDMA_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct tetra_tdma_time {
|
||||
uint32_t sn; /* symbol number (1 ... 255) */
|
||||
uint32_t tn; /* timeslot number (1 .. 4) */
|
||||
uint32_t fn; /* frame number (1 .. 18) */
|
||||
uint32_t mn; /* multiframe number (1 .. 60) */
|
||||
};
|
||||
|
||||
void tetra_tdma_time_add_sym(struct tetra_tdma_time *tm, uint32_t sym_count);
|
||||
void tetra_tdma_time_add_tn(struct tetra_tdma_time *tm, uint32_t tn_count);
|
||||
void tetra_tdma_time_add_fn(struct tetra_tdma_time *tm, uint32_t fn_count);
|
||||
char *tetra_tdma_time_dump(const struct tetra_tdma_time *tm);
|
||||
|
||||
uint32_t tetra_tdma_time2fn(struct tetra_tdma_time *tm);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue