/usr/include/lime/LMS64CCommands.h is in liblimesuite-dev 16.12.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | /**
@file LMS64CCommands.h
@author Lime Microsystems
@brief enumerations of LMS64C command options
*/
#pragma once
namespace lime {
enum eCMD_LMS
{
CMD_GET_INFO = 0x00,
CMD_LMS6002_RST = 0x10,
///Writes data to SI5356 synthesizer via I2C
CMD_SI5356_WR = 0x11,
///Reads data from SI5356 synthesizer via I2C
CMD_SI5356_RD = 0x12,
///Writes data to SI5351 synthesizer via I2C
CMD_SI5351_WR = 0x13,
///Reads data from SI5351 synthesizer via I2C
CMD_SI5351_RD = 0x14,
///PanelBus DVI (HDMI) Transmitter control
CMD_TFP410_WR = 0x15,
///PanelBus DVI (HDMI) Transmitter control
CMD_TFP410_RD = 0x16,
///Sets new LMS7002M chip’s RESET pin level (0, 1, pulse)
CMD_LMS7002_RST = 0x20,
///Writes data to LMS7002M chip via SPI
CMD_LMS7002_WR = 0x21,
///Reads data from LMS7002M chip via SPI
CMD_LMS7002_RD = 0x22,
///Writes data to LMS6002 chip via SPI
CMD_LMS6002_WR = 0x23,
///Reads data from LMS6002 chip via SPI
CMD_LMS6002_RD = 0x24,
CMD_LMS_LNA = 0x2A,
CMD_LMS_PA = 0x2B,
CMD_PROG_MCU = 0x2C,
///Writes data to ADF4002 chip via SPI
CMD_ADF4002_WR = 0x31,
CMD_USB_FIFO_RST = 0x40,
CMD_PE636040_WR = 0x41,
CMD_PE636040_RD = 0x42,
CMD_GPIO_WR = 0x51,
CMD_GPIO_RD = 0x52,
CMD_ALTERA_FPGA_GW_WR = 0x53,
CMD_ALTERA_FPGA_GW_RD = 0x54,
CMD_BRDSPI_WR = 0x55,//16 bit spi for stream, dataspark control
CMD_BRDSPI_RD = 0x56,//16 bit spi for stream, dataspark control
CMD_BRDSPI8_WR = 0x57, //8 + 8 bit spi for stream, dataspark control
CMD_BRDSPI8_RD = 0x58, //8 + 8 bit spi for stream, dataspark control
CMD_BRDCONF_WR = 0x5D, //write config data to board
CMD_BRDCONF_RD = 0x5E, //read config data from board
CMD_ANALOG_VAL_WR = 0x61, //write analog value
CMD_ANALOG_VAL_RD = 0x62, //read analog value
CMD_MYRIAD_RST = 0x80,
CMD_MYRIAD_WR = 0x81,
CMD_MYRIAD_RD = 0x82,
CMD_MEMORY_WR = 0x8C,
CMD_MEMORY_RD = 0x8D
};
enum eCMD_STATUS
{
STATUS_UNDEFINED,
STATUS_COMPLETED_CMD,
STATUS_UNKNOWN_CMD,
STATUS_BUSY_CMD,
STATUS_MANY_BLOCKS_CMD,
STATUS_ERROR_CMD,
STATUS_WRONG_ORDER_CMD,
STATUS_RESOURCE_DENIED_CMD,
STATUS_COUNT
};
static const char status_text[][32]=
{
"Undefined/Failure",
"Completed",
"Unknown command",
"Busy",
"Too many blocks",
"Error",
"Wrong order",
"Resource denied"
};
static inline const char* status2string(const int status)
{
if(status >= 0 && status < STATUS_COUNT)
return status_text[status];
else
return "Unknown status";
}
}
|