21 #ifndef COSA_S25FL127S_HH 22 #define COSA_S25FL127S_HH 51 #if !defined(BOARD_ATTINYX5) 90 virtual int read(
void* dest, uint32_t src,
size_t size);
104 virtual int erase(uint32_t dest, uint8_t size = 4);
116 virtual int write(uint32_t dest,
const void* src,
size_t size);
127 virtual int write_P(uint32_t dest,
const void* buf,
size_t size);
306 } __attribute__((packed));
uint8_t as_uint8
As unsigned 8-bit value.
virtual int write_P(uint32_t dest, const void *buf, size_t size)
virtual int read(void *dest, uint32_t src, size_t size)
Dual I/O Read (3- or 4-byte address).
Read JEDEC Serial Flash Parameters.
S25FL127S(Board::DigitalPin csn=Board::D5)
uint8_t as_uint8
As unsigned 8-bit value.
virtual int erase(uint32_t dest, uint8_t size=4)
uint8_t TBPARAM
Parameter Sectors location (0=low,1=high).
config_t(uint8_t value=0)
Erase 64 kB or 256 kB (4-byte addr).
Data Learning Pattern Read.
Read Dual Out (3- or 4-byte address).
Quad Page Program (3- or 4-byte address).
uint8_t as_uint8
As unsigned 8-bit value.
Fast Read (4-byte address).
Fast Read (3- or 4-byte address).
Read Configuration Register#1.
Program NV Data Learning Register.
Parameter 4-kB, sector erase (4-byte addr).
Page Program (3- or 4-byte address).
uint8_t issue(Command cmd)
Write Volatile Data Learning Register.
Write Register (Status-1, Config-1).
Read Quad Out (4-byte address).
Read Electronic Signature.
static const uint8_t MANUFACTURER
Read Quad Out (3- or 4-byte address).
Read Electronic Manufacturer Signature.
Parameter 4-kB, sector erase.
Read Dual Out (4-byte address).
uint8_t TBPROT
Start of Block Protection (0=high,1=low).
Read Quad Out (3- or 4-byte address).
static const size_t PAGE_MASK
uint8_t FREEZE
< As bit-fields.
status2_t(uint8_t value=0)
uint8_t RFU
Reserved for Future Use.
uint8_t LC
Latency Code (see table 8.7, pp. 60).
Quad Page Program (4-byte address).
static const size_t PAGE_MAX
Active low logic during transaction.
uint8_t BPNV
BP2-0 in status register (0=NV,1=Volatile).
Read (3- or 4-byte address).
Page Program (4-byte address).
Divide system clock by 2.
Most significant bit first.
Read Quad Out (4-byte address).
virtual int write(uint32_t dest, const void *src, size_t size)
static const uint8_t DEVICE
uint8_t QUAD
Quad I/O operation.
Driver(Board::DigitalPin cs, Pulse pulse=DEFAULT_PULSE, Clock rate=DEFAULT_CLOCK, uint8_t mode=0, Order order=MSB_ORDER, Interrupt::Handler *irq=NULL)
Device(uint32_t bytes, uint16_t count)
Dual I/O Read (4-byte address).
status1_t(uint8_t value=0)