AB&T / SOEM

Dependents:   EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB

Embed: (wiki syntax)

« Back to documentation index

oshw.h File Reference

oshw.h File Reference

Headerfile for oshw.c. More...

Go to the source code of this file.

Functions

uint16 oshw_htons (uint16 host)
 Host to Network byte order (i.e.
uint16 oshw_ntohs (uint16 network)
 Network (i.e.
void oshw_free_adapters (ec_adaptert *adapter)
 Free memory allocated memory used by adapter collection.

Detailed Description

Headerfile for oshw.c.

Definition in file oshw.h.


Function Documentation

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 53 of file oshw.cpp.

uint16 oshw_htons ( const uint16  host )

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 20 of file oshw.cpp.

uint16 oshw_ntohs ( const 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 32 of file oshw.cpp.