Skip to content

Commit

Permalink
Use using keyword to fix warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
  • Loading branch information
Hadatko committed Oct 24, 2023
1 parent 1b6c2ef commit 42c8cb2
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 12 deletions.
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_dspi_master_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class DspiMasterTransport : public FramedTransport
uint32_t m_srcClock_Hz; /*!< Source clock of DSPI peripheral used in this transport layer */

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from DSPI peripheral.
*
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_dspi_slave_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class DspiSlaveTransport : public FramedTransport
#endif

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from DSPI peripheral.
*
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_i2c_slave_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class I2cSlaveTransport : public FramedTransport
#endif

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from I2C peripheral.
*
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_lpi2c_slave_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class LPI2cSlaveTransport : public FramedTransport
#endif

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from LPI2C peripheral.
*
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_lpspi_slave_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class LPSpiSlaveTransport : public FramedTransport
#endif

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from LPSPI peripheral.
*
Expand Down
11 changes: 7 additions & 4 deletions erpc_c/transports/erpc_rpmsg_tty_rtos_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ class RPMsgTTYRTOSTransport : public FramedTransport, public RPMsgBase
rpmsg_queue_handle m_rpmsg_queue; /*!< Handle of RPMsg queue. */
struct rpmsg_lite_endpoint *m_rpmsg_ept; /*!< Pointer to RPMsg Lite Endpoint structure. */

using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Adds ability to framed transport to overwrite MessageBuffer when sending data.
* @brief Adds ability to framed transport to overwrite MessageBuffer when receiving data.
*
* Usually we don't want to do that.
*
Expand All @@ -111,10 +114,10 @@ class RPMsgTTYRTOSTransport : public FramedTransport, public RPMsgBase
*
* @return erpc_status_t kErpcStatus_Success when it finished successful otherwise error.
*/
virtual erpc_status_t underlyingSend(MessageBuffer *message, uint32_t size, uint32_t offset) override;
virtual erpc_status_t underlyingReceive(MessageBuffer *message, uint32_t size, uint32_t offset) override;

/*!
* @brief Adds ability to framed transport to overwrite MessageBuffer when receiving data.
* @brief Adds ability to framed transport to overwrite MessageBuffer when sending data.
*
* Usually we don't want to do that.
*
Expand All @@ -124,7 +127,7 @@ class RPMsgTTYRTOSTransport : public FramedTransport, public RPMsgBase
*
* @return erpc_status_t kErpcStatus_Success when it finished successful otherwise error.
*/
virtual erpc_status_t underlyingReceive(MessageBuffer *message, uint32_t size, uint32_t offset) override;
virtual erpc_status_t underlyingSend(MessageBuffer *message, uint32_t size, uint32_t offset) override;

/*!
* @brief This function read data.
Expand Down
19 changes: 11 additions & 8 deletions erpc_c/transports/erpc_serial_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,27 +65,30 @@ class SerialTransport : public FramedTransport
erpc_status_t init(uint8_t vtime, uint8_t vmin);

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Write data to Serial peripheral.
* @brief Receive data from Serial peripheral.
*
* @param[in] data Buffer to send.
* @param[in] size Size of data to send.
* @param[inout] data Preallocated buffer for receiving data.
* @param[in] size Size of data to read.
*
* @retval kErpcStatus_ReceiveFailed Serial failed to receive data.
* @retval kErpcStatus_Success Successfully received all data.
*/
virtual erpc_status_t underlyingSend(const uint8_t *data, uint32_t size) override;
virtual erpc_status_t underlyingReceive(uint8_t *data, uint32_t size) override;

/*!
* @brief Receive data from Serial peripheral.
* @brief Write data to Serial peripheral.
*
* @param[inout] data Preallocated buffer for receiving data.
* @param[in] size Size of data to read.
* @param[in] data Buffer to send.
* @param[in] size Size of data to send.
*
* @retval kErpcStatus_ReceiveFailed Serial failed to receive data.
* @retval kErpcStatus_Success Successfully received all data.
*/
virtual erpc_status_t underlyingReceive(uint8_t *data, uint32_t size) override;
virtual erpc_status_t underlyingSend(const uint8_t *data, uint32_t size) override;

private:
int m_serialHandle; /*!< Serial handle id. */
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_spi_master_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ class SpiMasterTransport : public FramedTransport
uint32_t m_srcClock_Hz; /*!< Source clock of SPI peripheral used in this transport layer */

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from SPI peripheral.
*
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_spi_slave_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ class SpiSlaveTransport : public FramedTransport
#endif

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from SPI peripheral.
*
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_spidev_master_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class SpidevMasterTransport : public FramedTransport
uint32_t m_speed_Hz; /*!< SPI clock speed in Hz. */

private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from SPI peripheral.
*
Expand Down
4 changes: 4 additions & 0 deletions erpc_c/transports/erpc_tcp_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ class TCPTransport : public FramedTransport
Thread m_serverThread; /*!< Pointer to server thread. */
bool m_runServer; /*!< Thread is executed while this is true. */

using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;


/*!
* @brief This function connect client to the server.
*
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_uart_cmsis_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ class UartTransport : public FramedTransport
Semaphore m_txSemaphore; /*!< Semaphore used by RTOS to block task until the sending is not complete */
#endif
private:
using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from UART peripheral.
*
Expand Down
3 changes: 3 additions & 0 deletions erpc_c/transports/erpc_usb_cdc_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ class UsbCdcTransport : public FramedTransport
uint8_t *m_usbRingBuffer;
uint32_t m_usbRingBufferLength;

using FramedTransport::underlyingReceive;
using FramedTransport::underlyingSend;

/*!
* @brief Receive data from USB CDC peripheral.
*
Expand Down

0 comments on commit 42c8cb2

Please sign in to comment.