intime/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/endian.h>
7 #include "oshw.h"
8 
16 {
17  uint16 network = htons (host);
18  return network;
19 }
20 
28 {
29  uint16 host = ntohs (network);
30  return host;
31 }
32 
33 /* Create list over available network adapters.
34  * @return First element in linked list of adapters
35  */
37 {
38  return NULL;
39 }
40 
46 {
47 
48 }
oshw_find_adapters
ec_adaptert * oshw_find_adapters(void)
Definition: intime/oshw.c:36
ec_adapter
Definition: ethercatmain.h:44
oshw_htons
uint16 oshw_htons(uint16 host)
Definition: intime/oshw.c:15
oshw.h
Headerfile for oshw.c.
uint16
uint16_t uint16
Definition: osal.h:29
oshw_ntohs
uint16 oshw_ntohs(uint16 network)
Definition: intime/oshw.c:27
oshw_free_adapters
void oshw_free_adapters(ec_adaptert *adapter)
Definition: intime/oshw.c:45


soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49