mirror of https://gerrit.osmocom.org/osmo-tetra
added basic hyperframe support for output
This commit is contained in:
parent
6430bdeb5f
commit
59e06e22ee
|
@ -95,6 +95,5 @@ char *tetra_tdma_time_dump(const struct tetra_tdma_time *tm)
|
|||
|
||||
uint32_t tetra_tdma_time2fn(struct tetra_tdma_time *tm)
|
||||
{
|
||||
/* FIXME: add hyperframe number !! */
|
||||
return (tm->mn *18) + tm->fn;
|
||||
return (((tm->hn * 60) + tm->mn) * 18) + tm->fn;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
struct tetra_tdma_time {
|
||||
uint16_t hn; /* hyperframe number (1 ... 65535) */
|
||||
uint32_t sn; /* symbol number (1 ... 255) */
|
||||
uint32_t tn; /* timeslot number (1 .. 4) */
|
||||
uint32_t fn; /* frame number (1 .. 18) */
|
||||
|
|
Loading…
Reference in New Issue