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@3:80e4a46e676c, 2019-07-15 (annotated)
- Committer:
- steve918
- Date:
- Mon Jul 15 22:07:41 2019 +0000
- Revision:
- 3:80e4a46e676c
- Parent:
- 0:5acc19265529
update readme;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
steve918 | 0:5acc19265529 | 1 | #ifndef __S76S_RXTX_H__ |
steve918 | 0:5acc19265529 | 2 | #define __S76S_RXTX_H__ |
steve918 | 0:5acc19265529 | 3 | |
steve918 | 0:5acc19265529 | 4 | // Executed on Radio Tx Done event |
steve918 | 0:5acc19265529 | 5 | void OnTxDone(void *radio, void *userThisPtr, void *userData); |
steve918 | 0:5acc19265529 | 6 | |
steve918 | 0:5acc19265529 | 7 | // Executed on Radio Rx Done event |
steve918 | 0:5acc19265529 | 8 | void OnRxDone(void *radio, void *userThisPtr, void *userData, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ); |
steve918 | 0:5acc19265529 | 9 | |
steve918 | 0:5acc19265529 | 10 | // Executed on Radio Tx Timeout event |
steve918 | 0:5acc19265529 | 11 | void OnTxTimeout(void *radio, void *userThisPtr, void *userData); |
steve918 | 0:5acc19265529 | 12 | |
steve918 | 0:5acc19265529 | 13 | // Executed on Radio Rx Timeout event |
steve918 | 0:5acc19265529 | 14 | void OnRxTimeout(void *radio, void *userThisPtr, void *userData); |
steve918 | 0:5acc19265529 | 15 | |
steve918 | 0:5acc19265529 | 16 | // Executed on Radio Rx Error event |
steve918 | 0:5acc19265529 | 17 | void OnRxError(void *radio, void *userThisPtr, void *userData); |
steve918 | 0:5acc19265529 | 18 | |
steve918 | 0:5acc19265529 | 19 | // Executed on Radio Fhss Change Channel event |
steve918 | 0:5acc19265529 | 20 | void OnFhssChangeChannel(void *radio, void *userThisPtr, void *userData, uint8_t channelIndex); |
steve918 | 0:5acc19265529 | 21 | |
steve918 | 0:5acc19265529 | 22 | //Executed on CAD Done event |
steve918 | 0:5acc19265529 | 23 | void OnCadDone(void *radio, void *userThisPtr, void *userData); |
steve918 | 0:5acc19265529 | 24 | |
steve918 | 0:5acc19265529 | 25 | #endif // __MAIN_H__ |