Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

82 lines
1.9 KiB

  1. /*!
  2. * \file lr1110-board.h
  3. *
  4. * \brief Target board LR1110 driver implementation
  5. *
  6. * \copyright Revised BSD License, see section \ref LICENSE.
  7. *
  8. * \code
  9. * ______ _
  10. * / _____) _ | |
  11. * ( (____ _____ ____ _| |_ _____ ____| |__
  12. * \____ \| ___ | (_ _) ___ |/ ___) _ \
  13. * _____) ) ____| | | || |_| ____( (___| | | |
  14. * (______/|_____)_|_|_| \__)_____)\____)_| |_|
  15. * (C)2013-2017 Semtech
  16. *
  17. * \endcode
  18. *
  19. * \author Miguel Luis ( Semtech )
  20. *
  21. * \author Gregory Cristian ( Semtech )
  22. */
  23. #ifndef __LR1110_BOARD_H__
  24. #define __LR1110_BOARD_H__
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #include <stdint.h>
  29. #include <stdbool.h>
  30. #include "lr1110.h"
  31. /*!
  32. * \brief Initializes the radio I/Os pins interface
  33. */
  34. void lr1110_board_init_io( const void* context );
  35. /*!
  36. * \brief De-initializes the radio I/Os pins interface.
  37. *
  38. * \remark Useful when going in MCU low power modes
  39. */
  40. void lr1110_board_deinit_io( const void* context );
  41. /*!
  42. * \brief Initializes the radio debug pins.
  43. */
  44. void lr1110_board_init_dbg_io( const void* context );
  45. /*!
  46. * \brief Sets the radio output power.
  47. *
  48. * \param [IN] power Sets the RF output power
  49. */
  50. void lr1110_board_set_rf_tx_power( const void* context, int8_t power );
  51. /*!
  52. * \brief Gets the Defines the time required for the TCXO to wakeup [ms].
  53. *
  54. * \retval time Board TCXO wakeup time in ms.
  55. */
  56. uint32_t lr1110_board_get_tcxo_wakeup_time( const void* context );
  57. /*!
  58. * \brief Gets current state of DIO1 pin state.
  59. *
  60. * \retval state DIO1 pin current state.
  61. */
  62. uint32_t lr1110_get_dio_1_pin_state( const void* context );
  63. /*!
  64. * \brief Initializes the radio driver
  65. */
  66. void lr1110_board_init( const void* context, lr1110_dio_irq_handler dio_irq );
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif // __LR1110_BOARD_H__