loragw_sx1250.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. / _____) _ | |
  3. ( (____ _____ ____ _| |_ _____ ____| |__
  4. \____ \| ___ | (_ _) ___ |/ ___) _ \
  5. _____) ) ____| | | || |_| ____( (___| | | |
  6. (______/|_____)_|_|_| \__)_____)\____)_| |_|
  7. (C)2019 Semtech
  8. Description:
  9. Functions used to handle LoRa concentrator SX1250 radios.
  10. License: Revised BSD License, see LICENSE.TXT file include in the project
  11. */
  12. #ifndef _LORAGW_SX1250_H
  13. #define _LORAGW_SX1250_H
  14. /* -------------------------------------------------------------------------- */
  15. /* --- DEPENDANCIES --------------------------------------------------------- */
  16. #include <stdint.h> /* C99 types*/
  17. #include <stdbool.h> /* bool type */
  18. #include "sx1250_defs.h"
  19. #include "config.h" /* library configuration options (dynamically generated) */
  20. /* -------------------------------------------------------------------------- */
  21. /* --- PUBLIC MACROS -------------------------------------------------------- */
  22. /* -------------------------------------------------------------------------- */
  23. /* --- PUBLIC CONSTANTS ----------------------------------------------------- */
  24. /* -------------------------------------------------------------------------- */
  25. /* --- PUBLIC TYPES --------------------------------------------------------- */
  26. /* -------------------------------------------------------------------------- */
  27. /* --- PUBLIC FUNCTIONS PROTOTYPES ------------------------------------------ */
  28. int sx1250_calibrate(uint8_t rf_chain, uint32_t freq_hz);
  29. int sx1250_setup(uint8_t rf_chain, uint32_t freq_hz, bool single_input_mode);
  30. int sx1250_reg_w(sx1250_op_code_t op_code, uint8_t *data, uint16_t size, uint8_t rf_chain);
  31. int sx1250_reg_r(sx1250_op_code_t op_code, uint8_t *data, uint16_t size, uint8_t rf_chain);
  32. #endif
  33. /* --- EOF ------------------------------------------------------------------ */