sx125x_com.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. / _____) _ | |
  3. ( (____ _____ ____ _| |_ _____ ____| |__
  4. \____ \| ___ | (_ _) ___ |/ ___) _ \
  5. _____) ) ____| | | || |_| ____( (___| | | |
  6. (______/|_____)_|_|_| \__)_____)\____)_| |_|
  7. (C)2019 Semtech
  8. Description:
  9. Functions used to handle LoRa concentrator SX1255/SX1257 radios SPI access.
  10. License: Revised BSD License, see LICENSE.TXT file include in the project
  11. */
  12. #ifndef _SX125X_COM_H
  13. #define _SX125X_COM_H
  14. /* -------------------------------------------------------------------------- */
  15. /* --- DEPENDANCIES --------------------------------------------------------- */
  16. #include <stdint.h> /* C99 types */
  17. #include <stdbool.h> /* bool type */
  18. #include "loragw_com.h"
  19. /* -------------------------------------------------------------------------- */
  20. /* --- INTERNAL SHARED TYPES ------------------------------------------------ */
  21. /* -------------------------------------------------------------------------- */
  22. /* --- PUBLIC MACROS -------------------------------------------------------- */
  23. /* -------------------------------------------------------------------------- */
  24. /* --- PUBLIC CONSTANTS ----------------------------------------------------- */
  25. /* -------------------------------------------------------------------------- */
  26. /* --- PUBLIC CONSTANTS ----------------------------------------------------- */
  27. /* -------------------------------------------------------------------------- */
  28. /* --- PUBLIC FUNCTIONS PROTOTYPES ------------------------------------------ */
  29. int sx125x_com_r(lgw_com_type_t com_type, void *com_target, uint8_t spi_mux_target, uint8_t address, uint8_t *data);
  30. int sx125x_com_w(lgw_com_type_t com_type, void *com_target, uint8_t spi_mux_target, uint8_t address, uint8_t data);
  31. #endif
  32. /* --- EOF ------------------------------------------------------------------ */