Datasheet

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.