mirror of
https://github.com/brmlab/osmo-tetra.git
synced 2025-08-03 21:33:46 +02:00
20 lines
633 B
C
20 lines
633 B
C
#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
|