Main Page
Related Pages
Modules
Classes
Files
File List
File Members
oshw
rtk
rtk/oshw.c
Go to the documentation of this file.
1
/******************************************************************************
2
* * *** ***
3
* *** *** ***
4
* *** **** ********** *** ***** *** **** *****
5
* ********* ********** *** ********* ************ *********
6
* **** *** *** *** *** **** ***
7
* *** *** ****** *** *********** *** **** *****
8
* *** *** ****** *** ************* *** **** *****
9
* *** **** **** *** *** *** **** ***
10
* *** ******* ***** ************** ************* *********
11
* *** ***** *** ******* ** ** ****** *****
12
* t h e r e a l t i m e t a r g e t e x p e r t s
13
*
14
* http://www.rt-labs.com
15
* Copyright (C) 2009. rt-labs AB, Sweden. All rights reserved.
16
*------------------------------------------------------------------------------
17
* $Id: oshw.c 411 2012-12-02 20:16:39Z rtlaka $
18
*------------------------------------------------------------------------------
19
*/
20
21
#include "
oshw.h
"
22
#include <stdlib.h>
23
#include <lwip/inet.h>
24
31
uint16
oshw_htons
(
const
uint16
host)
32
{
33
uint16
network = htons (host);
34
return
network;
35
}
36
43
uint16
oshw_ntohs
(
const
uint16
network)
44
{
45
uint16
host = ntohs (network);
46
return
host;
47
}
48
49
/* Create list over available network adapters.
50
* @return First element in linked list of adapters
51
*/
52
ec_adaptert
*
oshw_find_adapters
(
void
)
53
{
54
ec_adaptert
* ret_adapter = NULL;
55
56
/* TODO if needed */
57
58
return
ret_adapter;
59
}
60
65
void
oshw_free_adapters
(
ec_adaptert
* adapter)
66
{
67
/* TODO if needed */
68
}
oshw_free_adapters
void oshw_free_adapters(ec_adaptert *adapter)
Definition:
rtk/oshw.c:65
oshw_htons
uint16 oshw_htons(const uint16 host)
Definition:
rtk/oshw.c:31
uint16
uint16_t uint16
Definition:
osal.h:34
oshw.h
Headerfile for oshw.c.
ec_adapter
Definition:
ethercatmain.h:77
oshw_ntohs
uint16 oshw_ntohs(const uint16 network)
Definition:
rtk/oshw.c:43
oshw_find_adapters
ec_adaptert * oshw_find_adapters(void)
Definition:
rtk/oshw.c:52
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 8 2019 18:02:17