Semtech SX1272 radio chipset driver - ported based on Semtech SX1276 driver.

Dependents:   Elmo-Terminal LoRaWAN-test-app Elmo-Terminal-App LoRaWAN_Semtech_stack ... more

Committer:
Daniel_espo
Date:
Mon Jun 27 11:28:17 2016 +0000
Revision:
12:a3b1b64969b0
Parent:
0:669f3b0e91c8
Merge with Revision 10

Who changed what in which revision?

UserRevisionLine numberNew contents of line
WGorniak 0:669f3b0e91c8 1 /*
WGorniak 0:669f3b0e91c8 2 / _____) _ | |
WGorniak 0:669f3b0e91c8 3 ( (____ _____ ____ _| |_ _____ ____| |__
WGorniak 0:669f3b0e91c8 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
WGorniak 0:669f3b0e91c8 5 _____) ) ____| | | || |_| ____( (___| | | |
WGorniak 0:669f3b0e91c8 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
WGorniak 0:669f3b0e91c8 7 ( C )2014 Semtech
WGorniak 0:669f3b0e91c8 8
WGorniak 0:669f3b0e91c8 9 Description: Interface for the radios, contains the main functions that a radio needs, and 5 callback functions
WGorniak 0:669f3b0e91c8 10
WGorniak 0:669f3b0e91c8 11 License: Revised BSD License, see LICENSE.TXT file include in the project
WGorniak 0:669f3b0e91c8 12
WGorniak 0:669f3b0e91c8 13 Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin
WGorniak 0:669f3b0e91c8 14 */
WGorniak 0:669f3b0e91c8 15 #include "radio.h"
WGorniak 0:669f3b0e91c8 16
WGorniak 0:669f3b0e91c8 17 Radio::Radio( void ( *txDone )( ), void ( *txTimeout ) ( ), void ( *rxDone ) ( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ),
WGorniak 0:669f3b0e91c8 18 void ( *rxTimeout ) ( ), void ( *rxError ) ( ), void ( *fhssChangeChannel ) ( uint8_t channelIndex ), void ( *cadDone ) ( bool channelActivityDetected ) )
WGorniak 0:669f3b0e91c8 19 {
WGorniak 0:669f3b0e91c8 20 this->txDone = txDone;
WGorniak 0:669f3b0e91c8 21 this->txTimeout = txTimeout;
WGorniak 0:669f3b0e91c8 22 this->rxDone = rxDone;
WGorniak 0:669f3b0e91c8 23 this->rxTimeout = rxTimeout;
WGorniak 0:669f3b0e91c8 24 this->rxError = rxError;
WGorniak 0:669f3b0e91c8 25 this->fhssChangeChannel = fhssChangeChannel;
WGorniak 0:669f3b0e91c8 26 this->cadDone = cadDone;
WGorniak 0:669f3b0e91c8 27 }
WGorniak 0:669f3b0e91c8 28