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") (CardSerial# serial_num)
    (ModuleDesc "desc_string1" "desc_string2")
    (KernelId kernel_id) (KernelRev kernel_revision)
    (ModuleId module_id) (ModuleRev module_revision)
    (Protocol "protocol_name"))

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-DN-PC") (CardSerial# 99010033)
    (ModuleDesc "DeviceNet Scanner 2.22.20" "(C) 2001 SST/Woodhead Canada Ltd.")
    (KernelId 0001) (KernelRev 02.13)
    (ModuleId 0014) (ModuleRev 02.22)
    (Protocol "DeviceNet"))