Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brocaar/lorawan
/ functions
Functions
736 in github.com/brocaar/lorawan
⨍
Functions
736
◇
Types & classes
227
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:349
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:417
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:454
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:486
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:534
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:701
↓ 3 callers
Method
Type
Type returns the NetID type.
netid.go:16
↓ 3 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
payload.go:240
↓ 3 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
payload.go:420
↓ 3 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
mac_commands.go:197
↓ 3 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
mac_commands.go:274
↓ 3 callers
Method
ValidateDownlinkDataMIC
ValidateDownlinkDataMIC validates the MIC of a downlink data frame. In order to validate the MIC, the FCnt value must first be set to the full 32 bit
phypayload.go:232
↓ 3 callers
Method
ValidateUplinkDataMIC
ValidateUplinkDataMIC validates the MIC of an uplink data frame. In order to validate the MIC, the FCnt value must first be set to the full 32 bit fra
phypayload.go:191
↓ 3 callers
Method
ValidateUplinkJoinMIC
ValidateUplinkJoinMIC validates the MIC of an uplink join request.
phypayload.go:251
↓ 3 callers
Method
calculateDownlinkDataMIC
(macVersion MACVersion, confFCnt uint32, sNwkSIntKey AES128Key)
phypayload.go:788
↓ 3 callers
Method
getID
(bits int)
netid.go:34
↓ 3 callers
Method
run
(newPLFunc func() MACCommandPayload, tests []macCommandPayloadTest)
mac_command_payload_test.go:21
↓ 2 callers
Function
CalculateLoRaPayloadSymbolNumber
CalculateLoRaPayloadSymbolNumber returns the number of symbols that make up the packet payload and header.
airtime/airtime.go:48
↓ 2 callers
Function
CalculateLoRaPreambleDuration
CalculateLoRaPreambleDuration calculates the LoRa preamble duration.
airtime/airtime.go:42
↓ 2 callers
Function
CalculateSensitivity
CalculateSensitivity calculates the LoRa sensitivity. The bandwidth must be given in Hz!
sensitivity/sensitivity.go:10
↓ 2 callers
Method
DecryptFOpts
DecryptFOpts decrypts the FOpts payload and decodes it into mac-command structures.
phypayload.go:397
↓ 2 callers
Method
GetDisabledUplinkChannelIndices
GetDisabledUplinkChannelIndices returns the disabled uplink channel indices.
band/band.go:200
↓ 2 callers
Method
GetRX1DataRateIndex
GetRX1DataRateIndex returns the RX1 data-rate given the uplink data-rate and RX1 data-rate offset.
band/band.go:154
↓ 2 callers
Method
GetUplinkChannelIndexForFrequencyDR
GetUplinkChannelIndexForFrequencyDR returns the uplink channel index given a frequency and data-rate.
band/band.go:175
↓ 2 callers
Method
HomeNSReq
HomeNSReq method.
backend/client.go:50
↓ 2 callers
Method
ID
ID returns the NetID ID part.
netid.go:21
↓ 2 callers
Method
IsNetID
IsNetID returns a bool indicating if the NwkID matches the given NetID.
fhdr.go:73
↓ 2 callers
Method
JoinReq
JoinReq method.
backend/client.go:38
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
payload.go:151
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
payload.go:170
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
payload.go:226
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
phypayload.go:152
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:259
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:374
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:540
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:572
↓ 2 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:677
↓ 2 callers
Method
MarshalBinary
MarshalBinary encodes the object into bytes.
mac_commands.go:810
↓ 2 callers
Method
MarshalBinary
MarshalBinary encodes the commands to a slice of bytes.
applayer/multicastsetup/multicastsetup.go:134
↓ 2 callers
Method
MarshalJSON
MarshalJSON implements the json.Marshaler interface. This returns the frequency value in MHz (e.g. 868.1) to be compatible with the LoRaWAN Backend In
backend/backend.go:153
↓ 2 callers
Method
MarshalText
MarshalText implements encoding.TextMarshaler.
netid.go:60
↓ 2 callers
Method
NetIDType
NetIDType returns the NetID type of the DevAddr.
fhdr.go:16
↓ 2 callers
Function
NewClient
NewClient creates a new Client.
backend/client.go:83
↓ 2 callers
Method
PRStopReq
PRStopReq method.
backend/client.go:44
↓ 2 callers
Method
ProfileReq
ProfileReq method.
backend/client.go:48
↓ 2 callers
Method
RejoinReq
RejoinReq method.
backend/client.go:40
↓ 2 callers
Method
SetAddrPrefix
SetAddrPrefix sets the NetID based AddrPrefix.
fhdr.go:51
↓ 2 callers
Method
Size
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:158
↓ 2 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/fragmentation/fragmentation.go:161
↓ 2 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:168
↓ 2 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:306
↓ 2 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:338
↓ 2 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:170
↓ 2 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:251
↓ 2 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:613
↓ 2 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:782
↓ 2 callers
Method
String
String implements fmt.Stringer.
backend/backend.go:110
↓ 2 callers
Method
TimeSinceGPSEpoch
TimeSinceGPSEpoch returns the time duration since GPS epoch, corrected with the leap seconds.
gps/gps.go:53
↓ 2 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
payload.go:193
↓ 2 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
mac_commands.go:466
↓ 2 callers
Method
UnmarshalBinary
UnmarshalBinary decodes a slice of bytes into a command.
applayer/clocksync/clocksync.go:87
↓ 2 callers
Method
UnmarshalBinary
UnmarshalBinary decodes a slice of bytes into a command.
applayer/fragmentation/fragmentation.go:90
↓ 2 callers
Method
UnmarshalBinary
UnmarshalBinary decodes a slice of bytes into a command.
applayer/firmwaremanagement/firmwaremanagement.go:97
↓ 2 callers
Method
UnmarshalBinary
UnmarshalBinary decodes a slice of bytes into a command.
applayer/multicastsetup/multicastsetup.go:99
↓ 2 callers
Method
UnmarshalBinary
UnmarshalBinary decodes a slice of bytes into a slice of commands.
applayer/multicastsetup/multicastsetup.go:148
↓ 2 callers
Method
UnmarshalJSON
UnmarshalJSON implements the json.Unmarshaler interface. This parses a frequency in MHz (float type) back to Hz (int).
backend/backend.go:159
↓ 2 callers
Method
Value
Value implements driver.Valuer.
netid.go:104
↓ 2 callers
Method
XmitDataReq
XmitDataReq method.
backend/client.go:46
↓ 2 callers
Method
calculateDownlinkJoinMIC
(joinReqType JoinType, joinEUI EUI64, devNonce DevNonce, key AES128Key)
phypayload.go:626
↓ 2 callers
Method
calculateUplinkJoinMIC
(key AES128Key)
phypayload.go:589
↓ 2 callers
Function
channelIsActive
(channels []int, i int)
band/band.go:658
↓ 2 callers
Function
getAppSKey
getAppSKey returns appSKey.
backend/joinserver/session_keys.go:19
↓ 2 callers
Method
getAsyncKey
(id uint32)
backend/client.go:463
↓ 2 callers
Function
getJSEncKey
getJSEncKey returns the JSEncKey.
backend/joinserver/session_keys.go:39
↓ 2 callers
Function
getJSKey
(typ byte, devEUI lorawan.EUI64, nwkKey lorawan.AES128Key)
backend/joinserver/session_keys.go:90
↓ 2 callers
Method
marshalPayload
()
macpayload.go:15
↓ 2 callers
Method
returnHomeNSReqError
(w http.ResponseWriter, basePL backend.BasePayload, code int, resultCode backend.ResultCode, msg string)
backend/joinserver/joinserver.go:180
↓ 1 callers
Function
CalculateLinkBudget
CalculateLinkBudget calculates the link budget. The bandwidth must be given in Hz!
sensitivity/sensitivity.go:18
↓ 1 callers
Function
CalculateLoRaAirtime
CalculateLoRaAirtime calculates the airtime for a LoRa modulated frame.
airtime/airtime.go:24
↓ 1 callers
Method
DecryptJoinAcceptPayload
DecryptJoinAcceptPayload decrypts the join-accept payload with the given key. Note that you need to decrypte before you can validate the MIC. Note: f
phypayload.go:325
↓ 1 callers
Function
Encode
Encode encodes the given slice of bytes to fragments including forward error correction. This is based on the proposed FEC code from the Fragmented Da
applayer/fragmentation/encode.go:10
↓ 1 callers
Function
EncryptFOpts
EncryptFOpts encrypts the FOpts mac-commands. For uplink: Set the aFCntDown to false and use the FCntUp For downlink if FPort is not set or equals to
phypayload.go:904
↓ 1 callers
Function
EncryptFRMPayload
EncryptFRMPayload encrypts the FRMPayload (slice of bytes). Note that EncryptFRMPayload is used for both encryption and decryption.
phypayload.go:856
↓ 1 callers
Function
GetCommandPayload
GetCommandPayload returns a new CommandPayload for the given CID.
applayer/clocksync/clocksync.go:49
↓ 1 callers
Function
GetCommandPayload
GetCommandPayload returns a new CommandPayload for the given CID.
applayer/fragmentation/fragmentation.go:53
↓ 1 callers
Function
GetCommandPayload
GetCommandPayload returns a new CommandPayload for the given CID.
applayer/firmwaremanagement/firmwaremanagement.go:59
↓ 1 callers
Function
GetCommandPayload
GetCommandPayload returns a new CommandPayload for the given CID.
applayer/multicastsetup/multicastsetup.go:61
↓ 1 callers
Method
GetEnabledUplinkChannelIndices
()
band/band.go:446
↓ 1 callers
Method
GetEnabledUplinkDataRates
GetEnabledUplinkDataRates returns the list of enabled uplink data-rates.
band/band.go:203
↓ 1 callers
Function
GetMcAppSKey
GetMcAppSKey returns the McAppSKey given the McKey and McAddr.
applayer/multicastsetup/keys.go:28
↓ 1 callers
Function
GetMcKEKey
GetMcKEKey returns the McKEKey given the McRootKey.
applayer/multicastsetup/keys.go:23
↓ 1 callers
Function
GetMcNetSKey
GetMcNetSKey returns the McNetSKey given the McKey and McAddr.
applayer/multicastsetup/keys.go:41
↓ 1 callers
Function
GetMcRootKeyForAppKey
GetMcRootKeyForAppKey returns the McRootKey given an AppKey. Note: The AppKey is only used for LoRaWAN 1.1.x devices.
applayer/multicastsetup/keys.go:18
↓ 1 callers
Function
GetMcRootKeyForGenAppKey
GetMcRootKeyForGenAppKey returns the McRootKey given a GenAppKey. Note: The GenAppKey is only used for LoRaWAN 1.0.x devices.
applayer/multicastsetup/keys.go:12
↓ 1 callers
Method
GetRX1ChannelIndexForUplinkChannelIndex
(uplinkChannel int)
band/band_au915_928.go:46
↓ 1 callers
Method
GetRX1ChannelIndexForUplinkChannelIndex
(uplinkChannel int)
band/band_us902_928.go:45
↓ 1 callers
Method
GetRX1ChannelIndexForUplinkChannelIndex
(uplinkChannel int)
band/band_cn470_510.go:51
↓ 1 callers
Function
GetTXParamSetupEIRP
GetTXParamsetupEIRP returns the EIRP (dBm) for the coded value.
eirp.go:39
↓ 1 callers
Function
GetTXParamSetupEIRPIndex
GetTXParamSetupEIRPIndex returns the coded value for the given EIRP (dBm). Note that it returns the coded value that is closest to the given EIRP, wit
eirp.go:27
↓ 1 callers
Method
GetUplinkChannel
(channel int)
band/band.go:352
← previous
next →
101–200 of 736, ranked by callers