Jump to content
Forum sending old emails Read more... ×
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×