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

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Tue Jan 10, 2017 5:48 am

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.
Last edited by kolban on Tue Jan 10, 2017 2:25 pm, edited 1 time in total.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

ESP_Sprite
Posts: 9020
Joined: Thu Nov 26, 2015 4:08 am

Re: SPI: Options for spi_transaction_t and the flags parameter

Postby ESP_Sprite » Tue Jan 10, 2017 6:24 am

Huh, you are right. They used to be called SPI_TRANS_* but seemingly the TRANS has fallen off somewhere... Will fix.

Who is online

Users browsing this forum: longo92 and 126 guests