5.2 Access Primitives
Based on the MEM-AP access, the host can rely on the following primitives:
Memory Access Primitive | Description |
---|---|
Status ReadD8(U32 Addr, Value) | Read a byte (8 bits) from device memory at address
Addr Returns OK, FAULT, WAIT or ERROR |
Status ReadD16(U32 Addr,Value) | Read a half-word (16 bits) from device memory at address
Addr Returns OK, FAULT, WAIT or ERROR |
Status ReadD32(U32 Addr,Value) | Read a word (32 bits) from device memory at address
Addr Returns OK, FAULT, WAIT or ERROR |
Status WriteD8(U32 Addr,Value) | Write a byte (8 bits) from device memory at address
Addr Returns OK, FAULT, WAIT or ERROR |
Status WriteD16(U32 Addr,Value) | Write a half-word (16 bits) from device memory at address
Addr Returns OK, FAULT, WAIT or ERROR |
Status WriteD32(U32 Addr,Value) | Write a word (32 bits) from device memory at address
Addr Returns OK, FAULT, WAIT or ERROR |
Note: The user can use the speed
optimized primitives for block access using the auto-increment feature of the
MEM-AP, but they are not mandatory to support all the device features.