Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
f1ce3f9b
Commit
f1ce3f9b
authored
Jan 12, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/ll_io/ops/ll_io_eth.*: add ETH LLIO operations
Added new LLIO operations for ethernet devices
parent
85a7a3da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
491 additions
and
0 deletions
+491
-0
ll_io_eth.c
hal/ll_io/ops/ll_io_eth.c
+457
-0
ll_io_eth.h
hal/ll_io/ops/ll_io_eth.h
+34
-0
No files found.
hal/ll_io/ops/ll_io_eth.c
View file @
f1ce3f9b
This diff is collapsed.
Click to expand it.
hal/ll_io/ops/ll_io_eth.h
View file @
f1ce3f9b
...
...
@@ -10,6 +10,40 @@
#include "ll_io.h"
#define LLIO_ETH_HANDLER(self) ((llio_dev_eth_t *) self->dev_handler)
enum
_llio_eth_type_e
{
TCP_ETH_SOCK
=
0
,
UDP_ETH_SOCK
=
1
,
INVALID_ETH_SOCK
};
#define TCP_ETH_SOCK_STR "tcp"
#define UDP_ETH_SOCK_STR "udp"
#define INVALID_ETH_SOCK_STR "invalid"
typedef
enum
_llio_eth_type_e
llio_eth_type_e
;
/* For use by llio_t general structure */
extern
const
llio_ops_t
llio_ops_eth
;
/* Device endpoint */
struct
_llio_dev_eth_t
{
llio_eth_type_e
type
;
int
fd
;
char
*
hostname
;
char
*
port
;
};
/* Opaque llio_dev_eth structure */
typedef
struct
_llio_dev_eth_t
llio_dev_eth_t
;
/***************** Our methods *****************/
/* Creates a new instance of the Ethernet endpoint*/
llio_dev_eth_t
*
llio_dev_eth_new
(
const
char
*
sock_type
,
const
char
*
hostname
,
const
char
*
port
);
/* Destroy an instance of the Ethernet Endpoint */
llio_err_e
llio_dev_eth_destroy
(
llio_dev_eth_t
**
self_p
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment