MCPcopy Create free account

hub / github.com/brocaar/lorawan / functions

Functions736 in github.com/brocaar/lorawan

↓ 53 callersMethodMarshalBinary
()
payload.go:141
↓ 26 callersMethodUnmarshalBinary
(uplink bool, data []byte)
payload.go:142
↓ 23 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
phypayload.go:485
↓ 17 callersFunctionGetConfig
GetConfig returns the band configuration for the given band. Please refer to the LoRaWAN specification for more details about the effect of the repeat
band/band.go:670
↓ 17 callersMethodGetDownlinkTXPower
GetDownlinkTXPower returns the TX power for downlink transmissions using the given frequency. Depending the band, it could return different values for
band/band.go:238
↓ 16 callersMethodMarshalBinary
()
applayer/multicastsetup/multicastsetup.go:72
↓ 14 callersMethodGetEnabledUplinkChannelIndices
GetEnabledUplinkChannelIndices returns the enabled uplink channel indices.
band/band.go:197
↓ 14 callersFunctiontestMACPayloads
(newPLFunc func() MACCommandPayload, tests []macPayloadTest)
mac_commands_test.go:1111
↓ 13 callersMethodGetDefaults
GetDefaults returns the band defaults.
band/band.go:245
↓ 13 callersMethodGetPingSlotFrequency
GetPingSlotFrequency returns the frequency to use for the Class-B ping-slot.
band/band.go:214
↓ 12 callersMethodGetUplinkChannelIndices
GetUplinkChannelIndices returns all available uplink channel indices.
band/band.go:187
↓ 11 callersMethodGetRX1FrequencyForUplinkFrequency
GetRX1FrequencyForUplinkFrequency returns the frequency to use for RX1 given the uplink frequency.
band/band.go:211
↓ 11 callersFunctionNewKeyEnvelope
NewKeyEnvelope creates a new KeyEnvelope.
backend/backend.go:243
↓ 11 callersMethodSetDownlinkJoinMIC
SetDownlinkJoinMIC calculates and sets the MIC field for downlink join requests.
phypayload.go:260
↓ 10 callersMethodEncryptJoinAcceptPayload
EncryptJoinAcceptPayload encrypts the join-accept payload with the given key. Note that encrypted must be performed after calling SetMIC (since the MI
phypayload.go:285
↓ 10 callersFunctiondecodeDataPayloadToMACCommands
decodeDataPayloadToMACCommands decodes a DataPayload into a slice of MACCommands.
mac_commands.go:1301
↓ 10 callersMethodhasError
()
applayer/multicastsetup/multicastsetup.go:605
↓ 9 callersMethodGetUplinkChannelIndex
GetUplinkChannelIndex returns the uplink channel index given a frequency. As it is possible that the same frequency occurs twice (eg. one time as a de
band/band.go:171
↓ 9 callersMethodMarshalBinary
()
mac_commands.go:172
↓ 9 callersMethodUnmarshalBinary
(data []byte)
mac_commands.go:173
↓ 8 callersMethodGetBasePayload
GetBasePayload returns the base payload of the answer.
backend/backend.go:96
↓ 8 callersMethodGetLinkADRReqPayloadsForEnabledUplinkChannelIndices
GetLinkADRReqPayloadsForEnabledUplinkChannelIndices returns the LinkADRReqPayloads to reconfigure the device to the current enabled channels. Note tha
band/band.go:228
↓ 8 callersFunctionGetMACPayloadAndSize
GetMACPayloadAndSize returns a new MACCommandPayload instance and it's size.
mac_commands.go:134
↓ 8 callersMethodGetRX1ChannelIndexForUplinkChannelIndex
GetRX1ChannelIndexForUplinkChannelIndex returns the channel to use for RX1 given the uplink channel index.
band/band.go:207
↓ 8 callersMethodHandleAnswer
HandleAnswer handles an async answer.
backend/client.go:54
↓ 8 callersMethodgetNwkID
(prefixLength, nwkIDBits int)
fhdr.go:110
↓ 8 callersMethodisUplink
isUplink returns a bool indicating if the packet is uplink or downlink. Note that for MType Proprietary it can't derrive if the packet is uplink or do
phypayload.go:580
↓ 8 callersMethodsetAddrPrefix
(prefixLength, nwkIDBits int, netID NetID)
fhdr.go:84
↓ 7 callersMethodDisableUplinkChannelIndex
DisableUplinkChannelIndex disables the given uplink channel index.
band/band.go:181
↓ 7 callersMethodGetRandomTransactionID
()
backend/client.go:457
↓ 7 callersMethodUnmarshalBinary
UnmarshalBinary decodes the object from binary form.
phypayload.go:508
↓ 7 callersMethodUnmarshalBinary
UnmarshalBinary decodes the object from binary form.
macpayload.go:67
↓ 7 callersMethodrequest
(ctx context.Context, pl Request, ans Answer)
backend/client.go:326
↓ 6 callersMethodGetEnabledUplinkChannelIndicesForLinkADRReqPayloads
GetEnabledUplinkChannelIndicesForLinkADRReqPayloads returns the enabled uplink channel indices after applying the given LinkADRReqPayloads to the give
band/band.go:233
↓ 6 callersMethodGetMaxPayloadSizeForDataRateIndex
GetMaxPayloadSizeForDataRateIndex returns the max-payload size for the given data-rate index, protocol version and regional-parameters revision. The p
band/band.go:150
↓ 6 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
fhdr.go:258
↓ 6 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:613
↓ 6 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
macpayload.go:37
↓ 6 callersMethodMarshalJSON
MarshalJSON encodes the PHYPayload into JSON.
phypayload.go:570
↓ 6 callersMethodMarshalText
MarshalText encodes the PHYPayload into base64.
phypayload.go:552
↓ 6 callersMethodSetUplinkJoinMIC
SetUplinkJoinMIC calculates and sets the MIC field for uplink join requests.
phypayload.go:241
↓ 6 callersMethodUnmarshalBinary
(data []byte)
applayer/multicastsetup/multicastsetup.go:73
↓ 6 callersMethodreturnError
(w http.ResponseWriter, code int, resultCode backend.ResultCode, msg string)
backend/joinserver/joinserver.go:120
↓ 6 callersMethodreturnPayload
(w http.ResponseWriter, code int, pl interface{})
backend/joinserver/joinserver.go:200
↓ 5 callersMethodEncryptFRMPayload
EncryptFRMPayload encrypts the FRMPayload with the given key.
phypayload.go:406
↓ 5 callersMethodGetCFList
GetCFList returns the CFList used for OTAA activation. The CFList contains the extra channels (e.g. for the EU band) or the channel-mask for LoRaWAN 1
band/band.go:222
↓ 5 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:437
↓ 5 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler.
backend/backend.go:120
↓ 5 callersFunctiongetKey
(key lorawan.AES128Key, b [16]byte)
applayer/multicastsetup/keys.go:53
↓ 5 callersMethodreturnJoinReqError
(w http.ResponseWriter, basePL backend.BasePayload, code int, resultCode backend.ResultCode, msg string)
backend/joinserver/joinserver.go:140
↓ 5 callersMethodreturnRejoinReqError
(w http.ResponseWriter, basePL backend.BasePayload, code int, resultCode backend.ResultCode, msg string)
backend/joinserver/joinserver.go:160
↓ 4 callersMethodDecodeFOptsToMACCommands
DecodeFOptsToMACCommands decodes the (decrypted) FOpts bytes into MAC commands.
phypayload.go:469
↓ 4 callersMethodDecryptFRMPayload
DecryptFRMPayload decrypts the FRMPayload with the given key.
phypayload.go:434
↓ 4 callersMethodIsFirmwareImageValid
IsFirmwareImageValid returns whether UpImageStatus==FirmwareValid stating update is present and valid
applayer/firmwaremanagement/firmwaremanagement.go:417
↓ 4 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:296
↓ 4 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:327
↓ 4 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:411
↓ 4 callersMethodPRStartReq
PRStartReq method.
backend/client.go:42
↓ 4 callersMethodSize
()
applayer/multicastsetup/multicastsetup.go:74
↓ 4 callersMethodUnmarshalBinary
UnmarshalBinary decodes the object from binary form.
fhdr.go:296
↓ 4 callersMethodUnmarshalText
UnmarshalText decodes the PHYPayload from base64.
phypayload.go:561
↓ 4 callersMethodcalculateUplinkDataMIC
(macVersion MACVersion, confFCnt uint32, txDR, txCh uint8, fNwkSIntKey, sNwkSIntKey AES128Key)
phypayload.go:687
↓ 4 callersFunctiongetJSIntKey
getJSIntKey returns the JSIntKey.
backend/joinserver/session_keys.go:34
↓ 4 callersFunctiongetSKey
(optNeg bool, typ byte, nwkKey lorawan.AES128Key, netID lorawan.NetID, joinEUI lorawan.EUI64, joinNonce lorawa
backend/joinserver/session_keys.go:43
↓ 4 callersFunctionnewAS923Band
(repeaterCompatible bool, dt lorawan.DwellTime, frequencyOffset int, nameSuffix string)
band/band_as923.go:84
↓ 3 callersMethodAddChannel
AddChannel adds an extra (user-configured) uplink / downlink channel. Note: this is not supported by every region.
band/band.go:162
↓ 3 callersFunctionCalculateLoRaSymbolDuration
CalculateLoRaSymbolDuration calculates the LoRa symbol duration.
airtime/airtime.go:37
↓ 3 callersMethodEnableUplinkChannelIndex
EnableUplinkChannelIndex enables the given uplink channel index.
band/band.go:184
↓ 3 callersMethodEncryptFOpts
EncryptFOpts encrypts the FOpts with the given key.
phypayload.go:357
↓ 3 callersMethodGetCustomUplinkChannelIndices
GetCustomUplinkChannelIndices returns all custom uplink channels.
band/band.go:194
↓ 3 callersMethodGetDataRateIndex
GetDataRateIndex returns the index for the given data-rate parameters.
band/band.go:137
↓ 3 callersMethodGetUplinkChannel
GetUplinkChannel returns the uplink channel for the given index.
band/band.go:165
↓ 3 callersMethodIsAsync
()
backend/client.go:168
↓ 3 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
payload.go:376
↓ 3 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:495
↓ 3 callersMethodMarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:704
↓ 3 callersMethodMarshalBinary
MarshalBinary encodes the object into bytes.
mac_commands.go:774
↓ 3 callersMethodName
Name returns the name of the band.
band/band.go:134
↓ 3 callersMethodSetDownlinkDataMIC
SetDownlinkDataMIC calculates and sets the MIC field for downlink data frames. The confirmed frame-counter and is only required for LoRaWAN 1.1 and ca
phypayload.go:217
↓ 3 callersMethodSetUplinkDataMIC
SetUplinkDataMIC calculates and sets the MIC field for uplink data frames. The confirmed frame-counter, TX data-rate TX channel index and SNwkSIntKey
phypayload.go:176
↓ 3 callersMethodSize
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:194
↓ 3 callersMethodSize
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:238
↓ 3 callersMethodSize
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:275
↓ 3 callersMethodSize
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:310
↓ 3 callersMethodSize
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:347
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/fragmentation/fragmentation.go:207
↓ 3 callersMethodSize
Size returns the paylaod size in bytes.
applayer/fragmentation/fragmentation.go:288
↓ 3 callersMethodSize
Size returns the payload size in bytes.
applayer/fragmentation/fragmentation.go:343
↓ 3 callersMethodSize
Size returns the size of the payload in bytes.
applayer/fragmentation/fragmentation.go:375
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/fragmentation/fragmentation.go:455
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/fragmentation/fragmentation.go:503
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:195
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:220
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:251
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:278
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:368
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:409
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:462
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:496
↓ 3 callersMethodSize
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:204
next →1–100 of 736, ranked by callers