4 //#if defined( A_LOCATOR_IS_CONNECTED) && ( A_LOCATOR_IS_CONNECTED == YES)
7 void initSpi() ; // initialise SPI (with only 1 slave)
8 uint8_t spiSend(uint8_t value
);
9 uint8_t loraSingleTransfer(uint8_t reg
, uint8_t value
) ; // only for internal use; Write and read one LORA register
10 void loraWriteRegister(uint8_t reg
, uint8_t value
) ; // write a LORA register, discard the read value
11 uint8_t loraReadRegister(uint8_t reg
) ; // Read a LORA register; send a dummy value because it is just a read
12 void loraReadRegisterBurst( uint8_t reg
, uint8_t* dataIn
, uint8_t numBytes
) ;
13 void loraWriteRegisterBurst( uint8_t reg
, uint8_t* dataOut
, uint8_t numBytes
) ;
16 void loraSetup() ; // parameters that are set only once
17 void loraTxOn(uint8_t txPower
);
20 void loraReadPacket() ; // read a packet with 2 bytes ; packetType and TxPower
21 void loraFillTxPacket() ;