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) intbase-
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 intgetMemoryLength()A flink device occupies a contiguous block in the memory.booleanhasInfoDev()A flink device usually incorporates an info device.intread(int address)Base method to read one register from a flink device.voidwrite(int address, int data)Base method to write one register of a flink device.
-
-
-
Method Detail
-
getMemoryLength
public int getMemoryLength()
Description copied from interface:FlinkBusInterfaceA flink device occupies a contiguous block in the memory. This method returns the size of the memory block.- Specified by:
getMemoryLengthin interfaceFlinkBusInterface- Returns:
- Memory size in byte
-
read
public int read(int address)
Description copied from interface:FlinkBusInterfaceBase method to read one register from a flink device.- Specified by:
readin 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:FlinkBusInterfaceBase method to write one register of a flink device.- Specified by:
writein interfaceFlinkBusInterface- Parameters:
address- of the register which should be writtendata- to write
-
hasInfoDev
public boolean hasInfoDev()
Description copied from interface:FlinkBusInterfaceA flink device usually incorporates an info device. However, this is not a precondition.- Specified by:
hasInfoDevin interfaceFlinkBusInterface- Returns:
- True if device has Info device
-
-