Functions
rtk/oshw.h File Reference

Headerfile for oshw.c. More...

#include <kern.h>
#include "ethercattype.h"
#include "nicdrv.h"
#include "ethercatmain.h"
Include dependency graph for rtk/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 host)
 
uint16 oshw_ntohs (uint16 network)
 

Detailed Description

Headerfile for oshw.c.

Definition in file rtk/oshw.h.

Function Documentation

ec_adaptert* oshw_find_adapters ( void  )

Create list over available network adapters.

Returns
First element in linked list of adapters

Definition at line 52 of file erika/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 74 of file erika/oshw.c.

uint16 oshw_htons ( uint16  host)
inline

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 31 of file erika/oshw.c.

uint16 oshw_ntohs ( uint16  network)
inline

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 43 of file erika/oshw.c.



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 27 2020 03:48:21