9 / 30
iSense Ethernet Gateway User Guide
coalesenses
research to innovate
bool full_duplex );
Description:
Extended constructor of the Net10 module, which allows to set the MAC-Address of the Ethernet
interface, the length of the receive buffer and, and whether or not the interface should operate in full
duplex mode. Instances of
SDCard
and
Enc28J60
are created as well, when activated in the systems
configuration file
isense/config.h
.
Parameters:
os
Reference to the operating system class
mac_address
Desired link-layer address of the interface. Only the lower
48bits will be considered.
rx_length
Desired length of the receive buffer
full_duplex
Sets the interface to full duplex when set to
true
3.2.
Standard Constructor
Net10Module::Net10Module( Os &os );
Description:
Initializes the
Net10Module
class. By default, the LEDs are switched off. Instances of
SDCard
and
Enc28J60
are created as well, when activated in the systems configuration file
isense/config.h
.
Parameters:
os
Reference to the operating system class
Os
3.3.
set_led
void Net10Module::set_led( uint8 led, bool on );
Description:
Switches on the modules LEDs (regardless of prior state).
Parameters:
led
Number of LED to use. Use 0 to switch on LED1 and 1 to switch on LED2.
on
Turns the LED on when set to
true
, turns the LED off when set to
false