9.6. Real-time Ethernet Driver Control Interface
9.6.1. emonIoControl - EC_IOCTL_ISLINK_CONNECTED
- emonIoControl - EC_IOCTL_ISLINK_CONNECTED
- Parameter
pbyInBuf: [in] Should be set to EC_NULLdwInBufSize: [in] Should be set to 0pbyOutBuf: [out] Pointer to buffer of type struct EC_T_LINK_CONNECTED_INFOdwOutBufSize: [in] Size of the output buffer in bytes, sizeof(EC_T_LINK_CONNECTED_INFO)pdwNumOutData: [out] Pointer to EC_T_DWORD. Amount of bytes written to the output buffer
-
struct EC_T_LINK_CONNECTED_INFO
Public Members
-
EC_T_BOOL bConnected
[out] MAIN or RED link detected
-
EC_T_BOOL bSendEnabled
[out] send enabled on MAIN or RED
-
EC_T_BOOL bMainConnected
[out] MAIN link detected
-
EC_T_BOOL bMainMasked
[out] MAIN link not used for sending, because topology changed delay not elapsed yet
-
EC_T_BOOL bRedConnected
[out] RED link detected
-
EC_T_BOOL bRedMasked
[out] RED link not used for sending, because topology changed delay not elapsed yet
-
EC_T_BOOL bConnected
9.6.2. emonIoControl - EC_IOCTL_GET_LINKLAYER_MODE
- emonIoControl - EC_IOCTL_GET_LINKLAYER_MODE
- Parameter
pbyInBuf: [in] Should be set to EC_NULLdwInBufSize: [in] Should be set to 0pbyOutBuf: [out] Pointer to buffer of type struct EC_T_LINKLAYER_MODE_DESCdwOutBufSize: [in] Size of the output buffer in bytes, sizeof(EC_T_LINKLAYER_MODE_DESC)pdwNumOutData: [out] Pointer to EC_T_DWORD. Amount of bytes written to the output buffer
9.6.3. emonIoControl - EC_LINKIOCTL…
The generic control interface provides access to the main network adapter when adding EC_IOCTL_LINKLAYER_MAIN to the EC_LINKIOCTL parameter at dwCode.
EC_T_DWORD dwCode = (EC_IOCTL_LINKLAYER_MAIN | EC_LINKIOCTL_GET_ETHERNET_ADDRESS);
9.6.4. emonIoControl - EC_LINKIOCTL_GET_ETHERNET_ADDRESS
Provides MAC addresses of main or red line.
- emonIoControl - EC_LINKIOCTL_GET_ETHERNET_ADDRESS
- Parameter
pbyInBuf: [in] Should be set to EC_NULLdwInBufSize: [in] Should be set to 0pbyOutBuf: [out] Pointer to MAC address buffer (6 bytes).dwOutBufSize: [in] Size of the output buffer in bytes (at least 6).pdwNumOutData: [out] Pointer to EC_T_DWORD. Amount of bytes written to the output buffer.
9.6.5. emonIoControl - EC_LINKIOCTL_GET_SPEED
- emonIoControl - EC_LINKIOCTL_GET_SPEED
- Parameter
pbyInBuf: [in] Should be set to EC_NULLdwInBufSize: [in] Should be set to 0pbyOutBuf: [out] Pointer to EC_T_DWORD. Set by Real-time Ethernet Driver to 10/100/1000.dwOutBufSize: [in] Size of the output buffer in bytes.pdwNumOutData: [out] Pointer to EC_T_DWORD. Amount of bytes written to the output buffer.