sx1250_spi.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 _SX1250_SPI_H
  13. #define _SX1250_SPI_H
  14. /* -------------------------------------------------------------------------- */
  15. /* --- DEPENDANCIES --------------------------------------------------------- */
  16. #include <stdint.h> /* C99 types*/
  17. #include "sx1250_defs.h"
  18. #include "config.h" /* library configuration options (dynamically generated) */
  19. /* -------------------------------------------------------------------------- */
  20. /* --- PUBLIC MACROS -------------------------------------------------------- */
  21. /* -------------------------------------------------------------------------- */
  22. /* --- PUBLIC CONSTANTS ----------------------------------------------------- */
  23. /* -------------------------------------------------------------------------- */
  24. /* --- PUBLIC TYPES --------------------------------------------------------- */
  25. /* -------------------------------------------------------------------------- */
  26. /* --- PUBLIC FUNCTIONS PROTOTYPES ------------------------------------------ */
  27. int sx1250_spi_w(void *com_target, uint8_t spi_mux_target, sx1250_op_code_t op_code, uint8_t *data, uint16_t size);
  28. int sx1250_spi_r(void *com_target, uint8_t spi_mux_target, sx1250_op_code_t op_code, uint8_t *data, uint16_t size);
  29. #endif
  30. /* --- EOF ------------------------------------------------------------------ */