From ae767920a81cfe647d5156c0740f5993b326514f Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Mon, 11 Oct 2010 17:22:45 +0200 Subject: [PATCH] ie: add definitions for <> time calculations Signed-off-by: Patrick McHardy --- include/dect/ie.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/dect/ie.h b/include/dect/ie.h index cf8bfd2..3de3f3f 100644 --- a/include/dect/ie.h +++ b/include/dect/ie.h @@ -928,6 +928,12 @@ enum dect_time_limits { DECT_TIME_LIMIT_INFINITE = 0xf, /**< Infinite */ }; +#define DECT_FRAMES_PER_SECOND 100 +#define DECT_FRAMES_PER_MULTIFRAME 16 + +#define DECT_TIME_LIMIT_UNITS_1 (256 * DECT_FRAMES_PER_MULTIFRAME) +#define DECT_TIME_LIMIT_UNITS_2 (65536 * DECT_FRAMES_PER_MULTIFRAME) + /** <> IE */ struct dect_ie_duration { struct dect_ie_common common;