public class CmdDebug extends Control.CommandGroup
Modifier and Type | Field and Description |
---|---|
static int |
FLASH_READ_SIZE |
static int |
I2C1
CLB I2C interface 1
|
static int |
I2C2
CLB I2C interface 2
|
static int |
I2C3
CLB I2C interface 3
|
static int |
UART_MAX |
static int |
UART1
CLB UART 1
|
static int |
UART2
CLB UART 2
|
static int |
UART3
CLB UART 3
|
static int |
UART4
CLB UART 4
|
ctl, msg
Modifier and Type | Method and Description |
---|---|
Response<int[]> |
busRead(long address,
int len)
Reads one of more words from memory.
|
Response<int[]> |
busRmw(int address,
int[] data,
int[] mask)
Read, modify, write and readback an array.
|
Response<java.lang.Void> |
busWrite(long address,
int[] data)
Write one of more words from memory.
|
Response<byte[]> |
i2cRead(int ifc,
int adr,
int len)
Reads bytes from an I2C interface
|
Response<java.lang.Void> |
i2cWrite(int ifc,
int adr,
byte[] data)
Writes data to and I2C device.
|
Response<byte[]> |
readFlash(int chip,
long addr)
Reads FLASH_READ_SIZE bytes of flash
|
Response<java.lang.String> |
uartRx(int uartNo)
Reads data from a UART buffer.
|
Response<java.lang.Void> |
uartTx(int uartNo,
java.lang.String message)
Writes data to a UART buffer.
|
public static final int I2C1
public static final int I2C2
public static final int I2C3
public static final int UART1
public static final int UART2
public static final int UART3
public static final int UART4
public static final int UART_MAX
public static int FLASH_READ_SIZE
public Response<int[]> busRead(long address, int len)
address
- The offset addresslen
- The number of consecutive words to readpublic Response<java.lang.Void> busWrite(long address, int[] data)
address
- The offset addressdata
- The data to write.public Response<int[]> busRmw(int address, int[] data, int[] mask)
address
- The offset addressdata
- The data to write.data
- The mask to apply.public Response<byte[]> i2cRead(int ifc, int adr, int len)
ifc
- The interface, see I2C* constantsadr
- The I2C device address without read/write bit (i.e. 7 bits)len
- Number of bytes to readpublic Response<java.lang.Void> i2cWrite(int ifc, int adr, byte[] data)
ifc
- The interface, see I2C* constantsadr
- The I2C device address without read/write bit (i.e. 7 bits)data
- The data to write to the I2C device.public Response<java.lang.String> uartRx(int uartNo)
uartNo
- The uart, see UART*public Response<java.lang.Void> uartTx(int uartNo, java.lang.String message)
uartNo
- The interface, see I2C* constantsmessage
- The message to send to the UART.public Response<byte[]> readFlash(int chip, long addr)
chip
- The flash chip index, currently just 0 is supportedaddr
- The address in flash, FLASH_READ_SIZE bytes aligned