-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #537 from handymenny/ulTxSwitch
capabilityInformation: Initial ul tx switch support
- Loading branch information
Showing
11 changed files
with
34,287 additions
and
4 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/main/java/it/smartphonecombo/uecapabilityparser/extension/Component.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package it.smartphonecombo.uecapabilityparser.extension | ||
|
||
import it.smartphonecombo.uecapabilityparser.model.Duplex | ||
import it.smartphonecombo.uecapabilityparser.model.band.DuplexBandTable | ||
import it.smartphonecombo.uecapabilityparser.model.component.ComponentNr | ||
|
||
val ComponentNr.isSUL | ||
get() = DuplexBandTable.getNrDuplex(this.band) == Duplex.SUL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/it/smartphonecombo/uecapabilityparser/model/UplinkTxSwitchOption.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package it.smartphonecombo.uecapabilityparser.model | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
enum class UplinkTxSwitchOption { | ||
NONE, | ||
SWITCHED_UL, | ||
DUAL_UL, | ||
BOTH; | ||
|
||
companion object { | ||
fun valueOf(name: String?): UplinkTxSwitchOption { | ||
return when (name) { | ||
"switchedUL" -> SWITCHED_UL | ||
"dualUL" -> DUAL_UL | ||
"both" -> BOTH | ||
else -> NONE | ||
} | ||
} | ||
} | ||
} | ||
|
||
@Serializable | ||
enum class UplinkTxSwitchType { | ||
R16, // 1Tx-2Tx across 2 carriers | ||
R17_1T2T, // 1Tx-2Tx across 3 carriers (1 + 2 contiguous) | ||
R17_2T2T, // 2Tx-2Tx across 3 carriers (1 + 2 contiguous) | ||
R18_1T, // 1Tx-1Tx, 1Tx-2Tx across 4 carriers | ||
R18_2T, // 2Tx-2Tx across 4 carriers | ||
} | ||
|
||
@Serializable | ||
data class UplinkTxSwitchConfig(val type: UplinkTxSwitchType, val option: UplinkTxSwitchOption) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule web
updated
1527 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.