Home
last modified time | relevance | path

Searched refs:FHDR (Results 1 – 5 of 5) sorted by relevance

/loramac-node-latest/src/mac/
DLoRaMacParser.c79 macMsg->FHDR.DevAddr = macMsg->Buffer[bufItr++]; in LoRaMacParserData()
80 macMsg->FHDR.DevAddr |= ( ( uint32_t ) macMsg->Buffer[bufItr++] << 8 ); in LoRaMacParserData()
81 macMsg->FHDR.DevAddr |= ( ( uint32_t ) macMsg->Buffer[bufItr++] << 16 ); in LoRaMacParserData()
82 macMsg->FHDR.DevAddr |= ( ( uint32_t ) macMsg->Buffer[bufItr++] << 24 ); in LoRaMacParserData()
84 macMsg->FHDR.FCtrl.Value = macMsg->Buffer[bufItr++]; in LoRaMacParserData()
86 macMsg->FHDR.FCnt = macMsg->Buffer[bufItr++]; in LoRaMacParserData()
87 macMsg->FHDR.FCnt |= macMsg->Buffer[bufItr++] << 8; in LoRaMacParserData()
89 memcpy1( macMsg->FHDR.FOpts, &macMsg->Buffer[bufItr], macMsg->FHDR.FCtrl.Bits.FOptsLen ); in LoRaMacParserData()
90 bufItr = bufItr + macMsg->FHDR.FCtrl.Bits.FOptsLen; in LoRaMacParserData()
DLoRaMacSerializer.c149 computedBufSize += macMsg->FHDR.FCtrl.Bits.FOptsLen; in LoRaMacSerializerData()
166 macMsg->Buffer[bufItr++] = ( macMsg->FHDR.DevAddr ) & 0xFF; in LoRaMacSerializerData()
167 macMsg->Buffer[bufItr++] = ( macMsg->FHDR.DevAddr >> 8 ) & 0xFF; in LoRaMacSerializerData()
168 macMsg->Buffer[bufItr++] = ( macMsg->FHDR.DevAddr >> 16 ) & 0xFF; in LoRaMacSerializerData()
169 macMsg->Buffer[bufItr++] = ( macMsg->FHDR.DevAddr >> 24 ) & 0xFF; in LoRaMacSerializerData()
171 macMsg->Buffer[bufItr++] = macMsg->FHDR.FCtrl.Value; in LoRaMacSerializerData()
173 macMsg->Buffer[bufItr++] = macMsg->FHDR.FCnt & 0xFF; in LoRaMacSerializerData()
174 macMsg->Buffer[bufItr++] = ( macMsg->FHDR.FCnt >> 8 ) & 0xFF; in LoRaMacSerializerData()
176 memcpy1( &macMsg->Buffer[bufItr], macMsg->FHDR.FOpts, macMsg->FHDR.FCtrl.Bits.FOptsLen ); in LoRaMacSerializerData()
177 bufItr = bufItr + macMsg->FHDR.FCtrl.Bits.FOptsLen; in LoRaMacSerializerData()
DLoRaMacCrypto.c1311 …cMsg->FRMPayload, macMsg->FRMPayloadSize, payloadDecryptionKeyID, macMsg->FHDR.DevAddr, UPLINK, fC… in LoRaMacCryptoSecureMessage()
1321 …retval = FOptsEncrypt( macMsg->FHDR.FCtrl.Bits.FOptsLen, macMsg->FHDR.DevAddr, UPLINK, FCNT_UP, fC… in LoRaMacCryptoSecureMessage()
1344 … - LORAMAC_MIC_FIELD_SIZE ), S_NWK_S_INT_KEY, macMsg->FHDR.FCtrl.Bits.Ack, txDr, txCh, macMsg->FHD… in LoRaMacCryptoSecureMessage()
1350 …ze - LORAMAC_MIC_FIELD_SIZE ), F_NWK_S_INT_KEY, macMsg->FHDR.FCtrl.Bits.Ack, UPLINK, macMsg->FHDR.… in LoRaMacCryptoSecureMessage()
1363 …BufSize - LORAMAC_MIC_FIELD_SIZE ), NWK_S_ENC_KEY, false, UPLINK, macMsg->FHDR.DevAddr, fCntUp, &m… in LoRaMacCryptoSecureMessage()
1415 if( address != macMsg->FHDR.DevAddr ) in LoRaMacCryptoUnsecureMessage()
1421 bool isAck = macMsg->FHDR.FCtrl.Bits.Ack; in LoRaMacCryptoUnsecureMessage()
1453 …retval = FOptsEncrypt( macMsg->FHDR.FCtrl.Bits.FOptsLen, address, DOWNLINK, fCntID, fCntDown, macM… in LoRaMacCryptoUnsecureMessage()
DLoRaMac.c1146 …LoRaMacClassBSetFPendingBit( macMsgData.FHDR.DevAddr, ( uint8_t ) macMsgData.FHDR.FCtrl.Bits.FPend… in ProcessRadioRxDone()
1153 …LoRaMacClassBSetFPendingBit( macMsgData.FHDR.DevAddr, ( uint8_t ) macMsgData.FHDR.FCtrl.Bits.FPend… in ProcessRadioRxDone()
1158 MacCtx.McpsIndication.DevAddress = macMsgData.FHDR.DevAddr; in ProcessRadioRxDone()
1173 … if( ( Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.Address == macMsgData.FHDR.DevAddr ) && in ProcessRadioRxDone()
1190 ( macMsgData.FHDR.FCtrl.Bits.Ack != 0 ) || in ProcessRadioRxDone()
1191 ( macMsgData.FHDR.FCtrl.Bits.AdrAckReq != 0 ) ) ) in ProcessRadioRxDone()
1239 MacCtx.McpsIndication.AckReceived = macMsgData.FHDR.FCtrl.Bits.Ack; in ProcessRadioRxDone()
1242 MacCtx.McpsConfirm.AckReceived = macMsgData.FHDR.FCtrl.Bits.Ack; in ProcessRadioRxDone()
1285 …if( ( ( ( Nvm.MacGroup1.SrvAckRequested == true ) || ( macMsgData.FHDR.FCtrl.Bits.FPending > 0 ) )… in ProcessRadioRxDone()
1291 …RemoveMacCommands( MacCtx.McpsIndication.RxSlot, macMsgData.FHDR.FCtrl, MacCtx.McpsConfirm.McpsReq… in ProcessRadioRxDone()
[all …]
DLoRaMacMessageTypes.h230 LoRaMacFrameHeader_t FHDR; member