cardSet

cardSet — gives write access to card buffers for low-level debugging.

Synopsis

 (cardSet card_id page offset byte1 byte2 ... byteN)
	

Parameters

card_id
The card ID associated with the card initialized by this command.
page
The page of card memory to access. The card contains 256 Kbytes of memory, mapped into the card buffer as 16Kbyte pages. Pages are numbered from 0 to 15. The Pfbprofi software module utilizes specific pages for its various functions, such as control structures, I/O data, DP Master control blocks, etc. To facilitate access, the page parameters can also be specified by name, as follows:
homeContains the PROFI_USR structure (status and control).
masContains the DP Master control blocks.
rxContains the DP Master input data.
txContains the DP Master output data.
binIs used to transfer binary configuration data.
offset
The starting byte offset into the card buffer, as a decimal or hex (0xnnnn) number.
byte1 ... byteN
The bytes to be written, as decimal or hex (0xnnnn) numbers.

Returns

The list of bytes read, in ASCII BCD, formatted as:

(cardSet card_id page offset nbytes byte0 byte1 ... byteN)

otherwise (error).

Description

This command provides direct write access to the hardware card buffers (if available). It is intended for use only during very low-level debug.

Example

(cardSet 0 2 0x0E00 0x80 0xFF 0 12)
  

See the files in Appendix D, Support Files for more examples.