Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

SPI API add void transfer(const void *tx_buffer, void *rx_buffer, size_t count);

Open
#243 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp
Domain
api, embedded-iot

Research direction

Start with api/HardwareSPI.h at the existing single-buffer transfer declaration, then read the linked discussion for the intended SPI API scope. Trace the affected API implementations and verification paths before changing the interface. Done means the two-buffer virtual transfer signature is consistently supported without the temporary-buffer workaround.

Written by the indexing model from the issue text.

Description

enhancement
API component

SPI API

Description

SPI API add

virtual void transfer(const void *tx_buffer, void *rx_buffer, size_t count);

Expand SPI API and Functionality for High Speed Devices

Is this a breaking change?

Unlikely

Additional information

This is really a missing API method, it doesn't make sense to have only a single buffer for both transmit and receive, as DMA hardware normally works in 2 buffers.
The plain old
https://github.com/arduino/ArduinoCore-API/blob/master/api/HardwareSPI.h#L112

  virtual void transfer(void *buf, size_t count) = 0;

forces hacks such as:

  • allocate a temporary buffer
  • do the DMA transfers receiving into the temporary buffer
  • copy that temporary buffer data back into the address pointed by buf
    wasting both memory and cpu cycles
Dominant language
C++
Stars
306
Forks
150
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from arduino/ArduinoCore-API

All issues in arduino/ArduinoCore-API

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.