UBlox M10 Support
[openXsensor.git] / locator_receiver / lora.h
blob0bd51c789a3b5557f1035cfe3b34726b6e0f4a15
1 #ifndef OXS_LORA_h
2 #define OXS_LORA_h
4 //#if defined( A_LOCATOR_IS_CONNECTED) && ( A_LOCATOR_IS_CONNECTED == YES)
5 #include "Arduino.h"
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) ;
15 uint8_t loraHandle();
16 void loraSetup() ; // parameters that are set only once
17 void loraTxOn(uint8_t txPower);
18 void loraRxOn() ;
19 void loraInSleep() ;
20 void loraReadPacket() ; // read a packet with 2 bytes ; packetType and TxPower
21 void loraFillTxPacket() ;
25 //#endif
26 #endif