IOCTL_FARC_GET_USEDDCB

Description:
query the currently used DCB.

Parameters:

Parameter Type Description
Input
- - -
Output
controller settings struct ARCNET_DCB Current settings of the ARCNET controller such as:
  • clock divider for speed settings 2,5Mbit/s and below
  • timeouts (response time, reconfiguration time, idle time)
  • interface type
  • NAK behaviour
  • intialization behaviour

Possible errors (see also Error codes):
E_FARC_INVALID_HANDLE
E_FARC_BUFFER_TOO_SMALL

Example:
Note, that the following example is only a fragment. It is recommended, that the driver is opened in asynchronous mode and a handle to the driver is available.

OVERLAPPED overlapped; DWORD read, err; BOOL ret; ARCNET_DCB dcb; overlapped.Offset = 0; overlapped.OffsetHigh = 0; overlapped.hEvent = CreateEvent(NULL,TRUE,FALSE,NULL); ... ret = DeviceIoControl(drvhandle, IOCTL_FARC_GET_USEDDCB, NULL, 0, &dcb, sizeof(dcb), &read, &overlapped); if (!ret) { err = GetLastError(); if (err == E_FARC_PENDING) { ret = GetOverlappedResult(drvhandle, &overlapped, &read, TRUE); if (!ret) { err = GetLastError(); // do errorhandling here } } else { // other error occured, perhaps wrong handle } } printf("dcb.z_et_1 = %u",dcb.z_et_1); ...

See also:
DeviceIoControl()
ARCNET_DCB

Back to Programming Guide