Main Page
Related Pages
Modules
Classes
Files
File List
File Members
SOEM
oshw
rtk
rtk/oshw.c
Go to the documentation of this file.
1
/*
2
* Licensed under the GNU General Public License version 2 with exceptions. See
3
* LICENSE file in the project root for full license information
4
*/
5
6
#include "
oshw.h
"
7
#include <stdlib.h>
8
#include <lwip/inet.h>
9
16
uint16
oshw_htons
(
const
uint16
host)
17
{
18
uint16
network = htons (host);
19
return
network;
20
}
21
28
uint16
oshw_ntohs
(
const
uint16
network)
29
{
30
uint16
host = ntohs (network);
31
return
host;
32
}
33
34
/* Create list over available network adapters.
35
* @return First element in linked list of adapters
36
*/
37
ec_adaptert
*
oshw_find_adapters
(
void
)
38
{
39
ec_adaptert
* ret_adapter = NULL;
40
41
/* TODO if needed */
42
43
return
ret_adapter;
44
}
45
50
void
oshw_free_adapters
(
ec_adaptert
* adapter)
51
{
52
/* TODO if needed */
53
}
oshw_free_adapters
void oshw_free_adapters(ec_adaptert *adapter)
Definition:
rtk/oshw.c:50
oshw_htons
uint16 oshw_htons(const uint16 host)
Definition:
rtk/oshw.c:16
uint16
uint16_t uint16
Definition:
osal.h:29
oshw.h
Headerfile for oshw.c.
ec_adapter
Definition:
ethercatmain.h:44
oshw_ntohs
uint16 oshw_ntohs(const uint16 network)
Definition:
rtk/oshw.c:28
oshw_find_adapters
ec_adaptert * oshw_find_adapters(void)
Definition:
rtk/oshw.c:37
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 27 2020 03:48:21