diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-01-19 10:39:59 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-01-19 10:39:59 +0100 |
commit | 7ee08faee0846e91ffa170a75947e821eb280931 (patch) | |
tree | 2171e0294dcf9f8401f62aabbe2cb15250dd990a /src/tetra_tdma.h | |
parent | a4c4e5a1abb54b05739a903713679b29337100d4 (diff) |
initial import of Osmocom TETRA phy and lower MAC code
Diffstat (limited to 'src/tetra_tdma.h')
-rw-r--r-- | src/tetra_tdma.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tetra_tdma.h b/src/tetra_tdma.h new file mode 100644 index 0000000..86c17af --- /dev/null +++ b/src/tetra_tdma.h @@ -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 |