This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: Accessing register values in driverlib

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Good morning,

I am interfacing to MAX31865 RTD chip via SPIA.  I can communicate with the chip properly in that I can program it and read the output values.  But I don't know how to get the results out of SPI receive register.  I am in the driverlib environment.  The easiest would b to use SpiaRegs.SPIRXBUF  but my program does not recognize SpiaRegs even though it is in the global definitions.  It is not obvious to me how to access registers other than the dot format.

Thanks

  • Please reference the c2000ware driverlib SPI examples. Here is  one option from spi_ex1_loopback:

    // Block until data is received and then return it
    rData = SPI_readDataBlockingNonFIFO(mySPI0_BASE);

    <c2000ware>\driverlib\f2837xd\examples\cpu1\spi

    Typically you would do either drivelib or bit field ("dot" format), but not both. It is possible to have both if you like, but need to modify your project. More details can be found on the F2837xD Firmware Development Package User's Guide.

    <c2000ware>/device_support/f2837xd/docs/F2837xD_FRM_EX_UG.pdf