Semtech SX1272 radio chipset driver - ported based on Semtech SX1276 driver.
Dependents: Elmo-Terminal LoRaWAN-test-app Elmo-Terminal-App LoRaWAN_Semtech_stack ... more
radio/radio.cpp@0:669f3b0e91c8, 2015-09-17 (annotated)
- Committer:
- WGorniak
- Date:
- Thu Sep 17 14:42:20 2015 +0200
- Revision:
- 0:669f3b0e91c8
first commit
Who changed what in which revision?
User | Revision | Line number | New 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 |