117 bool readStatus(uint8_t &status1, uint8_t &status2);
196 bool readBuffer(uint32_t addr, uint8_t *buf, uint32_t len);
212 bool writeBuffer(uint32_t addr,
const uint8_t *data, uint32_t len);
215 QSPI_HandleTypeDef *_hqspi;
218 uint32_t _qspiTimeoutMs;
227 HAL_StatusTypeDef runCommand(uint8_t instruction);
238 HAL_StatusTypeDef readCommand(uint8_t instruction, uint8_t *resp, uint32_t len);
249 HAL_StatusTypeDef writeCommand(uint8_t instruction,
const uint8_t *data, uint32_t len);
259 HAL_StatusTypeDef eraseCommand(uint8_t instruction, uint32_t addr);
266 HAL_StatusTypeDef writeEnable();
bool writeBuffer(uint32_t addr, const uint8_t *data, uint32_t len)
Writes len bytes starting at addr, paging internally at 256-byte boundaries as the chip's Page Progra...
bool eraseRange(uint32_t addr, uint32_t len)
Erases every sector spanned by [addr, addr + len), computing the sector boundaries automatically – th...
: Header for main.c file. This file contains the common defines of the application.