Wirepas SDK
Main Page
Related Pages
Data Structures
Files
Example applications
File List
Globals
external_flash_cfi.h
Go to the documentation of this file.
1
/* Copyright 2026 Wirepas Ltd. All Rights Reserved.
2
*
3
* See file LICENSE.txt for full license details.
4
*
5
*/
6
7
#ifndef EXTERNAL_FLASH_CFI_H_
8
#define EXTERNAL_FLASH_CFI_H_
9
10
#include <stdint.h>
11
12
#include "
external_flash.h
"
13
14
18
enum
flash_ids_e
19
{
21
UNKNOWN
,
22
24
MX25R1635F
25
};
26
27
31
struct
ext_flash_id_t
32
{
34
enum
flash_ids_e
flash_id
;
35
37
uint8_t
man_id
;
38
40
uint8_t
mem_type
;
41
43
uint8_t
mem_capacity
;
44
};
45
46
51
const
struct
ext_flash_id_t
*
ext_flash_get_id
(
void
);
52
53
58
const
flash_info_t
*
ext_flash_get_info
(
void
);
59
60
#endif
// EXTERNAL_FLASH_CFI_H_
external_flash.h
flash_info_t
Flash memory info definition.
Definition
external_flash.h:27
ext_flash_get_id
const struct ext_flash_id_t * ext_flash_get_id(void)
Get external flash memory ID.
ext_flash_id_t::mem_capacity
uint8_t mem_capacity
Definition
external_flash_cfi.h:43
ext_flash_id_t::flash_id
enum flash_ids_e flash_id
Definition
external_flash_cfi.h:34
ext_flash_id_t::mem_type
uint8_t mem_type
Definition
external_flash_cfi.h:40
flash_ids_e
flash_ids_e
Supported flash devices.
Definition
external_flash_cfi.h:19
UNKNOWN
@ UNKNOWN
Definition
external_flash_cfi.h:21
MX25R1635F
@ MX25R1635F
Definition
external_flash_cfi.h:24
ext_flash_get_info
const flash_info_t * ext_flash_get_info(void)
Get external flash memory information.
ext_flash_id_t::man_id
uint8_t man_id
Definition
external_flash_cfi.h:37
ext_flash_id_t
Flash device identification.
Definition
external_flash_cfi.h:32