Loading...
Searching...
No Matches
flash.h
Go to the documentation of this file.
1
7
14
15// ALLOW FORMATTING
16#ifndef FLASH_H
17#define FLASH_H
18
19#include "stdint.h"
20
21typedef struct Flash {
23 long pageCount;
24 void (*erase)(struct Flash *);
25 void (*readPage)(struct Flash *, uint32_t, volatile uint8_t *);
26 void (*writePage)(struct Flash *, uint32_t, uint8_t *);
27} Flash_t;
28
30#endif
int pageSize
Number of bytes per page.
Definition flash.h:22
long pageCount
Total number of pages.
Definition flash.h:23
void(* readPage)(struct Flash *, uint32_t, volatile uint8_t *)
Read page method.
Definition flash.h:25
void(* erase)(struct Flash *)
Chip erase method.
Definition flash.h:24
void(* writePage)(struct Flash *, uint32_t, uint8_t *)
Write page method.
Definition flash.h:26