MCPcopy Create free account
hub / github.com/PricelessToolkit/MailBoxGuard / beginPacket

Method beginPacket

Code/Arduino_libraries/LoRa/LoRa.cpp:162–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162int LoRaClass::beginPacket(int implicitHeader)
163{
164 if (isTransmitting()) {
165 return 0;
166 }
167
168 // put in standby mode
169 idle();
170
171 if (implicitHeader) {
172 implicitHeaderMode();
173 } else {
174 explicitHeaderMode();
175 }
176
177 // reset FIFO address and paload length
178 writeRegister(REG_FIFO_ADDR_PTR, 0);
179 writeRegister(REG_PAYLOAD_LENGTH, 0);
180
181 return 1;
182}
183
184int LoRaClass::endPacket(bool async)
185{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected