Coder Social home page Coder Social logo

sudomaker / sx126x_driver Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 7.0 93 KB

Portable driver for Semtech SX126x series

License: GNU Lesser General Public License v3.0

CMake 0.36% C++ 99.64%
cpp-library portable-library lora semtech sx126x sx1262 sx1268 sx1261

sx126x_driver's Introduction

sx126x_driver

Portable driver for Semtech SX126x series

Supported chips: SX1261, SX1262, SX1268.

Requirements

  • C++14

Features

  • Easy to use
  • Should work on nearly all platforms
  • Multiple instances
  • No macros, no global scope shit, and thus no collisions with other libs

Usage

Write your own hardware abstraction layer (HAL) class and implement the Hal* functions below:

  • HalGpioRead
  • HalGpioWrite
  • HalSpiTransfer - This should take care of chip select signal

It's very simple. Right?

And these if you have RF switches / external RF PA (optional):

  • HalPreTx - Called before a TX operation
  • HalPreRx - Called before a RX operation
  • HalPostTx - Called when (1) TX_DONE (2) TX_TIMEOUT (3) before a RX operation
  • HalPostRx - Called when (1) RX_TIMEOUT (2) before a TX operation

Enable DIOs & process GPIO interrupts by yourself. When DIO fires, simply call SX126x::ProcessIrqs(). Everything is thread-safe.

That's all. The code is well documented. Most usages are exactly same as the SX1280 mbed driver.

License

LGPLv3

Acknowledgements

This library is based on the SX126x mbed driver by Semtech S.A. See LICENSE-SEMTECH.txt for details.

sx126x_driver's People

Contributors

jf002 avatar reimunotmoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sx126x_driver's Issues

Help needed with examples

Thanks for the wonderful project.
Is there a sample project with TX and RX examples that I can refer to?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.