ChibiOS/HAL 9.0.0
flash_descriptor_t Struct Reference

Type of a flash device descriptor. More...

#include <hal_flash.h>

Collaboration diagram for flash_descriptor_t:
Collaboration graph

Data Fields

uint32_t attributes
 Device_attributes.
uint32_t page_size
 Size of write page.
flash_sector_t sectors_count
 Number of sectors in the device.
const flash_sector_descriptor_tsectors
 List of sectors for devices with non-uniform sector sizes.
uint32_t sectors_size
 Size of sectors for devices with uniform sector size.
uint8_t * address
 Flash address if memory mapped or zero.
uint32_t size
 Flash size.

Detailed Description

Type of a flash device descriptor.

Definition at line 136 of file hal_flash.h.

Field Documentation

◆ attributes

uint32_t flash_descriptor_t::attributes

Device_attributes.

Definition at line 140 of file hal_flash.h.

◆ page_size

uint32_t flash_descriptor_t::page_size

Size of write page.

Definition at line 144 of file hal_flash.h.

◆ sectors_count

flash_sector_t flash_descriptor_t::sectors_count

Number of sectors in the device.

Definition at line 148 of file hal_flash.h.

Referenced by flashGetOffsetSector().

◆ sectors

const flash_sector_descriptor_t* flash_descriptor_t::sectors

List of sectors for devices with non-uniform sector sizes.

Note
If NULL then the device has uniform sectors size equal to sector_size.

Definition at line 154 of file hal_flash.h.

Referenced by flashGetOffsetSector(), flashGetSectorOffset(), and flashGetSectorSize().

◆ sectors_size

uint32_t flash_descriptor_t::sectors_size

Size of sectors for devices with uniform sector size.

Note
If zero then the device has non uniform sectors described by the sectors array.

Definition at line 160 of file hal_flash.h.

Referenced by flashGetOffsetSector(), flashGetSectorOffset(), and flashGetSectorSize().

◆ address

uint8_t* flash_descriptor_t::address

Flash address if memory mapped or zero.

Note
Conventionally, non memory mapped devices have address NULL.

Definition at line 165 of file hal_flash.h.

Referenced by flashGetAddressOffset(), and flashGetOffsetAddress().

◆ size

uint32_t flash_descriptor_t::size

Flash size.

Definition at line 169 of file hal_flash.h.

Referenced by flashGetAddressOffset().