cmd

package
v0.0.0-...-01184fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Copyright © 2020 Zhengwei Gao<28912001@qq.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 Zhengwei Gao<28912001@qq.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 Zhengwei Gao<28912001@qq.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 Zhengwei Gao<28912001@qq.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 Zhengwei Gao<28912001@qq.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 Zhengwei Gao<28912001@qq.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	INI_DL_BWP int = 0
	DED_DL_BWP int = 1
	INI_UL_BWP int = 2
	DED_UL_BWP int = 3

	DCI_10_SIB1  int = 0 // rnti = SI-RNTI
	DCI_10_MSG2  int = 1 // rnti = RA-RNTI
	DCI_10_MSG4  int = 2 // rnti = TC-RNTI
	DCI_11_PDSCH int = 3 // rnti = C-RNTI
	DCI_10_MSGB  int = 4 // rnti = MSGB-RNTI (two-steps CBRA)

	RAR_UL_MSG3   int = 0 // rnti = RA-RNTI (for RAR UL grant)
	DCI_01_PUSCH  int = 1 // rnti = C-RNTI
	RA_UL_MSGA    int = 2 // rnti = RA-RNTI, together with RAPID (two-steps CBRA)
	FBRAR_UL_MSG3 int = 3 // rnti = TC-RNTI (two-steps CBRA)

	DMRS_DCI_10_SIB1 int = 0
	DMRS_DCI_10_MSG2 int = 1
	DMRS_DCI_10_MSG4 int = 2
	DMRS_RAR_UL_MSG3 int = 3

	NR_RES_PSS             int = 0
	NR_RES_SSS             int = 1
	NR_RES_PBCH            int = 2
	NR_RES_SIB1            int = 3
	NR_RES_PDCCH_CANDIDATE int = 400
	NR_RES_PDSCH           int = 5
	NR_RES_CSI_RS          int = 6
	NR_RES_MSG2            int = 7
	NR_RES_MSG4            int = 8

	NR_RES_PRACH int = 10
	// NR_RES_PUCCH int = 11
	NR_RES_PUCCH_SR      int = 90
	NR_RES_PUCCH_ACK     int = 91
	NR_RES_PUCCH_CSI     int = 92
	NR_RES_PUCCH_SR_CSI  int = 93
	NR_RES_PUCCH_ACK_CSI int = 94
	NR_RES_PUSCH         int = 12
	NR_RES_MSG3          int = 13
	NR_RES_SRS0          int = 14
	NR_RES_SRS0_2        int = 15
	NR_RES_SRS1_3        int = 16
	NR_RES_SRS0_1        int = 17
	NR_RES_SRS0_1_2_3    int = 18

	NR_RES_DMRS_PBCH  int = 20
	NR_RES_DMRS_SIB1  int = 21
	NR_RES_DMRS_PDCCH int = 22
	NR_RES_DMRS_PDSCH int = 23
	NR_RES_DMRS_MSG2  int = 24
	NR_RES_DMRS_MSG4  int = 25

	NR_RES_DMRS_PUCCH int = 30
	NR_RES_DMRS_PUSCH int = 31
	NR_RES_DMRS_MSG3  int = 32

	NR_RES_PTRS_PDSCH int = 40
	NR_RES_PTRS_PUSCH int = 41

	NR_RES_DTX int = 50

	NR_RES_D  int = 60
	NR_RES_F  int = 61
	NR_RES_U  int = 62
	NR_RES_GB int = 63

	NR_RES_CORESET0 int = 70
	NR_RES_CORESET1 int = 71

	NR_RES_CSI_IM            int = 80
	NR_RES_TRS               int = 81
	NR_RES_CSI_RS_CDM_GRP_0  int = 82
	NR_RES_CSI_RS_CDM_GRP_1  int = 83
	NR_RES_CSI_RS_CDM_GRP_2  int = 84
	NR_RES_CSI_RS_CDM_GRP_3  int = 85
	NR_RES_CSI_RS_CDM_GRP_4  int = 86
	NR_RES_CSI_RS_CDM_GRP_5  int = 87
	NR_RES_CSI_RS_CDM_GRP_6  int = 88
	NR_RES_CSI_RS_CDM_GRP_7  int = 89
	NR_RES_CSI_RS_CDM_GRP_8  int = 90
	NR_RES_CSI_RS_CDM_GRP_9  int = 91
	NR_RES_CSI_RS_CDM_GRP_10 int = 92
	NR_RES_CSI_RS_CDM_GRP_11 int = 93
	NR_RES_CSI_RS_CDM_GRP_12 int = 94
	NR_RES_CSI_RS_CDM_GRP_13 int = 95
	NR_RES_CSI_RS_CDM_GRP_14 int = 96
	NR_RES_CSI_RS_CDM_GRP_15 int = 97

	NR_RES_BUTT int = 999
)

Variables

View Source
var (
	CMD_FLAG_NRRG = 0x1

	CMD_FLAG_AUTO_BIP = 0x1 << 1

	CMD_FLAG_CM       = 0x1 << 2
	CMD_FLAG_CM_DIFF  = 0x1 << 3
	CMD_FLAG_CM_FIND  = 0x1 << 4
	CMD_FLAG_CM_PDCCH = 0x1 << 5
	CMD_FLAG_CM_ALL   = CMD_FLAG_CM | CMD_FLAG_CM_DIFF | CMD_FLAG_CM_FIND | CMD_FLAG_CM_PDCCH

	CMD_FLAG_TTI      = 0x1 << 6
	CMD_FLAG_BIP      = 0x1 << 7
	CMD_FLAG_DDR4     = 0x1 << 8
	CMD_FLAG_L2TRACE  = 0x1 << 9
	CMD_FLAG_LOGS_ALL = CMD_FLAG_TTI | CMD_FLAG_BIP | CMD_FLAG_DDR4 | CMD_FLAG_L2TRACE

	CMD_FLAG_PM     = 0x1 << 10
	CMD_FLAG_KPI    = 0x1 << 11
	CMD_FLAG_PM_ALL = CMD_FLAG_PM | CMD_FLAG_KPI
)

separate flag per module

View Source
var (
	Logger = utils.NewZapLogger(fmt.Sprintf("./logs/ngapp_%v.log", time.Now().Format("20060102_150405")))
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type AdvancedFlags

type AdvancedFlags struct {
	// contains filtered or unexported fields
}

Advanced settings

type BwpFlags

type BwpFlags struct {
	// contains filtered or unexported fields
}

initial/dedicated UL/DL BWP

type CsiFlags

type CsiFlags struct {
	// contains filtered or unexported fields
}

NZP-CSI-RS resources for channel measurement, TRS and CSI-IM resource (ZP-CSI-RS)

type DataPerRf

type DataPerRf struct {
	// contains filtered or unexported fields
}

type DlDciFlags

type DlDciFlags struct {
	// contains filtered or unexported fields
}

DL DCI 1_0/1_1 for PDSCH scheduling

type DmrsCommonFlags

type DmrsCommonFlags struct {
	// contains filtered or unexported fields
}

SIB1/Msg2/Msg4/Msg3 DMRS flags

type GridSettingFlags

type GridSettingFlags struct {
	// contains filtered or unexported fields
}

grid setting flags

type NrrgData

type NrrgData struct {
	// contains filtered or unexported fields
}

type NrrgFlags

type NrrgFlags struct {
	// contains filtered or unexported fields
}

type PdschFlags

type PdschFlags struct {
	// contains filtered or unexported fields
}

PDSCH-config and PDSCH-ServingCellConfig

type PucchFlags

type PucchFlags struct {
	// contains filtered or unexported fields
}

PUCCH-Config

type PuschFlags

type PuschFlags struct {
	// contains filtered or unexported fields
}

PUSCH-config and PUSCH-ServingCellConfig

type RachFlags

type RachFlags struct {
	// contains filtered or unexported fields
}

random access

type SearchSpaceFlags

type SearchSpaceFlags struct {
	// contains filtered or unexported fields
}

Search space

type SrsFlags

type SrsFlags struct {
	// contains filtered or unexported fields
}

SRS resource

type TddUlDlFlags

type TddUlDlFlags struct {
	// contains filtered or unexported fields
}

common setting flags

type UlDciFlags

type UlDciFlags struct {
	// contains filtered or unexported fields
}

UL DCI 0_1 or RAR UL grant for PUSCH scheduling

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL