SOEM
oshw
vxworks
vxworks/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 <sys/ioctl.h>
7
#include <net/if.h>
8
#include <sys/socket.h>
9
#include <arpa/inet.h>
10
#include <stdio.h>
11
#include <stdlib.h>
12
#include <string.h>
13
#include <assert.h>
14
#include "
oshw.h
"
15
22
uint16
oshw_htons
(
uint16
host)
23
{
24
uint16
network = htons (host);
25
return
network;
26
}
27
34
uint16
oshw_ntohs
(
uint16
network)
35
{
36
uint16
host = ntohs (network);
37
return
host;
38
}
39
43
ec_adaptert
*
oshw_find_adapters
(
void
)
44
{
45
ec_adaptert
* ret_adapter = NULL;
46
/* Not implemented */
47
assert(0);
48
49
return
ret_adapter;
50
}
51
56
void
oshw_free_adapters
(
ec_adaptert
* adapter)
57
{
58
/* Not implemented */
59
assert(0);
60
}
oshw_find_adapters
ec_adaptert * oshw_find_adapters(void)
Definition:
vxworks/oshw.c:43
oshw_htons
uint16 oshw_htons(uint16 host)
Definition:
vxworks/oshw.c:22
ec_adapter
Definition:
ethercatmain.h:44
uint16
uint16_t uint16
Definition:
osal.h:29
oshw.h
Headerfile for oshw.c.
oshw_ntohs
uint16 oshw_ntohs(uint16 network)
Definition:
vxworks/oshw.c:34
oshw_free_adapters
void oshw_free_adapters(ec_adaptert *adapter)
Definition:
vxworks/oshw.c:56
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49