diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-04-24 16:18:09 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-07-28 21:30:50 +0200 |
commit | 7855e405cf8145cebd57f284d9ee8e0d02735817 (patch) | |
tree | 7d27e54fc355cc2d7ecca1845c49acbf7b0454e1 /include | |
parent | 643aad2ef4b0677b95aa94f5eb7a2d01db1fe004 (diff) |
l1ctl: Add definitions for the audio_mode configuration
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/l1ctl_proto.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h index 39705883..c1220d60 100644 --- a/include/l1ctl_proto.h +++ b/include/l1ctl_proto.h @@ -125,7 +125,8 @@ struct l1ctl_ccch_mode_conf { /* TCH mode was changed */ struct l1ctl_tch_mode_conf { uint8_t tch_mode; /* enum tch_mode */ - uint8_t padding[3]; + uint8_t audio_mode; + uint8_t padding[2]; } __attribute__((packed)); /* data on the CCCH was found. This is following the header */ @@ -188,7 +189,12 @@ struct l1ctl_ccch_mode_req { */ struct l1ctl_tch_mode_req { uint8_t tch_mode; /* enum gsm48_chan_mode */ - uint8_t padding[3]; +#define AUDIO_TX_MICROPHONE (1<<0) +#define AUDIO_TX_TRAFFIC_REQ (1<<1) +#define AUDIO_RX_SPEAKER (1<<2) +#define AUDIO_RX_TRAFFIC_IND (1<<3) + uint8_t audio_mode; + uint8_t padding[2]; } __attribute__((packed)); /* the l1_info_ul header is in front */ @@ -225,7 +231,7 @@ struct l1ctl_dm_est_req { struct l1ctl_h1 h1; }; uint8_t tch_mode; - uint8_t _padding[1]; + uint8_t audio_mode; } __attribute__((packed)); struct l1ctl_dm_freq_req { |