Host driver/HAL to build a LoRa Picocell Gateway which communicates through USB with a concentrator board based on Semtech SX1308 multi-channel modem and SX1257/SX1255 RF transceivers.
libloragw/inc/loragw_radio.h@0:102b50f941d0, 2018-04-11 (annotated)
- Committer:
- dgabino
- Date:
- Wed Apr 11 14:38:42 2018 +0000
- Revision:
- 0:102b50f941d0
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dgabino | 0:102b50f941d0 | 1 | /* |
dgabino | 0:102b50f941d0 | 2 | / _____) _ | | |
dgabino | 0:102b50f941d0 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
dgabino | 0:102b50f941d0 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
dgabino | 0:102b50f941d0 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
dgabino | 0:102b50f941d0 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
dgabino | 0:102b50f941d0 | 7 | (C)2017 Semtech-Cycleo |
dgabino | 0:102b50f941d0 | 8 | |
dgabino | 0:102b50f941d0 | 9 | Description: |
dgabino | 0:102b50f941d0 | 10 | Functions used to handle LoRa concentrator radios. |
dgabino | 0:102b50f941d0 | 11 | |
dgabino | 0:102b50f941d0 | 12 | License: Revised BSD License, see LICENSE.TXT file include in the project |
dgabino | 0:102b50f941d0 | 13 | |
dgabino | 0:102b50f941d0 | 14 | */ |
dgabino | 0:102b50f941d0 | 15 | |
dgabino | 0:102b50f941d0 | 16 | #ifndef _LORAGW_RADIO_H |
dgabino | 0:102b50f941d0 | 17 | #define _LORAGW_RADIO_H |
dgabino | 0:102b50f941d0 | 18 | |
dgabino | 0:102b50f941d0 | 19 | /* -------------------------------------------------------------------------- */ |
dgabino | 0:102b50f941d0 | 20 | /* --- DEPENDANCIES --------------------------------------------------------- */ |
dgabino | 0:102b50f941d0 | 21 | |
dgabino | 0:102b50f941d0 | 22 | #include <stdint.h> /* C99 types */ |
dgabino | 0:102b50f941d0 | 23 | #include <stdbool.h> /* bool type */ |
dgabino | 0:102b50f941d0 | 24 | |
dgabino | 0:102b50f941d0 | 25 | /* -------------------------------------------------------------------------- */ |
dgabino | 0:102b50f941d0 | 26 | /* --- PUBLIC CONSTANTS ----------------------------------------------------- */ |
dgabino | 0:102b50f941d0 | 27 | |
dgabino | 0:102b50f941d0 | 28 | #define LGW_REG_SUCCESS 0 |
dgabino | 0:102b50f941d0 | 29 | #define LGW_REG_ERROR -1 |
dgabino | 0:102b50f941d0 | 30 | |
dgabino | 0:102b50f941d0 | 31 | #define SX125x_32MHz_FRAC 15625 /* irreductible fraction for PLL register caculation */ |
dgabino | 0:102b50f941d0 | 32 | |
dgabino | 0:102b50f941d0 | 33 | /* -------------------------------------------------------------------------- */ |
dgabino | 0:102b50f941d0 | 34 | /* --- PUBLIC CONSTANTS ----------------------------------------------------- */ |
dgabino | 0:102b50f941d0 | 35 | |
dgabino | 0:102b50f941d0 | 36 | /* -------------------------------------------------------------------------- */ |
dgabino | 0:102b50f941d0 | 37 | /* --- PUBLIC FUNCTIONS PROTOTYPES ------------------------------------------ */ |
dgabino | 0:102b50f941d0 | 38 | |
dgabino | 0:102b50f941d0 | 39 | int lgw_setup_sx125x(uint8_t rf_chain, uint8_t rf_clkout, bool rf_enable, uint8_t rf_radio_type, uint32_t freq_hz); |
dgabino | 0:102b50f941d0 | 40 | |
dgabino | 0:102b50f941d0 | 41 | #endif |
dgabino | 0:102b50f941d0 | 42 | /* --- EOF ------------------------------------------------------------------ */ |