12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PC Por t I/OThe port I/O functions allow arbitrary access to I/O ports on a PC computer, andtherefore, should be used with caution. To lesson the chance of writing data to a portthat might damage the computer or corrupt data, valid addresses for the followingfunctions must be explicitly assigned in the config file.port_get(addr) — Reads one byte from the PC I/O port with the address addr .Resets to command level if the port has not been selected in the config file.Otherwise, returns the byte read.port_getw(addr) — As above, but reads and returns a two-byte value.port_put(addr, byte) — Writes the byte byte to the PC I/O port with the addressaddr . Resets to command level if the port has not been selected for writing inthe config file. Otherwise, returns zero.port_putw(addr, word) —port.As above, but writes the two-byte value word to the I/OVME Hardware FunctionsThe type of data access and/or VME address modifier for the following functions canbe selected with the optional argument dmode as follows (if more than one option isneeded, make a comma-separated list in the single string argument):"D8" — byte access"D16" — short-word access"D32" — long-word access, but only available with vme_get32() andvme_put32() ."DPRT" — use the address modifier appropriate for dual-port memory access,on adapters that support it."amod=0xXX" — <strong>spec</strong>ify the hexadecimal value for the address modifier.The default mode for the A16 access functions vme_get() and vme_put() is D8. Thedefault mode for the A32 access functions vme_get32() and vme_put32() is D32.Not all VME adapters supported by <strong>spec</strong> support A32 access. There are currently nofunctions for A24 access.vme_get(addr [, dmode ]) — Returns the data at addr in the 64K A16 address space.vme_put(addr, data [, dmode ]) —space.Writes data to addr in the 64K A16 addressvme_get32(addr [, dmode ]) — Returns the data at addr in the A32 address space.98 REFERENCE MANUAL INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!