Jump to content
Sign in to follow this  
JRDavisUF

SPI.transfer

Recommended Posts

I notice in the online documentation for SPI.transfer (https://energia.nu/guide/libraries/spi/spi_transfer/)

that 3 prototypes are provided, however in the actual source for my msp432, there are 4 (per SPI.h):

        uint8_t transfer(uint8_t);
        uint8_t transfer(uint8_t, uint8_t);
        uint8_t transfer(uint8_t, uint8_t, uint8_t);
        uint8_t *transfer(uint8_t *, size_t);                <===================== Missing in online docs

The missing one is the multi-byte transfer.  Arduino documents a similar function in their docs so I assume it's one that is meant to exist (please don't get rid of it :) ).

The main reason I mention it is that because there is another two argument prototype.  So it's a bit confusing when trying to debug if one gets errors related to the first prototype (due to a forgotten &), when I was trying to use the second.

Also, but perhaps I missed it, I don't see any reference to SPI1 in the documentation.  Related to this, are there any plans to provide easy access to the other SPIs?

jrd

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...