Out-of-office display, GFX
Main Page
Modules
Classes
Files
Examples
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Groups
m29w320FlashDriver.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2013 Andreas Misje
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
25
#ifndef M29W320FLASHDRIVER_H
26
#define M29W320FLASHDRIVER_H
27
28
#include <stdint.h>
29
#include <stddef.h>
30
36
#define M29_EPMP_CS_BASE_ADDRESS GFX_EPMP_CS2_BASE_ADDRESS
37
45
#define M29W320_FLASH_SIZE 0x200000
46
50
#define SST_ENABLE_STDOUT_ERRORS
51
66
int
m29w320_writeWord
( uint32_t address, uint16_t data );
67
82
int
m29w320_writeBytes
( uint32_t address,
const
uint8_t *data,
size_t
len );
83
95
uint16_t
m29w320_readWord
( uint32_t address );
96
108
void
m29w320_readBytes
( uint32_t address, uint8_t *buffer,
size_t
bufferLen );
109
121
void
m29w320_readBytesBlocking
( uint32_t address, uint8_t *buffer,
122
size_t
bufferLen );
123
127
void
m29w320_eraseChip
();
128
134
void
m29w320_eraseBlock
( uint32_t address );
135
142
int
m29w320_size
();
143
147
int
m29w320_test
();
148
149
#endif // M29W320FLASHDRIVER_H
150
Generated on Mon Jul 8 2013 01:04:59 for Out-of-office display, GFX by
1.8.1.2