From ac98bbe9719c12c04e2048cb59ae256757c8cc9c Mon Sep 17 00:00:00 2001 From: "Andreas.Eversberg" Date: Sat, 21 Aug 2010 15:02:32 +0000 Subject: [l1ctl] Introducing L1CTL_FREQ_REQ to change frequency hopping sequence This is only the header, so there is no functionality yet. The functionality for layer1 works, but it is not yet ready for commit. This commit is required for radio ressource protocol commited later. --- include/l1ctl_proto.h | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h index 060922ab..9997450a 100644 --- a/include/l1ctl_proto.h +++ b/include/l1ctl_proto.h @@ -45,6 +45,7 @@ enum { L1CTL_CCCH_MODE_CONF, L1CTL_DM_REL_REQ, L1CTL_PARAM_REQ, + L1CTL_DM_FREQ_REQ, }; enum ccch_mode { @@ -167,20 +168,34 @@ struct l1ctl_par_req { uint8_t padding[2]; } __attribute__((packed)); +struct l1ctl_h0 { + uint16_t band_arfcn; +} __attribute__((packed)); + +struct l1ctl_h1 { + uint8_t hsn; + uint8_t maio; + uint8_t n; + uint8_t _padding[1]; + uint16_t ma[64]; +} __attribute__((packed)); + struct l1ctl_dm_est_req { uint8_t tsc; uint8_t h; union { - struct { - uint16_t band_arfcn; - } h0; - struct { - uint8_t hsn; - uint8_t maio; - uint8_t n; - uint8_t _padding[1]; - uint16_t ma[64]; - } h1; + struct l1ctl_h0 h0; + struct l1ctl_h1 h1; + }; +} __attribute__((packed)); + +struct l1ctl_dm_freq_req { + uint16_t fn; + uint8_t tsc; + uint8_t h; + union { + struct l1ctl_h0 h0; + struct l1ctl_h1 h1; }; } __attribute__((packed)); -- cgit v1.2.3