Functions
oshw.h File Reference

Headerfile for ethercatbase.c. More...

#include "ethercattype.h"
#include "nicdrv.h"
#include "ethercatmain.h"
Include dependency graph for oshw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ec_adaptertoshw_find_adapters (void)
void oshw_free_adapters (ec_adaptert *adapter)
uint16 oshw_htons (uint16 hostshort)
uint16 oshw_ntohs (uint16 networkshort)

Detailed Description

Headerfile for ethercatbase.c.

Definition in file oshw.h.


Function Documentation

Create list over available network adapters.

Returns:
First element in linked list of adapters

Definition at line 57 of file oshw.c.

void oshw_free_adapters ( ec_adaptert adapter)

Free memory allocated memory used by adapter collection.

Parameters:
[in]adapter= First element in linked list of adapters EC_NOFRAME.

Definition at line 121 of file oshw.c.

Host to Network byte order (i.e. to big endian).

Note that Ethercat uses little endian byte order, except for the Ethernet header which is big endian as usual.

Definition at line 36 of file oshw.c.

uint16 oshw_ntohs ( uint16  network)

Network (i.e. big endian) to Host byte order.

Note that Ethercat uses little endian byte order, except for the Ethernet header which is big endian as usual.

Definition at line 48 of file oshw.c.



ethercat_soem
Author(s): Arthur Ketels, M.J.G. van de Molengraft
autogenerated on Wed Aug 26 2015 11:32:41