Add function to get max supported MS class
It's useful for allocation tests. Change-Id: I31d503af700ec3364042ff7e661710953cacf9f8 Related: OS#2282
This commit is contained in:
parent
1714aeaa67
commit
327e121a0f
|
@ -82,6 +82,11 @@ static inline const struct gprs_ms_multislot_class *get_mslot_table(uint8_t ms_c
|
||||||
return &gprs_ms_multislot_class[index];
|
return &gprs_ms_multislot_class[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t mslot_class_max()
|
||||||
|
{
|
||||||
|
return ARRAY_SIZE(gprs_ms_multislot_class);
|
||||||
|
}
|
||||||
|
|
||||||
uint8_t mslot_class_get_ta(uint8_t ms_cl)
|
uint8_t mslot_class_get_ta(uint8_t ms_cl)
|
||||||
{
|
{
|
||||||
return get_mslot_table(ms_cl)->ta;
|
return get_mslot_table(ms_cl)->ta;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
/* 3GPP TS 05.02 Annex B.1 */
|
/* 3GPP TS 05.02 Annex B.1 */
|
||||||
|
|
||||||
#define MS_NA 255 /* N/A *///
|
#define MS_NA 255 /* N/A */
|
||||||
#define MS_A 254 /* 1 with hopping, 0 without */
|
#define MS_A 254 /* 1 with hopping, 0 without */
|
||||||
#define MS_B 253 /* 1 with hopping, 0 without (change Rx to Tx)*/
|
#define MS_B 253 /* 1 with hopping, 0 without (change Rx to Tx)*/
|
||||||
#define MS_C 252 /* 1 with hopping, 0 without (change Tx to Rx)*/
|
#define MS_C 252 /* 1 with hopping, 0 without (change Tx to Rx)*/
|
||||||
|
@ -44,3 +44,4 @@ uint8_t mslot_class_get_tx(uint8_t ms_cl);
|
||||||
uint8_t mslot_class_get_rx(uint8_t ms_cl);
|
uint8_t mslot_class_get_rx(uint8_t ms_cl);
|
||||||
uint8_t mslot_class_get_sum(uint8_t ms_cl);
|
uint8_t mslot_class_get_sum(uint8_t ms_cl);
|
||||||
uint8_t mslot_class_get_type(uint8_t ms_cl);
|
uint8_t mslot_class_get_type(uint8_t ms_cl);
|
||||||
|
uint8_t mslot_class_max();
|
||||||
|
|
Loading…
Reference in New Issue