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 
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  */
53 {
54  ec_adaptert * ret_adapter = NULL;
55 
56  /* TODO if needed */
57 
58  return ret_adapter;
59 }
60 
66 {
67  /* TODO if needed */
68 }
void oshw_free_adapters(ec_adaptert *adapter)
Definition: rtk/oshw.c:65
uint16 oshw_htons(const uint16 host)
Definition: rtk/oshw.c:31
uint16_t uint16
Definition: osal.h:34
Headerfile for oshw.c.
uint16 oshw_ntohs(const uint16 network)
Definition: rtk/oshw.c:43
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