-13-
v7.0
General considerations
The main functions are listed here:
Basic functions
WaspSX1272();
Class constructor.
ON();
Opens the SPI and switches the SX1272 module on.
OFF();
Closes the SPI and switches the SX1272 module off.
readRegister();
Reads the indicated internal register.
writeRegister();
Writes the indicated internal register.
clearFlags();
Clears the interruption flags.
Configuration functions
setLORA();
Sets the module in LoRa
TM
transmission mode.
getMode();
Gets the BW, CR and SF of the LoRa
TM
modulation.
setMode();
Sets the BW, CR and SF of the LoRa
TM
modulation.
getHeader();
Indicates if module is configured in implicit or explicit header
mode.
setHeaderON();
Sets the module in explicit header mode (header is sent).
setHeaderOFF();
Sets the module in implicit header mode (header is not sent).
getCRC();
Indicates if module is configured with or without checking
CRC.
setCRC_ON();
Sets the module with CRC on.
setCRC_OFF();
Sets the module with CRC off.
getChannel();
Indicates the frequency channel within the module is
configured.
setChannel();
Sets the indicated frequency channel in the module.
getPower();
Gets the signal power within the module is configured.
setPower();
Sets the signal power indicated in the module.
setPowerNum();
Sets the signal power indicated in the module.
getPreambleLength();
Gets the preamble length from the module.
setPreambleLength();
Sets the preamble length in the module.
getPayloadLength();
Gets the payload length from the module.
setPacketLength();
Sets the packet length in the module.
getNodeAddress();
Gets the node address in the module.
setNodeAddress();
Sets the node address in the module.
setRetries();
Sets the maximum number of retries.
getMaxCurrent();
Gets the current supply limit of the internal power amplifier.
setMaxCurrent();
Limits the current supply of the internal power amplifier.
getTemp();
Gets the temperature from the measurement block module.
getRegs();
Gets the content of different registers.