summaryrefslogtreecommitdiff
path: root/cesar/cl/data_rate.h
diff options
context:
space:
mode:
authormercadie2009-09-08 14:41:09 +0000
committermercadie2009-09-08 14:41:09 +0000
commit4b6631e81de402b12c299d4ab4424532f6b98ebc (patch)
treee33d89d86330b365c38f40e85f080ee8eae8a222 /cesar/cl/data_rate.h
parent2194ca385f957b0725c0c1c97590bbb03d8e61eb (diff)
* various corrections about commits r5440 and r5445
- initialise data_rate at first use - the data_rate field of struct data_rate is now u32 - time data have now a corresponding suffix - correct the case when interval > period - remove override/mac/common/ntb.h - correct header of data_rate_test.c git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5451 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cl/data_rate.h')
-rw-r--r--cesar/cl/data_rate.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/cesar/cl/data_rate.h b/cesar/cl/data_rate.h
index bc7f30d74e..eff3ecc0dd 100644
--- a/cesar/cl/data_rate.h
+++ b/cesar/cl/data_rate.h
@@ -15,6 +15,11 @@
* This data rate info are shared between CP and CL.
*/
+/* This value in the data_rate field of the cl_data_rate_t
+ * structure indicate that the whole structure needs to be initialized.
+ */
+#define CL_DATA_RATE_REQ_INIT 0xFFFFFFFF
+
/**
* Structure used to store data rate informations.
* It stores the data rate value the moment when
@@ -23,11 +28,11 @@
struct cl_data_rate_t
{
/** data rate value expressed in octets/sec. */
- u64 data_rate;
+ u32 data_rate;
/** time (in ecos clock ticks 10ms) when the value was calculated. */
- u64 ecos_time;
+ u64 time_rtc;
/** time (in phy clock ticks 40ns) when the value was calculated. */
- u32 phy_time;
+ u32 time_tck;
};
typedef struct cl_data_rate_t cl_data_rate_t;