20 #ifndef MBED_QSPI_API_H 21 #define MBED_QSPI_API_H 56 QSPI_CFG_ADDR_SIZE_16,
57 QSPI_CFG_ADDR_SIZE_24,
58 QSPI_CFG_ADDR_SIZE_32,
123 qspi_status_t qspi_init(
qspi_t *obj, PinName io0, PinName io1, PinName io2, PinName io3, PinName sclk, PinName ssel, uint32_t hz, uint8_t mode);
qspi_status_t qspi_frequency(qspi_t *obj, int hz)
Set the QSPI baud rate.
const PinMap * qspi_master_data0_pinmap(void)
Get the pins that support QSPI DATA0.
struct qspi_command qspi_command_t
QSPI command.
uint8_t dummy_count
Dummy cycles count >
struct qspi_s qspi_t
QSPI HAL object.
const PinMap * qspi_master_ssel_pinmap(void)
Get the pins that support QSPI SSEL.
qspi_status_t qspi_read(qspi_t *obj, const qspi_command_t *command, void *data, size_t *length)
Receive a command and block of data.
uint32_t value
Address value >
enum qspi_alt_size qspi_alt_size_t
Alternative size in bits.
const PinMap * qspi_master_data1_pinmap(void)
Get the pins that support QSPI DATA1.
The parameter is invalid >
qspi_status_t qspi_write(qspi_t *obj, const qspi_command_t *command, const void *data, size_t *length)
Send a command and block of data.
bool disabled
Instruction phase skipped if disabled is set to true >
qspi_status
QSPI return status.
qspi_bus_width_t bus_width
Bus width for the instruction >
qspi_alt_size_t size
Alternative size >
qspi_status_t qspi_command_transfer(qspi_t *obj, const qspi_command_t *command, const void *tx_data, size_t tx_size, void *rx_data, size_t rx_size)
Send a command (and optionally data) and get the response.
enum qspi_address_size qspi_address_size_t
Address size in bits.
qspi_alt_size
Alternative size in bits.
qspi_status_t qspi_init(qspi_t *obj, PinName io0, PinName io1, PinName io2, PinName io3, PinName sclk, PinName ssel, uint32_t hz, uint8_t mode)
Initialize QSPI peripheral.
const PinMap * qspi_master_data2_pinmap(void)
Get the pins that support QSPI DATA2.
const PinMap * qspi_master_sclk_pinmap(void)
Get the pins that support QSPI SCLK.
qspi_address_size_t size
Address size >
enum qspi_bus_width qspi_bus_width_t
QSPI Bus width.
qspi_address_size
Address size in bits.
qspi_bus_width
QSPI Bus width.
uint8_t value
Instruction value >
Function executed sucessfully >
enum qspi_status qspi_status_t
QSPI return status.
const PinMap * qspi_master_data3_pinmap(void)
Get the pins that support QSPI DATA3.
qspi_status_t qspi_free(qspi_t *obj)
Deinitilize QSPI peripheral.