PM5358
Hardware Interface
5HARDWARE INTERFACE
The
5.1Device I/O
Reading from a Device Register: sysSuni4x622Read
This function is the most basic hardware connection. It reads the contents of a specific register location. This macro should be UINT1 oriented and should be defined by the user to reflect the target system’s addressing logic. There is no need for error recovery in this function.
Format
Prototype
Inputs
Outputs Returns
#define sysSuni4x622Read(ba, offset)
UINT1 sysSuni4x622Read(void * ba, UINT2 offset)
ba | : base address |
offset | : offset from the base address |
None |
|
value read from the addressed register location
Writing to a Device Register: sysSuni4x622Write
This function is the most basic hardware connection. It writes the supplied value to the specific register location. This macro should be UINT1 oriented and should be defined by the user to reflect the target system’s addressing logic. There is no need for error recovery in this function.
Format | #define sysSuni4x622Write(ba, offset, data) | |
Prototype | UINT1 sysSuni4x622Write(void * ba, UINT2 offset, | |
| UINT1 data) |
|
Inputs | ba | : base address |
| offset | : offset from the base address |
| data | : data to be written |
Outputs | None |
|
Returns | Value written to the addressed register location |
Proprietary and Confidential to | 108 |
Document ID: |
|