Part Number: CC2640
Tool/software: TI-RTOS
Hello, I was totally unsure as to which forum to post this into, so hopefully this works.
I'm using a CC2640 to communicate with an accelerometer (ADXL362) over SPI. The communication with the ADXL is very simple, consisting of writing 2 bytes and then reading back a number of bytes or writing 3 bytes. I'm looking in the SPI.h driver, but don't really understand how SPI works on the cc2640. I am thinking I call SPI_transfer(), passing it SPI_Transaction - where transaction.txBuf is set equal to an array of unint_8 where each array member is one byte I am writing? Then does transaction.rxBuf (initialized to an empty unint_8[]) automatically read in the bytes transferred back?
Separately, where do I define the PINs for MOSI, MISO, clck...?
Thanks!
http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL362.pdf




