Basic RX/TX example, this is the firmware that LoDev S76S comes with initially.

Dependencies:   mbed SX1276RonothLib

LoDev RX/TX Example

Transmit

By default LoDev comes on in receive mode. To switch to transmit mode, connect PC2 to 3.3v and press the reset switch. In TX mode the blue LED is normally off and blinks on briefly when transmitting.

Receive

When in RX mode the LED is normally on and turns off briefly when receiving a packet. This is the default mode.

main.h

Committer:
steve918
Date:
2019-07-15
Revision:
3:80e4a46e676c
Parent:
0:5acc19265529

File content as of revision 3:80e4a46e676c:

#ifndef __S76S_RXTX_H__
#define __S76S_RXTX_H__

// Executed on Radio Tx Done event
void OnTxDone(void *radio, void *userThisPtr, void *userData);

// Executed on Radio Rx Done event
void OnRxDone(void *radio, void *userThisPtr, void *userData, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr );

// Executed on Radio Tx Timeout event
void OnTxTimeout(void *radio, void *userThisPtr, void *userData);

// Executed on Radio Rx Timeout event
void OnRxTimeout(void *radio, void *userThisPtr, void *userData);

// Executed on Radio Rx Error event
void OnRxError(void *radio, void *userThisPtr, void *userData);

// Executed on Radio Fhss Change Channel event
void OnFhssChangeChannel(void *radio, void *userThisPtr, void *userData, uint8_t channelIndex);

//Executed on CAD Done event
void OnCadDone(void *radio, void *userThisPtr, void *userData);

#endif // __MAIN_H__