Class AXIInterface
- java.lang.Object
-
- org.deepjava.flink.interfaces.zynq.AXIInterface
-
- All Implemented Interfaces:
FlinkBusInterface
,FlinkDefinitions
public class AXIInterface extends Object implements FlinkBusInterface, FlinkDefinitions
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
base
-
Fields inherited from interface org.deepjava.flink.core.FlinkDefinitions
ANALOG_INPUT_INTERFACE_ID, ANALOG_OUTPUT_INTERFACE_ID, CHANNEL_OFFSET, COUNTER_INTERFACE_ID, GPIO_INTERFACE_ID, HEADER_SIZE, INFO_DEVICE_ID, INFO_DEVICE_SIZE, INTERFACE_TYPE_MASK, MOD_CONF_OFFSET, MOD_STATUS_OFFSET, PPWA_INTERFACE_ID, PWM_INTERFACE_ID, REGISTER_WIDTH, REGISTER_WIDTH_BIT, SIZE_OFFSET, SUBHEADER_SIZE, TOTAL_HEADER_SIZE, TYPE_OFFSET, UART_INTERFACE_ID, UNIQUE_ID_OFFSET, WD_INTERFACE_ID
-
-
Constructor Summary
Constructors Constructor Description AXIInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMemoryLength()
A flink device occupies a contiguous block in the memory.boolean
hasInfoDev()
A flink device usually incorporates an info device.int
read(int address)
Base method to read one register from a flink device.void
write(int address, int data)
Base method to write one register of a flink device.
-
-
-
Method Detail
-
getMemoryLength
public int getMemoryLength()
Description copied from interface:FlinkBusInterface
A flink device occupies a contiguous block in the memory. This method returns the size of the memory block.- Specified by:
getMemoryLength
in interfaceFlinkBusInterface
- Returns:
- Memory size in byte
-
read
public int read(int address)
Description copied from interface:FlinkBusInterface
Base method to read one register from a flink device.- Specified by:
read
in interfaceFlinkBusInterface
- Parameters:
address
- of the register which should be read- Returns:
- content of the register
-
write
public void write(int address, int data)
Description copied from interface:FlinkBusInterface
Base method to write one register of a flink device.- Specified by:
write
in interfaceFlinkBusInterface
- Parameters:
address
- of the register which should be writtendata
- to write
-
hasInfoDev
public boolean hasInfoDev()
Description copied from interface:FlinkBusInterface
A flink device usually incorporates an info device. However, this is not a precondition.- Specified by:
hasInfoDev
in interfaceFlinkBusInterface
- Returns:
- True if device has Info device
-
-