Page 1 of 1

[Answered] SPI: Options for spi_transaction_t and the flags parameter

Posted: Tue Jan 10, 2017 5:48 am
by kolban
While studying the SPI documentation, I am looking at the "spi_transaction_t" data structure. It has a field called "flags" that is documented as "Bitwise OR of SPI_TRANS_* flags". However, I am unable to find any definition of these flags. The documentation I am looking at is:

http://esp-idf.readthedocs.io/en/latest ... n_t5flagsE

If I were to take a wild guess, I would say that the possible values are:
  • SPI_MODE_DIO
  • SPI_MODE_QIO
  • SPI_MODE_DIOQIO_ADDR
  • SPI_USE_RXDATA
  • SPI_USE_TXDATA
however these don't have the SPI_TRANS_* prefix.

Re: SPI: Options for spi_transaction_t and the flags parameter

Posted: Tue Jan 10, 2017 6:24 am
by ESP_Sprite
Huh, you are right. They used to be called SPI_TRANS_* but seemingly the TRANS has fallen off somewhere... Will fix.