group::QSPI

This module implements a hardware Quad SPI master.

Details

defineQSPI_VERSION


defineQSPI_IOC_IDENT_CHAR


defineI_QSPI_GETVERSION


defineI_QSPI_GETINFO


defineI_QSPI_SETATTR


defineI_QSPI_SETACTION


defineI_QSPI_EXECCOMMAND


defineI_QSPI_TOTAL


enumqspi_flag_t

  • QSPI_FLAG_SET_MASTER Configure the QSPI as master
  • QSPI_FLAG_IS_CLOCK_MODE_0 Clock goes low while nCS is released, else high
  • QSPI_FLAG_IS_CLOCK_MODE_3 Clock goes high while nCS is released, else low
  • QSPI_FLAG_IS_FLASH_ID_2 use flash 2, else 1
  • QSPI_FLAG_IS_ADDRESS_8_BITS 8-bit address, default 32
  • QSPI_FLAG_IS_ADDRESS_16_BITS 16-bit address, default 32
  • QSPI_FLAG_IS_ADDRESS_24_BITS 24-bit address, default 32
  • QSPI_FLAG_IS_ADDRESS_32_BITS 24-bit address, default 32
  • QSPI_FLAG_IS_COMMAND_DUAL Use 2 lines for commands (default is 1 line)
  • QSPI_FLAG_IS_COMMAND_QUAD Use 4 lines for commands (default is 1 line)
  • QSPI_FLAG_IS_DATA_DUAL Use 2 lines for data
  • QSPI_FLAG_IS_DATA_QUAD Use 4 lines for data
  • QSPI_FLAG_EXECUTE_COMMAND Use with qspi_command_t in qspi_attr_t
  • QSPI_FLAG_IS_COMMAND_READ Command reads data from device
  • QSPI_FLAG_IS_COMMAND_WRITE Command write data to device


date: “2019-06-27” layout: post title: struct::qspi_info_t katex: true

categories: struct

Methods

Details

public u32o_flags

Bitmask of supported flags


public u32o_events

Bitmask of supported events


public u32resd



date: “2019-06-27” layout: post title: struct::qspi_pin_assignment_t katex: true

categories: struct

Methods

Details

publicmcu_pin_tdata

Up to four data lines


publicmcu_pin_tsck

Serial clock pin


publicmcu_pin_tcs

Chip select pin



date: “2019-06-27” layout: post title: struct::qspi_command_t katex: true

categories: struct

Methods

Details

public u32o_flags

Flags that affect the command


public u16opcode

The opcode to send to the device


public u16dummy_size

The number of dummy bytes to send


public u32address

If an address is used in the command it is assigned here.


public u32data_size

The number of data bytes to read or write


public u8data

The location of the data that is read or written



date: “2019-06-27” layout: post title: struct::qspi_attr_t katex: true

categories: struct

Methods

Details

public u32o_flags

Flag bitmask


publicqspi_pin_assignment_tpin_assignment

Pin Assignment


public u32freq

Target operating frequency


public u32resd


X

Thanks for Coming!

Subscribe to news and updates