Datasheet
Table Of Contents
- Table of Contents
- List of Figures
- List of Tables
- 1. Introduction
- 2. Pin Connections
- 3. Specifications
- 4. RF Front End Interface
- 5. Power Distribution
- 6. Clocking
- 7. Detection Engine - Modems
- 8. Digital Interface and Control
- 9. Application Programming Interface
- 10. Application Information
- 11. Packaging Information
- Glossary
SX1302
Datasheet Rev 1.0
DS.SX1302.W.APP June 2019
23 of 31
www.semtech.com
9. Application Programming Interface
Through SPI interface, the SX1302 is fully controlled by its host, whether it is a MCU (smal-size cell) or a Linux MPU for
higher-end gateways.
Semtech fully abstracts the complexity of the SX1302 and its companions chips by delivering two libraries as open-source
code:
• SX1302 HAL (Hardware Abstraction layer), incorporating all of the required code to initialize, calibrate, run and
exchange radio packets with the gateway board
• SX1302 Packet Forwarder, which is a simple example application of how a gateway can be connected to a host. The
host, in a LoRaWAN network, is typically cloud-based, but can also be co-located with the gateway in case of
small-scale networks
All of these open-sourced libraries are available from Github on https://github.com/Lora-net/lora_gateway.
9.1 Globally Unique EUI
The SX1302 chip is serialized in production, with a globally unique 64-bit number. It may be used by the application for
identification and security purposes.
This 64-bit EUI can be retrieved with the function lgw_get_eui() available in the HAL library.