Home
last modified time | relevance | path

Searched refs:Buffer (Results 1 – 25 of 43) sorted by relevance

12

/loramac-node-latest/src/mac/
DLoRaMacSerializer.c26 if( ( macMsg == 0 ) || ( macMsg->Buffer == 0 ) ) in LoRaMacSerializerJoinRequest()
39 macMsg->Buffer[bufItr++] = macMsg->MHDR.Value; in LoRaMacSerializerJoinRequest()
41 memcpyr( &macMsg->Buffer[bufItr], macMsg->JoinEUI, LORAMAC_JOIN_EUI_FIELD_SIZE ); in LoRaMacSerializerJoinRequest()
44 memcpyr( &macMsg->Buffer[bufItr], macMsg->DevEUI, LORAMAC_DEV_EUI_FIELD_SIZE ); in LoRaMacSerializerJoinRequest()
47 macMsg->Buffer[bufItr++] = macMsg->DevNonce & 0xFF; in LoRaMacSerializerJoinRequest()
48 macMsg->Buffer[bufItr++] = ( macMsg->DevNonce >> 8 ) & 0xFF; in LoRaMacSerializerJoinRequest()
50 macMsg->Buffer[bufItr++] = macMsg->MIC & 0xFF; in LoRaMacSerializerJoinRequest()
51 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 8 ) & 0xFF; in LoRaMacSerializerJoinRequest()
52 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 16 ) & 0xFF; in LoRaMacSerializerJoinRequest()
53 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 24 ) & 0xFF; in LoRaMacSerializerJoinRequest()
[all …]
DLoRaMacParser.c26 if( ( macMsg == 0 ) || ( macMsg->Buffer == 0 ) ) in LoRaMacParserJoinAccept()
33 macMsg->MHDR.Value = macMsg->Buffer[bufItr++]; in LoRaMacParserJoinAccept()
35 memcpy1( macMsg->JoinNonce, &macMsg->Buffer[bufItr], 3 ); in LoRaMacParserJoinAccept()
38 memcpy1( macMsg->NetID, &macMsg->Buffer[bufItr], 3 ); in LoRaMacParserJoinAccept()
41 macMsg->DevAddr = ( uint32_t ) macMsg->Buffer[bufItr++]; in LoRaMacParserJoinAccept()
42 macMsg->DevAddr |= ( ( uint32_t ) macMsg->Buffer[bufItr++] << 8 ); in LoRaMacParserJoinAccept()
43 macMsg->DevAddr |= ( ( uint32_t ) macMsg->Buffer[bufItr++] << 16 ); in LoRaMacParserJoinAccept()
44 macMsg->DevAddr |= ( ( uint32_t ) macMsg->Buffer[bufItr++] << 24 ); in LoRaMacParserJoinAccept()
46 macMsg->DLSettings.Value = macMsg->Buffer[bufItr++]; in LoRaMacParserJoinAccept()
48 macMsg->RxDelay = macMsg->Buffer[bufItr++]; in LoRaMacParserJoinAccept()
[all …]
DLoRaMacMessageTypes.h56 uint8_t* Buffer; member
91 uint8_t* Buffer; member
130 uint8_t* Buffer; member
169 uint8_t* Buffer; member
218 uint8_t* Buffer; member
/loramac-node-latest/src/apps/ping-pong/NucleoL073/
Dmain.c122 uint8_t Buffer[BUFFER_SIZE]; variable
231 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
237 Buffer[0] = 'P'; in main()
238 Buffer[1] = 'I'; in main()
239 Buffer[2] = 'N'; in main()
240 Buffer[3] = 'G'; in main()
244 Buffer[i] = i - 4; in main()
247 Radio.Send( Buffer, BufferSize ); in main()
249 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
266 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/ping-pong/NucleoL152/
Dmain.c122 uint8_t Buffer[BUFFER_SIZE]; variable
231 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
237 Buffer[0] = 'P'; in main()
238 Buffer[1] = 'I'; in main()
239 Buffer[2] = 'N'; in main()
240 Buffer[3] = 'G'; in main()
244 Buffer[i] = i - 4; in main()
247 Radio.Send( Buffer, BufferSize ); in main()
249 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
266 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/ping-pong/SAMR34/
Dmain.c124 uint8_t Buffer[BUFFER_SIZE]; variable
235 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
241 Buffer[0] = 'P'; in main()
242 Buffer[1] = 'I'; in main()
243 Buffer[2] = 'N'; in main()
244 Buffer[3] = 'G'; in main()
248 Buffer[i] = i - 4; in main()
251 Radio.Send( Buffer, BufferSize ); in main()
253 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
269 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/ping-pong/SKiM881AXL/
Dmain.c114 uint8_t Buffer[BUFFER_SIZE]; variable
223 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
229 Buffer[0] = 'P'; in main()
230 Buffer[1] = 'I'; in main()
231 Buffer[2] = 'N'; in main()
232 Buffer[3] = 'G'; in main()
236 Buffer[i] = i - 4; in main()
239 Radio.Send( Buffer, BufferSize ); in main()
241 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
258 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/ping-pong/SKiM980A/
Dmain.c114 uint8_t Buffer[BUFFER_SIZE]; variable
223 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
229 Buffer[0] = 'P'; in main()
230 Buffer[1] = 'I'; in main()
231 Buffer[2] = 'N'; in main()
232 Buffer[3] = 'G'; in main()
236 Buffer[i] = i - 4; in main()
239 Radio.Send( Buffer, BufferSize ); in main()
241 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
258 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/ping-pong/NucleoL476/
Dmain.c122 uint8_t Buffer[BUFFER_SIZE]; variable
231 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
237 Buffer[0] = 'P'; in main()
238 Buffer[1] = 'I'; in main()
239 Buffer[2] = 'N'; in main()
240 Buffer[3] = 'G'; in main()
244 Buffer[i] = i - 4; in main()
247 Radio.Send( Buffer, BufferSize ); in main()
249 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
266 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/ping-pong/SKiM880B/
Dmain.c114 uint8_t Buffer[BUFFER_SIZE]; variable
223 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
229 Buffer[0] = 'P'; in main()
230 Buffer[1] = 'I'; in main()
231 Buffer[2] = 'N'; in main()
232 Buffer[3] = 'G'; in main()
236 Buffer[i] = i - 4; in main()
239 Radio.Send( Buffer, BufferSize ); in main()
241 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
258 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/ping-pong/B-L072Z-LRWAN1/
Dmain.c122 uint8_t Buffer[BUFFER_SIZE]; variable
231 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
237 Buffer[0] = 'P'; in main()
238 Buffer[1] = 'I'; in main()
239 Buffer[2] = 'N'; in main()
240 Buffer[3] = 'G'; in main()
244 Buffer[i] = i - 4; in main()
247 Radio.Send( Buffer, BufferSize ); in main()
249 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
266 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/ping-pong/NAMote72/
Dmain.c115 uint8_t Buffer[BUFFER_SIZE]; variable
224 if( strncmp( ( const char* )Buffer, ( const char* )PongMsg, 4 ) == 0 ) in main()
230 Buffer[0] = 'P'; in main()
231 Buffer[1] = 'I'; in main()
232 Buffer[2] = 'N'; in main()
233 Buffer[3] = 'G'; in main()
237 Buffer[i] = i - 4; in main()
240 Radio.Send( Buffer, BufferSize ); in main()
242 else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
259 if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 ) in main()
[all …]
/loramac-node-latest/src/apps/LoRaMac/common/LmHandler/packages/
DLmhpRemoteMcastSetup.c304 switch( mcpsIndication->Buffer[cmdIndex++] ) in LmhpRemoteMcastSetupOnMcpsIndication()
321 uint8_t id = mcpsIndication->Buffer[cmdIndex++]; in LmhpRemoteMcastSetupOnMcpsIndication()
327 … McSessionData[id].McGroupData.McAddr = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x000000FF; in LmhpRemoteMcastSetupOnMcpsIndication()
328 … McSessionData[id].McGroupData.McAddr += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000FF00; in LmhpRemoteMcastSetupOnMcpsIndication()
329 … McSessionData[id].McGroupData.McAddr += ( mcpsIndication->Buffer[cmdIndex++] << 16 ) & 0x00FF0000; in LmhpRemoteMcastSetupOnMcpsIndication()
330 … McSessionData[id].McGroupData.McAddr += ( mcpsIndication->Buffer[cmdIndex++] << 24 ) & 0xFF000000; in LmhpRemoteMcastSetupOnMcpsIndication()
334 … McSessionData[id].McGroupData.McKeyEncrypted[i] = mcpsIndication->Buffer[cmdIndex++]; in LmhpRemoteMcastSetupOnMcpsIndication()
337 …McSessionData[id].McGroupData.McFCountMin = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x0000… in LmhpRemoteMcastSetupOnMcpsIndication()
338 …McSessionData[id].McGroupData.McFCountMin += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000… in LmhpRemoteMcastSetupOnMcpsIndication()
339 …McSessionData[id].McGroupData.McFCountMin += ( mcpsIndication->Buffer[cmdIndex++] << 16 ) & 0x00FF… in LmhpRemoteMcastSetupOnMcpsIndication()
[all …]
DLmhpFragmentation.c286 switch( mcpsIndication->Buffer[cmdIndex++] ) in LmhpFragmentationOnMcpsIndication()
302 uint8_t fragIndex = mcpsIndication->Buffer[cmdIndex++]; in LmhpFragmentationOnMcpsIndication()
334 … fragSessionData.FragGroupData.FragSession.Value = mcpsIndication->Buffer[cmdIndex++]; in LmhpFragmentationOnMcpsIndication()
336 … fragSessionData.FragGroupData.FragNb = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x00FF; in LmhpFragmentationOnMcpsIndication()
337 … fragSessionData.FragGroupData.FragNb |= ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0xFF00; in LmhpFragmentationOnMcpsIndication()
339 fragSessionData.FragGroupData.FragSize = mcpsIndication->Buffer[cmdIndex++]; in LmhpFragmentationOnMcpsIndication()
341 fragSessionData.FragGroupData.Control.Value = mcpsIndication->Buffer[cmdIndex++]; in LmhpFragmentationOnMcpsIndication()
343 fragSessionData.FragGroupData.Padding = mcpsIndication->Buffer[cmdIndex++]; in LmhpFragmentationOnMcpsIndication()
345 …fragSessionData.FragGroupData.Descriptor = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x00000… in LmhpFragmentationOnMcpsIndication()
346 …fragSessionData.FragGroupData.Descriptor += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000F… in LmhpFragmentationOnMcpsIndication()
[all …]
DLmhpCompliance.c258 .Buffer = ComplianceTestState.DataBuffer, in LmhpComplianceProcess()
323 switch( mcpsIndication->Buffer[cmdIndex++] ) in LmhpComplianceOnMcpsIndication()
345 ComplianceTestState.NewClass = ( DeviceClass_t ) mcpsIndication->Buffer[cmdIndex++]; in LmhpComplianceOnMcpsIndication()
353 mibReq.Param.AdrEnable = mcpsIndication->Buffer[cmdIndex++]; in LmhpComplianceOnMcpsIndication()
360 LoRaMacTestSetDutyCycleOn( mcpsIndication->Buffer[cmdIndex++] ); in LmhpComplianceOnMcpsIndication()
367 uint8_t index = mcpsIndication->Buffer[cmdIndex++]; in LmhpComplianceOnMcpsIndication()
380 uint8_t frameType = mcpsIndication->Buffer[cmdIndex++]; in LmhpComplianceOnMcpsIndication()
397 …estState.DataBuffer[ComplianceTestState.DataBufferSize++] = mcpsIndication->Buffer[cmdIndex++] + 1; in LmhpComplianceOnMcpsIndication()
432 ComplianceTestState.ClassBStatus.PingSlotPeriodicity = mcpsIndication->Buffer[cmdIndex++]; in LmhpComplianceOnMcpsIndication()
438 ComplianceTestState.IsBeaconRxStatusIndOn = ( bool ) mcpsIndication->Buffer[cmdIndex++]; in LmhpComplianceOnMcpsIndication()
[all …]
DLmhpClockSync.c226 switch( mcpsIndication->Buffer[cmdIndex++] ) in LmhpClockSyncOnMcpsIndication()
247 timeCorrection = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x000000FF; in LmhpClockSyncOnMcpsIndication()
248 timeCorrection += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000FF00; in LmhpClockSyncOnMcpsIndication()
249 timeCorrection += ( mcpsIndication->Buffer[cmdIndex++] << 16 ) & 0x00FF0000; in LmhpClockSyncOnMcpsIndication()
250 timeCorrection += ( mcpsIndication->Buffer[cmdIndex++] << 24 ) & 0xFF000000; in LmhpClockSyncOnMcpsIndication()
251 …if( ( mcpsIndication->Buffer[cmdIndex++] & 0x0F ) == LmhpClockSyncState.TimeReqParam.Fields.TokenR… in LmhpClockSyncOnMcpsIndication()
294 LmhpClockSyncState.NbTransmissions = mcpsIndication->Buffer[cmdIndex++] & 0X07; in LmhpClockSyncOnMcpsIndication()
305 .Buffer = LmhpClockSyncState.DataBuffer, in LmhpClockSyncOnMcpsIndication()
366 .Buffer = LmhpClockSyncState.DataBuffer, in LmhpClockSyncAppTimeReq()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/NucleoL073/
Dmain.c122 .Buffer = AppDataBuffer,
380 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
399 .Buffer = NULL, in OnClassChange()
460 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/NucleoL152/
Dmain.c122 .Buffer = AppDataBuffer,
380 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
399 .Buffer = NULL, in OnClassChange()
460 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/NucleoL476/
Dmain.c122 .Buffer = AppDataBuffer,
380 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
399 .Buffer = NULL, in OnClassChange()
460 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/SAMR34/
Dmain.c122 .Buffer = AppDataBuffer,
382 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
401 .Buffer = NULL, in OnClassChange()
462 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/NAMote72/
Dmain.c125 .Buffer = AppDataBuffer,
384 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
404 .Buffer = NULL, in OnClassChange()
504 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/B-L072Z-LRWAN1/
Dmain.c122 .Buffer = AppDataBuffer,
395 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
415 .Buffer = NULL, in OnClassChange()
476 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/SKiM880B/
Dmain.c122 .Buffer = AppDataBuffer,
381 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
401 .Buffer = NULL, in OnClassChange()
475 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/SKiM881AXL/
Dmain.c122 .Buffer = AppDataBuffer,
381 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
401 .Buffer = NULL, in OnClassChange()
475 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()
/loramac-node-latest/src/apps/LoRaMac/periodic-uplink-lpp/SKiM980A/
Dmain.c122 .Buffer = AppDataBuffer,
381 AppLedStateOn = appData->Buffer[0] & 0x01; in OnRxData()
401 .Buffer = NULL, in OnClassChange()
475 CayenneLppCopy( AppData.Buffer ); in PrepareTxFrame()

12