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 ¶
const ( ModemPropertyBearers = "Bearers" ModemPropertyDevice = "Device" ModemPropertySim = "Sim" ModemPropertySimSlots = "SimSlots" ModemPropertyPrimarySimSlot = "PrimarySimSlot" ModemPropertyState = "State" ModemPropertyPowered = "PowerState" ModemPropertyManufacturer = "Manufacturer" )
ModemManager1.Modem properties
const ( SimpleModemPropertyState = "state" SimpleModemPropertyRegState = "m3gpp-registration-state" )
ModemManager1.Modem.Simple properties
const ( SimPropertySimIdentifier = "SimIdentifier" SimPropertySimEid = "Eid" SimPropertyESimStatus = "EsimStatus" )
ModemManager1.Sim properties
const ( BearerPropertyConnected = "Connected" BearerPropertyProperties = "Properties" )
ModemManager1.Bearer properties
const ( // Modem interface methods ModemEnable = "Enable" // Modem.Simple interface methods ModemConnect = "Connect" ModemDisconnect = "Disconnect" )
Modem DBus methods
const ( ModemSAREnable = "Enable" SARState = "State" SARPowerLevel = "PowerLevel" )
Modem Sar DBus methods
const ( DefaultSimPin = "1234" TempSimPin = "1600" )
Default SIM pin
const ( ESimStatusUnknown = 0 ESimStatusNoProfile = 1 ESimStatusWithProfiles = 2 )
Possible values for ESimStatus
const (
EmptySlotPath = "/"
)
D-Bus path for empty sim slots
const (
ModemModem3gppPropertyInitialEpsBearer = "InitialEpsBearer"
)
ModemManager1.Modem.Modem3gpp properties
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