5. Solaris SDK
Registers
pci_set_control
Description
Reads and sets the control register
Example
ioctl(fd, RDCONTROL, &ctlreg);
ioctl(fd, SETCONTROL, ctlreg);
Registers
pci_revision ID
Description
Reads Revision ID field of the PCI configure space
Example
ioctl (fd, REQREVID, &rev_id);
Command 0x10
pci_mode
Description
Sets the timing mode
Example
ioctl (fd, SELTIMINGMODE, MODE_TIMECODE);
Command 0x11
pci_time_format
Description
Sets the time format, binary or decimal
Example
ioctl (fd, SELTIMEFORMAT, TIME_BINARY);
Command 0x12
pci_set_time
Description
Sets the TFP time in either binary or decimal format
Example
ioctl (fd, SETDECTIME, dec);
ioctl (fd, SETTIME, tm_sec);
Command 0x13
pci_set_year
Description
Sets the TFP year
Example
ioctl (fd, SETYEAR, year);
Command 0x14
pci_heartbeat
Description
Sets the heartbeat mode and frequency
Example
ioctl (fd, SETPERIODIC, &sper);
Command 0x15
pci_time_code and its sub type
Description
Sets the time code input format and its sub type
Example
struct tc_command_t tccmd;
tccmd.cmd_id = COM_SETTCFORMAT;
tccmd.type = TC_IRIGB;
tccmd.subtype = TC_SUBTYPE_Y;
ioctl (fd, TCFORMATEX, &tccmd);
- 210 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com