mmconst

package
v0.0.0-...-9474aff Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package mmconst defines the constants for ModemManager1, This is defined under common/ as they might be used in both local and remote tests.

Index

Constants

View Source
const (
	ModemPropertyBearers        = "Bearers"
	ModemPropertyDevice         = "Device"
	ModemPropertySim            = "Sim"
	ModemPropertySimSlots       = "SimSlots"
	ModemPropertyPrimarySimSlot = "PrimarySimSlot"
	ModemPropertyState          = "State"
	ModemPropertyPowered        = "PowerState"
	ModemPropertyManufacturer   = "Manufacturer"
)

ModemManager1.Modem properties

View Source
const (
	SimpleModemPropertyState    = "state"
	SimpleModemPropertyRegState = "m3gpp-registration-state"
)

ModemManager1.Modem.Simple properties

View Source
const (
	SimPropertySimIdentifier = "SimIdentifier"
	SimPropertySimEid        = "Eid"
	SimPropertyESimStatus    = "EsimStatus"
)

ModemManager1.Sim properties

View Source
const (
	BearerPropertyConnected  = "Connected"
	BearerPropertyProperties = "Properties"
)

ModemManager1.Bearer properties

View Source
const (
	// Modem interface methods
	ModemEnable = "Enable"

	// Modem.Simple interface methods
	ModemConnect    = "Connect"
	ModemDisconnect = "Disconnect"
)

Modem DBus methods

View Source
const (
	ModemSAREnable = "Enable"
	SARState       = "State"
	SARPowerLevel  = "PowerLevel"
)

Modem Sar DBus methods

View Source
const (
	DefaultSimPin = "1234"
	TempSimPin    = "1600"
)

Default SIM pin

View Source
const (
	ESimStatusUnknown      = 0
	ESimStatusNoProfile    = 1
	ESimStatusWithProfiles = 2
)

Possible values for ESimStatus

View Source
const (
	EmptySlotPath = "/"
)

D-Bus path for empty sim slots

View Source
const (
	ModemModem3gppPropertyInitialEpsBearer = "InitialEpsBearer"
)

ModemManager1.Modem.Modem3gpp properties

View Source
const (
	ModemPollTime = 1 * time.Minute
)

Wait times for modem at Modemmanager operations

Variables

This section is empty.

Functions

This section is empty.

Types

type ModemPowerState

type ModemPowerState uint32

ModemPowerState is states of MMModemPowerState

const (
	ModemPowerStateUnknown ModemPowerState = 0
	ModemPowerStateOff     ModemPowerState = 1
	ModemPowerStateLow     ModemPowerState = 2
	ModemPowerStateOn      ModemPowerState = 3
)

All the modem power states

type ModemRegState

type ModemRegState uint32

ModemRegState for registration states

const (
	ModemRegStateIdle      ModemRegState = 0
	ModemRegStateHome      ModemRegState = 1
	ModemRegStateSearching ModemRegState = 2
	ModemRegStateDenied    ModemRegState = 3
	ModemRegStateUnknown   ModemRegState = 4
	ModemRegStateRoaming   ModemRegState = 5
)

All the 3gpp registration states

type ModemState

type ModemState int32

ModemState states from Modemmanager-enums.h

const (
	ModemStateFailed        ModemState = -1
	ModemStateUnknown       ModemState = 0
	ModemStateInitializing  ModemState = 1
	ModemStateLocked        ModemState = 2
	ModemStateDisabled      ModemState = 3
	ModemStateDisabling     ModemState = 4
	ModemStateEnabling      ModemState = 5
	ModemStateEnabled       ModemState = 6
	ModemStateSearching     ModemState = 7
	ModemStateRegistered    ModemState = 8
	ModemStateDisconnecting ModemState = 9
	ModemStateConnecting    ModemState = 10
	ModemStateConnected     ModemState = 11
)

All the modem states

Jump to

Keyboard shortcuts

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