Raritan EMX JSON-RPC API
|
Classes | |
struct | FirmwareInfo |
Public Types | |
enum | ConfigurationSpace { HARDWARE, FUNCTION, FIRMWARE, RESERVED } |
enum | ResetMethod { BROWNOUT, WATCHDOG } |
Public Member Functions | |
int | updateFirmware (in string romcode, in string firmware) |
Update G2 peripheral firmware. More... | |
int | updateFirmwarePos (in vector< PosElement > position, in string firmware) |
int | getFirmwareInfo (in string romcode, out FirmwareInfo info) |
Read G2 peripheral device firmware information. More... | |
int | getFirmwareInfoPos (in vector< PosElement > position, out FirmwareInfo info) |
int | readConfigurationSpace (in string romcode, in ConfigurationSpace cs, out vector< byte > cfg) |
Read the configuration space of a G2 peripheral device. More... | |
int | readConfigurationSpacePos (in vector< PosElement > position, in ConfigurationSpace cs, out vector< byte > cfg) |
int | eraseConfigurationSpace (in string romcode, in ConfigurationSpace cs) |
Erase the configuration space of a G2 peripheral device. More... | |
int | eraseConfigurationSpacePos (in vector< PosElement > position, in ConfigurationSpace cs) |
int | writeConfigurationSpace (in string romcode, in ConfigurationSpace cs, in vector< byte > cfg) |
Write a complete configuration space of a G2 peripheral device. More... | |
int | writeConfigurationSpacePos (in vector< PosElement > position, in ConfigurationSpace cs, in vector< byte > cfg) |
int | readRegisters (in string romcode, in int address, in int count, out vector< byte > data) |
Read the registers of a G2 peripheral device. More... | |
int | readRegistersPos (in vector< PosElement > position, in int address, in int count, out vector< byte > data) |
int | writeRegisters (in string romcode, in int address, in vector< byte > data) |
Write the registers of a G2 peripheral device. More... | |
int | writeRegistersPos (in vector< PosElement > position, in int address, in vector< byte > data) |
int | writeRegisterBits (in string romcode, in int address, in byte mask, in byte bits) |
Set single (masked) bits of a G2 peripheral device register. More... | |
int | writeRegisterBitsPos (in vector< PosElement > position, in int address, in byte mask, in byte bits) |
int | reset (in string romcode, in ResetMethod method) |
Reset a G2 peripheral device. More... | |
int | resetPos (in vector< PosElement > position, in ResetMethod method) |
int peripheral::G2Production_3_0_0::eraseConfigurationSpace | ( | in string | romcode, |
in ConfigurationSpace | cs | ||
) |
Erase the configuration space of a G2 peripheral device.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
cs | the configuration space identifier |
int peripheral::G2Production_3_0_0::getFirmwareInfo | ( | in string | romcode, |
out FirmwareInfo | info | ||
) |
Read G2 peripheral device firmware information.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
info | the firmware information |
int peripheral::G2Production_3_0_0::readConfigurationSpace | ( | in string | romcode, |
in ConfigurationSpace | cs, | ||
out vector< byte > | cfg | ||
) |
Read the configuration space of a G2 peripheral device.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
cs | the configuration space identifier |
int peripheral::G2Production_3_0_0::readRegisters | ( | in string | romcode, |
in int | address, | ||
in int | count, | ||
out vector< byte > | data | ||
) |
Read the registers of a G2 peripheral device.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
address | the address of (first) register to read from |
count | the number of registers to read |
data | the register data being read out |
int peripheral::G2Production_3_0_0::reset | ( | in string | romcode, |
in ResetMethod | method | ||
) |
Reset a G2 peripheral device.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
method | the reset method to be executed |
int peripheral::G2Production_3_0_0::updateFirmware | ( | in string | romcode, |
in string | firmware | ||
) |
Update G2 peripheral firmware.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
firmware | Firmware image in TI-TXT format |
int peripheral::G2Production_3_0_0::writeConfigurationSpace | ( | in string | romcode, |
in ConfigurationSpace | cs, | ||
in vector< byte > | cfg | ||
) |
Write a complete configuration space of a G2 peripheral device.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
cs | the configuration space identifier |
cfg | the configuration bytes |
int peripheral::G2Production_3_0_0::writeRegisterBits | ( | in string | romcode, |
in int | address, | ||
in byte | mask, | ||
in byte | bits | ||
) |
Set single (masked) bits of a G2 peripheral device register.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
address | the address of register to set bits of |
mask | the bitmask to apply (set bit: 1, don't set bit 0) |
bits | the bit vailues to set |
int peripheral::G2Production_3_0_0::writeRegisters | ( | in string | romcode, |
in int | address, | ||
in vector< byte > | data | ||
) |
Write the registers of a G2 peripheral device.
romcode | 1-wire rom code for device identification, can be left empty if only one device connected |
address | the address of (first) register to write to |
data | the register data to be writen |