16 / 30
iSense Ethernet Gateway User Guide
coalesenses
research to innovate
5.2.
send
void Enc28J60::send( const uint64 dest_addr, uint16 len, const uint8 buf,
uint8 options, Sender* sender );
Description:
Sends data using the Ethernet controller. The passed data will automatically embedded in an Ethernet
frame and sent to the interface with
dest_addr
.
Parameters:
dest_addr
Destination address of the data
len
Length of data to send
buf
Pointer to the data to send
options
Not considered
sender
Not considered
5.3.
enable
void Enc28J60::enable( );
Description:
Switches on the Ethernet controller
5.4.
enable
void Enc28J60::disable( );
Description:
Switches off the Ethernet controller
5.5.
set_receiver
bool Enc28J60::set_receiver( Receiver* receiver );
Description:
Sets an instance of class
Receiver
, that will be called upon reception of Ethernet packets.
Parameters:
receiver
Instance of class Receiver which should get passed received packets