Data Fields
dfu_spi_flash_func_t Struct Reference
SYSTEM » Device Firmware Update » Structures

SPI used functions config definition. More...

`#include <gr55xx_dfu.h>`

## Data Fields
void(* | dfu_spi_flash_init )(uint8_t *p_data)
uint32_t(* | dfu_spi_flash_read )(uint32_t addr, uint8_t *buf, uint32_t size)
uint32_t(* | dfu_spi_flash_write )(uint32_t addr, uint8_t *buf, uint32_t size)
bool(* | dfu_spi_flash_erase )(uint32_t addr, uint32_t size)
bool(* | dfu_spi_flash_erase_chip )(void)
void(* | dfu_spi_flash_get_info )(uint32_t *id, uint32_t *size)

## Detailed Description

SPI used functions config definition.

## Field Documentation

## ◆ dfu_spi_flash_erase

bool(* dfu_spi_flash_func_t::dfu_spi_flash_erase) (uint32_t addr, uint32_t size)

The function is used to erase external flash by address.

## ◆ dfu_spi_flash_erase_chip

bool(* dfu_spi_flash_func_t::dfu_spi_flash_erase_chip) (void)

The function is used to erase exteral flash chip.

## ◆ dfu_spi_flash_get_info

void(* dfu_spi_flash_func_t::dfu_spi_flash_get_info) (uint32_t *id, uint32_t *size)

The function is used to get external flash id and size.

## ◆ dfu_spi_flash_init

void(* dfu_spi_flash_func_t::dfu_spi_flash_init) (uint8_t *p_data)

The function is used to config flash spi.

## ◆ dfu_spi_flash_read

uint32_t(* dfu_spi_flash_func_t::dfu_spi_flash_read) (uint32_t addr, uint8_t *buf, uint32_t size)

The function is used to read external flash .

## ◆ dfu_spi_flash_write

uint32_t(* dfu_spi_flash_func_t::dfu_spi_flash_write) (uint32_t addr, uint8_t *buf, uint32_t size)

The function is used to write external flash.

The documentation for this struct was generated from the following file:

- gr55xx_dfu.h