#include <M25P16.h>
|
enum | {
WRITE_ENABLE = 0x06,
WRITE_DISABLE = 0x04,
READ_IDENTIFICATION = 0x9F,
READ_IDENTIFICATION2 = 0x9E,
READ_STATUS = 0x05,
WRITE_STATUS = 0x01,
READ_DATA = 0x03,
READ_DATA_HIGH_SPEED = 0x0B,
PAGE_PROGRAM = 0x02,
SECTOR_ERASE = 0xD8,
BULK_ERASE = 0xC7,
DEEP_POWER_DOWN = 0xB9,
RELEASE_DEEP_POWER_DOWN = 0xAB,
STATUS_WEL_BIT = 0x02,
STATUS_WIP_BIT = 0x01,
STATUS_BLOCK_PROTECT_BITS = 0x1C,
STATUS_SRWD_BIT = 0x80
} |
|
Definition at line 36 of file M25P16.h.
Enumerator |
---|
WRITE_ENABLE |
|
WRITE_DISABLE |
|
READ_IDENTIFICATION |
|
READ_IDENTIFICATION2 |
|
READ_STATUS |
|
WRITE_STATUS |
|
READ_DATA |
|
READ_DATA_HIGH_SPEED |
|
PAGE_PROGRAM |
|
SECTOR_ERASE |
|
BULK_ERASE |
|
DEEP_POWER_DOWN |
|
RELEASE_DEEP_POWER_DOWN |
|
STATUS_WEL_BIT |
|
STATUS_WIP_BIT |
|
STATUS_BLOCK_PROTECT_BITS |
|
STATUS_SRWD_BIT |
|
Definition at line 46 of file M25P16.h.
uint8_t M25P16::get_status |
( |
| ) |
|
|
private |
void M25P16::init |
( |
SPI * |
_spi | ) |
|
void M25P16::read |
( |
uint8_t * |
data, |
|
|
uint8_t |
len |
|
) |
| |
bool M25P16::read_config |
( |
uint8_t * |
data, |
|
|
uint32_t |
len |
|
) |
| |
bool M25P16::write_config |
( |
const uint8_t * |
data, |
|
|
const uint32_t |
len |
|
) |
| |
void M25P16::write_page |
( |
uint8_t * |
data | ) |
|
uint32_t M25P16::config_size_ |
|
private |
uint32_t M25P16::current_page_ |
|
private |
uint32_t M25P16::current_position_ |
|
private |
uint32_t M25P16::num_pages_for_config_ |
|
private |
uint8_t M25P16::write_buffer_[260] |
|
private |
The documentation for this class was generated from the following files: