cardProfile

cardProfile — produces a detailed profile of card attributes.

Synopsis

(cardProfile card_id)
  

Parameters

card_id
The target card ID (0..3). If no card ID is specified, the query is repeated for all initialized cards.

Returns

(cardProfile card_id
    (Port port) (Addr hardware_addr)
    (MemorySize size_Kbytes Kb) (Interrupt intr ) | (Polled poll_ms)
    (CardType "card_name")
    (ModuleId module_id) (ModuleRev module_revision)
    (Protocol protocol))

Otherwise, if the specified card has not been initialized:

(error "cardProfile DR_ERR_CARD_INVALID (time) invalid card: card_id")

Description

This command produces a detailed profile of the card attributes. Each attribute in the list is provided in the following syntax:

(attribute_name attribute_value [...])

This command is often inserted into an initial configuration file, after a cardInit command has auto-detected the card(s), to provide a detailed description of the cards available.

Example

In the following example:

(cardProfile 0)

returns

(cardProfile 0
    (Port 0x260) (Addr 0xCC000) (MemorySize 16 Kb) (Interrupt 7)
    (CardType "5136-PFB-ISA")
    (ModuleId BB01) (ModuleRev 01.02)
    (Protocol "Profibus"))