|
Model Railroad System 2.2.2
|
Configure memory. More...
Public Member Functions | |
| ConfigMemory (name,...) | |
| Construct a memory config dialog. More... | |
| _Close () | |
| Close and destroy the dialog box. More... | |
| _Read () | |
Bound to the Read button. More... | |
| _Write () | |
Bound to the Write button. More... | |
| _getAddressRange (thespace) | |
| Get the address range of the specified space. More... | |
| _Dump () | |
Bound to the Dump button. More... | |
| _dumpAsText (thespace, startaddress, endaddress) | |
| Dump a space as text (typically the CDI). More... | |
| _dumpAsHex (thespace, startaddress, endaddress) | |
| Dump a space as hex (typically the configuration memory). More... | |
| _Restore () | |
Bound to the Restore button. More... | |
Private Member Functions | |
| _datagramhandler (command, sourcenid,...) | |
| Datagram message handler. More... | |
| _messagehandler (message) | |
| Message handler – handle incoming messages. More... | |
| _readmemory (_space, _address, length, status_var) | |
| Method to read a block of configuration memory. More... | |
| _writememory (_space, _address, databuffer) | |
| Write a block of data to configuration memory. More... | |
| putdebug (message) | |
| Print message using debug output, if any. More... | |
Private Attributes | |
| readlist | |
| Read list. More... | |
| writelist | |
| Write list. More... | |
| count | |
| Byte count. More... | |
| address | |
| Start address. More... | |
| space | |
| Space select. More... | |
| _ioComplete | |
| I/O Completion Flag. More... | |
| olddatagramhandler | |
| Old datagram handler. More... | |
| oldgeneralmessagehandler | |
| Old general message handler. More... | |
| datagrambuffer | |
| Datagram message buffer. More... | |
| _datagramrejecterror | |
| Last datagram rejection error. More... | |
| writeReplyCheck | |
| Flag to check for a write reply. More... | |
Static Private Attributes | |
| static | _spaces |
| Space values. More... | |
Configure memory.
Create a dialog box that reads and writes the configuration memory of an OpenLCB node.
Options:
| lcc::ConfigMemory::ConfigMemory | ( | name | , |
| ... | |||
| ) |
Construct a memory config dialog.
| name | Pathname of the widget. |
| ... | Options:
|
| lcc::ConfigMemory::_Close | ( | ) |
Close and destroy the dialog box.
|
private |
Datagram message handler.
This method is called when a datagram type message arrives.
| command | One of datagramreceivedok, datagramrejected, or datagramcontent. |
| sourcenid | The Node ID of the node sending the datagram. |
| ... | The data buffer, if any.
|
| lcc::ConfigMemory::_Dump | ( | ) |
Bound to the Dump button.
Dump the configuration memory to a file. Either as text (if space is CDI) or Hex (if space is NOT CDI).
| lcc::ConfigMemory::_dumpAsHex | ( | thespace | , |
| startaddress | , | ||
| endaddress | |||
| ) |
Dump a space as hex (typically the configuration memory).
Dump a device's memory as a hex file. This is typically the device's configuration memory.
| thespace | The space. |
| startaddress | The start address |
| endaddress | The end address |
| lcc::ConfigMemory::_dumpAsText | ( | thespace | , |
| startaddress | , | ||
| endaddress | |||
| ) |
Dump a space as text (typically the CDI).
Dump a device's memory as a text file. This is typically the device's CDI.
| thespace | The space. |
| startaddress | The start address |
| endaddress | The end address |
| lcc::ConfigMemory::_getAddressRange | ( | thespace | ) |
Get the address range of the specified space.
This performs a Get Address Space Information Command and then returns the address range info.
| thespace | The space. |
|
private |
Message handler – handle incoming messages.
Certain messages are processed:
Initialization Complete Messages – This is a possible response to freeze, unfreeze, reset, or reinitialize commands.
| lcc::ConfigMemory::_Read | ( | ) |
Bound to the Read button.
Read a block of memory and display the results.
|
private |
Method to read a block of configuration memory.
Read a block of memory, return the data bytes. The variable named by the status_var is side effected with the status code.
| _space | The memory space to read from. |
| _address | The address to start reading from. |
| length | The number of bytes to read. |
| status_var | The name of a status variable. |
| lcc::ConfigMemory::_Restore | ( | ) |
Bound to the Restore button.
Reload configuration memory from a hex dump file.
| lcc::ConfigMemory::_Write | ( | ) |
Bound to the Write button.
Write a block of memory.
|
private |
Write a block of data to configuration memory.
This method writes a block of memory to configuration memory of an OpenLCB node.
| _space | The memory space to write to. |
| _address | The address to start writing to. |
| databuffer | The list of bytes to write. |
|
private |
Print message using debug output, if any.
| message | The message to print. |
|
private |
Last datagram rejection error.
|
private |
I/O Completion Flag.
|
staticprivate |
Space values.
|
private |
Start address.
|
private |
Byte count.
|
private |
Datagram message buffer.
|
private |
Old datagram handler.
|
private |
Old general message handler.
|
private |
Read list.
|
private |
Space select.
|
private |
Write list.
|
private |
Flag to check for a write reply.