Helper object to enumerate boards and ports. More...
Public Member Functions | |
VinDriverEnumeration (Device device) | |
Ctor. More... | |
int | GetNumPortsForBoard (int board) |
Gets the number of ports for a given board . More... | |
Properties | |
int | NumBoards [get] |
Gets the number of boards the Vin driver of the associated device has. | |
Helper object to enumerate boards and ports.
Enumerating boards/ports on not opened drivers/boards is at least inefficient. It can also return an error if the board is opened in another process exclusively or if the configuration is invalid.
VinDriverEnumeration | ( | Device | device | ) |
Ctor.
device | Device having at least board select 2 or a port select interface. |
int GetNumPortsForBoard | ( | int | board | ) |
Gets the number of ports for a given board .
board | Board number to retrieve ports for. |
System.ArgumentOutOfRangeException | If the given board is outside its allowed range. |