Correction in RX config error. If REG_LR_PAYLOADLENGTH and REG_LR_PAYLOADMAXLENGTH is not set, the RX is limited to 64 bytes.
Fork of SX1276Lib by
radio/radio.cpp
- Committer:
- GregCr
- Date:
- 2014-10-13
- Revision:
- 11:ce0cdab5137a
- Parent:
- 7:2b555111463f
- Child:
- 13:618826a997e2
File content as of revision 11:ce0cdab5137a:
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| ( C )2014 Semtech Description: Interface for the radios, contains the main functions that a radio needs, and 5 callback functions License: Revised BSD License, see LICENSE.TXT file include in the project Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin */ #include "radio.h" Radio::Radio( void ( *txDone )( ), void ( *txTimeout ) ( ), void ( *rxDone ) ( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ), void ( *rxTimeout ) ( ), void ( *rxError ) ( ), void ( *fhssChangeChannel ) ( uint8_t channelIndex ), void ( *cadDone ) ( bool ChannelActivityDetected ) ) { this->txDone = txDone; this->txTimeout = txTimeout; this->rxDone = rxDone; this->rxTimeout = rxTimeout; this->rxError = rxError; this->fhssChangeChannel = fhssChangeChannel; this->cadDone = cadDone; }