|
Arduino library for the I²C Sonar Range Finder SRF08
|
The main class of the Arduino library for the SRF08 sensor. More...
#include <SRF08.h>
Public Member Functions | |
| SRF08 () | |
| Main constructor of the SRF08 class. | |
| SRF08 (uint8_t address) | |
| Constructor of the SRF08 class with non-standard i2c address. More... | |
| ~SRF08 () | |
| Main destructor of the SRF08 class. | |
| void | init () |
| Initialize the SRF08 Sonar Range Finder. | |
| bool | startRangeReading () |
| Starts a new measurement with the SRF08 sensor if possible. More... | |
| void | startRangeReadingUNSAFE () |
| Starts a new measurement with the SRF08 sensor if possible, but without blocking features. More... | |
| bool | readRange () |
| Reads the current range measurement from the SRF08 sensor if possible. More... | |
| void | readRangeUNSAFE () |
| Reads the current range measurement from the SRF08 sensor if possible. This Methode allows unsafe range readings without minimum processing delay. More... | |
| bool | checkIfReadyForReading () |
| Checks if the SRF08 is ready to start a new range measurement. More... | |
| int16_t | getDistance () |
| Get the last measured distance of the SRF08 sensor. More... | |
| uint32_t | getTimeOfLastReading () |
| Get the system time at which the SRF08 sensor started the last range measurement. More... | |
| uint16_t | get_version () |
| Get the version of the library. More... | |
The main class of the Arduino library for the SRF08 sensor.
| SRF08::SRF08 | ( | uint8_t | address | ) |
Constructor of the SRF08 class with non-standard i2c address.
| address | new i2c address. |
| bool SRF08::startRangeReading | ( | ) |
Starts a new measurement with the SRF08 sensor if possible.
| void SRF08::startRangeReadingUNSAFE | ( | ) |
Starts a new measurement with the SRF08 sensor if possible, but without blocking features.
| bool SRF08::readRange | ( | ) |
Reads the current range measurement from the SRF08 sensor if possible.
| void SRF08::readRangeUNSAFE | ( | ) |
Reads the current range measurement from the SRF08 sensor if possible. This Methode allows unsafe range readings without minimum processing delay.
| bool SRF08::checkIfReadyForReading | ( | ) |
Checks if the SRF08 is ready to start a new range measurement.
| int16_t SRF08::getDistance | ( | ) |
Get the last measured distance of the SRF08 sensor.
| uint32_t SRF08::getTimeOfLastReading | ( | ) |
Get the system time at which the SRF08 sensor started the last range measurement.
| uint16_t SRF08::get_version | ( | ) |
Get the version of the library.
1.8.17