|
HF-MAX22200 Driver 0.1.0-dev
HF-MAX22200 C++ Driver
|
Command Register bit field definitions and helper functions. More...
Functions | |
| constexpr uint8_t | build (uint8_t bank, bool write, bool mode8=false) |
Variables | |
| constexpr uint8_t | RBW_POS = 7 |
| Read/Write bit position. | |
| constexpr uint8_t | RBW_READ = 0x00 |
| Read operation (bit 7 = 0) | |
| constexpr uint8_t | RBW_WRITE = 0x80 |
| Write operation (bit 7 = 1) | |
| constexpr uint8_t | A_BNK_POS = 1 |
| Bank address bit position (bits 4:1) | |
| constexpr uint8_t | A_BNK_MASK = 0x1E |
| Bank address mask (bits 4:1) | |
| constexpr uint8_t | MODE_8BIT = 0x01 |
| 8-bit MSB only access (bit 0 = 1) | |
| constexpr uint8_t | MODE_32BIT = 0x00 |
| 32-bit full access (bit 0 = 0) | |
Command Register bit field definitions and helper functions.
The Command Register is 8-bit, write-only, and must be written with CMD pin HIGH before any register access. It determines the type and format of the follow-on SPI transfer.
Bank address mask (bits 4:1)
Bank address bit position (bits 4:1)
32-bit full access (bit 0 = 0)
8-bit MSB only access (bit 0 = 1)
Read/Write bit position.
Read operation (bit 7 = 0)
Write operation (bit 7 = 1)