SX1276GenericLib to support sx1276 bassed LoRa modules, including HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules
Dependents: DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more
Fork of SX1276Lib by
Diff: sx1276/sx1276.h
- Revision:
- 51:aef3234bcb71
- Parent:
- 50:43f7160e869c
- Child:
- 53:6d3adad59633
diff -r 43f7160e869c -r aef3234bcb71 sx1276/sx1276.h --- a/sx1276/sx1276.h Tue May 16 17:51:21 2017 +0200 +++ b/sx1276/sx1276.h Wed May 17 15:40:13 2017 +0200 @@ -357,7 +357,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); + virtual void Send(void *buffer, int16_t size, void *header = NULL, int16_t hsize = 0); /*! * @brief Sets the radio in sleep mode @@ -435,7 +435,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 @@ -444,7 +444,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 SX1276 FIFO @@ -452,7 +452,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 SX1276 FIFO @@ -460,7 +460,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 Resets the SX1276 */