Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SX1276GenericLib by
Diff: radio/radio.h
- Revision:
- 51:aef3234bcb71
- Parent:
- 50:43f7160e869c
- Child:
- 53:6d3adad59633
--- 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.