Loading [MathJax]/extensions/tex2jax.js
iCub-main
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
b
c
d
e
h
i
j
l
m
n
p
r
s
t
w
z
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
e
g
i
l
n
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
i
l
m
p
r
s
t
u
Properties
Related Symbols
a
b
c
g
i
l
o
q
r
s
t
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Typedefs
Enumerations
Enumerator
_
a
c
d
e
g
j
m
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
icub-main
src
libraries
icubmod
embObjLib
transceiverInterface.h
Go to the documentation of this file.
1
/* Copyright (C) 2012 iCub Facility, Istituto Italiano di Tecnologia
2
* Author: Alberto Cardellino
3
* email: alberto.cardellino@iit.it
4
* Permission is granted to copy, distribute, and/or modify this program
5
* under the terms of the GNU General Public License, version 2 or any
6
* later version published by the Free Software Foundation.
7
*
8
* A copy of the license can be found at
9
* http://www.robotcub.org/icub/license/gpl.txt
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14
* Public License for more details
15
*/
16
17
18
// - include guard ----------------------------------------------------------------------------------------------------
19
#ifndef _TRANSCEIVER_INTERFACE_H_
20
#define _TRANSCEIVER_INTERFACE_H_
21
22
29
class
ITransceiver
30
{
31
public
:
32
virtual
~ITransceiver
(){}
33
34
// initialize the transceiver
35
virtual
void
init
( uint32_t localipaddr, uint32_t remoteipaddr, uint16_t ipport, uint16_t pktsize, uint8_t borad_n) =0;
36
37
// Do something with the packet received from the socket
38
virtual
void
onMsgReception
(uint8_t *
data
, uint16_t size) =0;
39
40
41
// get the whole packet to be transmitted
42
virtual
void
getTransmit
(uint8_t **
data
, uint16_t *size) =0;
43
} ;
29
class
ITransceiver
{
…
};
44
45
#endif
// include-guard _TRANSCEIVER_INTERFACE_H_
46
47
48
// - end-of-file (leave a blank line after)----------------------------------------------------------------------------
49
data
@ data
Definition
ST_M1_dataType.h:64
ITransceiver
Definition
transceiverInterface.h:30
ITransceiver::getTransmit
virtual void getTransmit(uint8_t **data, uint16_t *size)=0
ITransceiver::~ITransceiver
virtual ~ITransceiver()
Definition
transceiverInterface.h:32
ITransceiver::init
virtual void init(uint32_t localipaddr, uint32_t remoteipaddr, uint16_t ipport, uint16_t pktsize, uint8_t borad_n)=0
ITransceiver::onMsgReception
virtual void onMsgReception(uint8_t *data, uint16_t size)=0
Generated on Wed Apr 9 2025 08:53:53 for iCub-main by
1.9.8