Lines Matching refs:bufItr
31 uint16_t bufItr = 0; in LoRaMacSerializerJoinRequest() local
39 macMsg->Buffer[bufItr++] = macMsg->MHDR.Value; in LoRaMacSerializerJoinRequest()
41 memcpyr( &macMsg->Buffer[bufItr], macMsg->JoinEUI, LORAMAC_JOIN_EUI_FIELD_SIZE ); in LoRaMacSerializerJoinRequest()
42 bufItr += LORAMAC_JOIN_EUI_FIELD_SIZE; in LoRaMacSerializerJoinRequest()
44 memcpyr( &macMsg->Buffer[bufItr], macMsg->DevEUI, LORAMAC_DEV_EUI_FIELD_SIZE ); in LoRaMacSerializerJoinRequest()
45 bufItr += 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()
55 macMsg->BufSize = bufItr; in LoRaMacSerializerJoinRequest()
67 uint16_t bufItr = 0; in LoRaMacSerializerReJoinType1() local
75 macMsg->Buffer[bufItr++] = macMsg->MHDR.Value; in LoRaMacSerializerReJoinType1()
76 macMsg->Buffer[bufItr++] = macMsg->ReJoinType; in LoRaMacSerializerReJoinType1()
78 memcpyr( &macMsg->Buffer[bufItr], macMsg->JoinEUI, LORAMAC_JOIN_EUI_FIELD_SIZE ); in LoRaMacSerializerReJoinType1()
79 bufItr += LORAMAC_JOIN_EUI_FIELD_SIZE; in LoRaMacSerializerReJoinType1()
81 memcpyr( &macMsg->Buffer[bufItr], macMsg->DevEUI, LORAMAC_DEV_EUI_FIELD_SIZE ); in LoRaMacSerializerReJoinType1()
82 bufItr += LORAMAC_DEV_EUI_FIELD_SIZE; in LoRaMacSerializerReJoinType1()
84 macMsg->Buffer[bufItr++] = macMsg->RJcount1 & 0xFF; in LoRaMacSerializerReJoinType1()
85 macMsg->Buffer[bufItr++] = ( macMsg->RJcount1 >> 8 ) & 0xFF; in LoRaMacSerializerReJoinType1()
87 macMsg->Buffer[bufItr++] = macMsg->MIC & 0xFF; in LoRaMacSerializerReJoinType1()
88 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 8 ) & 0xFF; in LoRaMacSerializerReJoinType1()
89 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 16 ) & 0xFF; in LoRaMacSerializerReJoinType1()
90 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 24 ) & 0xFF; in LoRaMacSerializerReJoinType1()
92 macMsg->BufSize = bufItr; in LoRaMacSerializerReJoinType1()
104 uint16_t bufItr = 0; in LoRaMacSerializerReJoinType0or2() local
112 macMsg->Buffer[bufItr++] = macMsg->MHDR.Value; in LoRaMacSerializerReJoinType0or2()
113 macMsg->Buffer[bufItr++] = macMsg->ReJoinType; in LoRaMacSerializerReJoinType0or2()
115 memcpy1( &macMsg->Buffer[bufItr], macMsg->NetID, LORAMAC_NET_ID_FIELD_SIZE ); in LoRaMacSerializerReJoinType0or2()
116 bufItr += LORAMAC_NET_ID_FIELD_SIZE; in LoRaMacSerializerReJoinType0or2()
118 memcpyr( &macMsg->Buffer[bufItr], macMsg->DevEUI, LORAMAC_DEV_EUI_FIELD_SIZE ); in LoRaMacSerializerReJoinType0or2()
119 bufItr += LORAMAC_DEV_EUI_FIELD_SIZE; in LoRaMacSerializerReJoinType0or2()
121 macMsg->Buffer[bufItr++] = macMsg->RJcount0 & 0xFF; in LoRaMacSerializerReJoinType0or2()
122 macMsg->Buffer[bufItr++] = ( macMsg->RJcount0 >> 8 ) & 0xFF; in LoRaMacSerializerReJoinType0or2()
124 macMsg->Buffer[bufItr++] = macMsg->MIC & 0xFF; in LoRaMacSerializerReJoinType0or2()
125 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 8 ) & 0xFF; in LoRaMacSerializerReJoinType0or2()
126 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 16 ) & 0xFF; in LoRaMacSerializerReJoinType0or2()
127 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 24 ) & 0xFF; in LoRaMacSerializerReJoinType0or2()
129 macMsg->BufSize = bufItr; in LoRaMacSerializerReJoinType0or2()
141 uint16_t bufItr = 0; in LoRaMacSerializerData() local
164 macMsg->Buffer[bufItr++] = macMsg->MHDR.Value; 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()
181 macMsg->Buffer[bufItr++] = macMsg->FPort; in LoRaMacSerializerData()
184 memcpy1( &macMsg->Buffer[bufItr], macMsg->FRMPayload, macMsg->FRMPayloadSize ); in LoRaMacSerializerData()
185 bufItr = bufItr + macMsg->FRMPayloadSize; in LoRaMacSerializerData()
187 macMsg->Buffer[bufItr++] = macMsg->MIC & 0xFF; in LoRaMacSerializerData()
188 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 8 ) & 0xFF; in LoRaMacSerializerData()
189 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 16 ) & 0xFF; in LoRaMacSerializerData()
190 macMsg->Buffer[bufItr++] = ( macMsg->MIC >> 24 ) & 0xFF; in LoRaMacSerializerData()
192 macMsg->BufSize = bufItr; in LoRaMacSerializerData()