-131-
v6.3
Working environment
Accelerometer
Files: WaspACC.h, WaspACC.cpp
The functions needed for reading the accelerometer are defined in these files. The functions needed to activate or deactivate
interruptions in this sensor are also defined.
Energy Control
Files: WaspPWR.h, WaspPWR.cpp
The functions needed to activate the different low consumption modes (Sleep, Deep Sleep o Hibernate). The functions needed
to obtain the remaining battery value, close the I2C bus and clear interruptions that have been captured are also defined.
RTC
Files: WaspRTC.h, WaspRTC.cpp
The functions needed to obtain the date and time from the internal clock (RTC). The functions needed to activate the alarms and
interruptions generated by this module are also defined.
USB
Files: WaspUSB.h, WaspUSB.cpp
The functions needed to use the USB and send/receive information from the computer.
Interruptions
Files: Winterruptions.c
The functions needed for interruptions activation and their subsequent treatment are defined in this file. The interruption
subroutines that run when interruptions are captured are defined, as well as the functions for interruption activation and
deactivation. Flags corresponding to these functions are marked.
XBee Core
Files: WaspXBeeCore.h, WaspXBee.cpp
The functions that are common to all the XBee modules are defined, such as sending and receiving packets, node discovery or
configuration functions that most XBee modules available on Waspmote have. Besides, there are constants used in the libraries
related to the XBee modules.
GPRS_Pro Core
Files: WaspGPRS_Pro_core.h, WaspGPRS_Pro_core.cpp
The functions that are common to GPRS Pro and GPRS+GPS modules are defined, such as send AT commands, HTTP request,
FTP transfers that GPRS modules on Waspmote have. Besides, there are constants used in the libraries related to the GPRS Pro
and GPRS+GPS modules.
26.3.2. Libraries folder
The
‘hardware/libraries’
folder contains the different libraries dedicated to the different modules that can be used with
Waspmote. It is necessary to include the library to the code when using it. The subfolders included in libraries are:
GPRS Pro
Files: WaspGPRS_Pro.h, WaspGPRS_Pro.cpp
The functions needed for receiving and sending calls, SMS or data using the GSM/GPRS network.