MATLAB XPC TARGET 4 - DEVICE DRIVERS Betriebsanweisung Seite 59

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 111
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 58
Adding Interrupt Support
Depending on the bus type of your board, select a board structure of an
existing board that has the same bus type. The information passed to the
functions is slightly different for an ISA board or a PCI board. You will use
this structure as a template for your own board entry. The following is a
structure for an ISA or PC/104 d evice:
board.name = 'RTD_DM6804';
board.VendorId = -1;
board.DeviceId = 1;
board.SubVendorId = -1;
board.SubDeviceId = -1;
board.PreHookFunction = 'x pc68 04';
board.PostHookFunction = ' NULL ';
board.HookIncludeFile = 'x pc68 04hooks';
board.StartFunction = 'xpc6804start';
board.StopFunction = 'xpc6804stop';
The following is a structure for a PCI device:
board.name = 'General Standards 24DSI 12' ;
board.VendorId = hex2dec('10b5');
board.DeviceId = hex2dec('9080');
board.SubVendorId = hex2dec('10b5');
board.SubDeviceId = hex2dec('3100');
board.PreHookFunction = 'x pcgs 24dsi12prehook';
board.PostHookFunction = ' NULL ';
board.HookIncludeFile = 'x pcgs 24dsi12hooks';
board.StartFunction = 'xpcgs24dsi12start';
board.StopFunction = 'xpcgs24dsi12stop';
name Enter an appropriate board name string. The xPC Target
software uses this string to populate the drop-down list for the I/O board
generating the interrupt parame ter in the following:
- Async IRQ Source block
- PCI s lot (-1: autosearch) or ISA base address parameter in the
xPC Target Options section of the model Con figuration Parameters
dialog box
VendorId, DeviceId, SubVendorId, SubDeviceId Enter the appropriate
ID strings. If you have a PCI board, the board manufacturer identifies
5-11
Seitenansicht 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 110 111

Kommentare zu diesen Handbüchern

Keine Kommentare