ChibiOS/HAL  6.1.0

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. More...
 
uint32_t page_size
 Size of write page. More...
 
flash_sector_t sectors_count
 Number of sectors in the device. More...
 
const flash_sector_descriptor_tsectors
 List of sectors for devices with non-uniform sector sizes. More...
 
uint32_t sectors_size
 Size of sectors for devices with uniform sector size. More...
 
flash_offset_t address
 Flash address if memory mapped or zero. More...
 

Detailed Description

Type of a flash device descriptor.

Definition at line 107 of file hal_flash.h.

Field Documentation

uint32_t flash_descriptor_t::attributes

Device_attributes.

Definition at line 111 of file hal_flash.h.

uint32_t flash_descriptor_t::page_size

Size of write page.

Definition at line 115 of file hal_flash.h.

flash_sector_t flash_descriptor_t::sectors_count

Number of sectors in the device.

Definition at line 119 of file hal_flash.h.

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 125 of file hal_flash.h.

Referenced by flashGetSectorOffset(), and flashGetSectorSize().

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 131 of file hal_flash.h.

Referenced by flashGetSectorOffset(), and flashGetSectorSize().

flash_offset_t flash_descriptor_t::address

Flash address if memory mapped or zero.

Note
Conventionally, non memory mapped devices have address zero.

Definition at line 136 of file hal_flash.h.