|
AT25040 Driver
API reference
|
Namespaces | |
| namespace | detail |
Classes | |
| class | Device |
| class | SpiInterface |
Enumerations | |
| enum class | Status : uint8_t { Ok = 0 , Timeout = 1 , Absent = 2 , Busy = 3 , Arg = 4 } |
| enum class | BlockProtect : uint8_t { None = 0 , UpperQuarter = 1 , UpperHalf = 2 , All = 3 } |
| Block write protection level, BP1:BP0 in the status register (datasheet Table 6-4). More... | |
Functions | |
| const char * | GetAt25040DriverVersion () noexcept |
Variables | |
| constexpr uint8_t | kCmdWren = 0x06 |
| constexpr uint8_t | kCmdWrdi = 0x04 |
| constexpr uint8_t | kCmdRdsr = 0x05 |
| constexpr uint8_t | kCmdWrsr = 0x01 |
| constexpr uint8_t | kCmdRead = 0x03 |
| constexpr uint8_t | kCmdWrite = 0x02 |
| constexpr uint8_t | kAddrA8Mask = 0x08 |
| constexpr uint8_t | kSrWip = 0x01 |
| constexpr uint8_t | kSrWel = 0x02 |
| constexpr uint8_t | kSrBp0 = 0x04 |
| constexpr uint8_t | kSrBp1 = 0x08 |
| constexpr uint16_t | kCapacityBytes = 512 |
| constexpr uint16_t | kPageSizeBytes = 8 |
|
strong |
Block write protection level, BP1:BP0 in the status register (datasheet Table 6-4).
Addresses for the AT25040B; on the AT25010B/020B the same levels protect the same fractions.
| Enumerator | |
|---|---|
| None | BP1:BP0 = 00: nothing protected. |
| UpperQuarter | 01: 0x180-0x1FF read-only |
| UpperHalf | 10: 0x100-0x1FF read-only |
| All | 11: 0x000-0x1FF read-only |
|
strong |
|
inlinenoexcept |
|
inlineconstexpr |
A8 of the 9-bit address is placed in bit 3 of READ/WRITE.
|
inlineconstexpr |
AT25040B: 512 bytes, 8-byte page.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |