I made a fork of a generic library that was developed with support for RFM95 LoRa module that I found online. I Made a few changes and made it compatible with hardware limitations of the MAX32620FTHR and MAX32630FTHR module.
Dependents: MAX326xxFTHR_LoRa_RFM95 MAX326xxFTHR_LoRa_PingPong MAX326xxFTHR_RFM95_LoRa_PingPong MAX326xxFTHR_LoRa_RFM95_PingPong_Example ... more
Fork of SX1276GenericLib by
Diff: radio/radio.h
- Revision:
- 51:aef3234bcb71
- Parent:
- 50:43f7160e869c
- Child:
- 53:6d3adad59633
diff -r 43f7160e869c -r aef3234bcb71 radio/radio.h --- a/radio/radio.h Tue May 16 17:51:21 2017 +0200 +++ b/radio/radio.h Wed May 17 15:40:13 2017 +0200 @@ -353,7 +353,7 @@ * @param [IN]: buffer Header pointer * @param [IN]: size Header size */ - virtual void Send( uint8_t *buffer, uint8_t size, uint8_t *header = NULL, uint8_t hsize = 0) = 0; + virtual void Send( void *buffer, int16_t size, void *header = NULL, int16_t hsize = 0) = 0; /*! * @brief Sets the radio in sleep mode @@ -430,7 +430,7 @@ * @param [IN] buffer Buffer containing the new register's values * @param [IN] size Number of registers to be written */ - virtual void Write( uint8_t addr, uint8_t *buffer, uint8_t size ) = 0; + virtual void Write( uint8_t addr, void *buffer, uint8_t size ) = 0; /*! * @brief Reads multiple radio registers starting at address @@ -439,7 +439,7 @@ * @param [OUT] buffer Buffer where to copy the registers data * @param [IN] size Number of registers to be read */ - virtual void Read ( uint8_t addr, uint8_t *buffer, uint8_t size ) = 0; + virtual void Read ( uint8_t addr, void *buffer, uint8_t size ) = 0; /*! * @brief Writes the buffer contents to the Radio FIFO @@ -447,7 +447,7 @@ * @param [IN] buffer Buffer containing data to be put on the FIFO. * @param [IN] size Number of bytes to be written to the FIFO */ - virtual void WriteFifo( uint8_t *buffer, uint8_t size ) = 0; + virtual void WriteFifo( void *buffer, uint8_t size ) = 0; /*! * @brief Reads the contents of the Radio FIFO @@ -455,7 +455,7 @@ * @param [OUT] buffer Buffer where to copy the FIFO read data. * @param [IN] size Number of bytes to be read from the FIFO */ - virtual void ReadFifo( uint8_t *buffer, uint8_t size ) = 0; + virtual void ReadFifo( void *buffer, uint8_t size ) = 0; /*! * @brief Sets the maximum payload length.