#include <NewPing.h>
Public Member Functions | |
| boolean | check_timer () |
| unsigned int | convert_cm (unsigned int echoTime) |
| unsigned int | convert_in (unsigned int echoTime) |
| NewPing (uint8_t trigger_pin, uint8_t echo_pin, int max_cm_distance=MAX_SENSOR_DISTANCE) | |
| unsigned int | ping () |
| unsigned int | ping_cm () |
| unsigned int | ping_in () |
| unsigned int | ping_median (uint8_t it=5) |
| void | ping_timer (void(*userFunc)(void)) |
Static Public Member Functions | |
| static void | timer_ms (unsigned long frequency, void(*userFunc)(void)) |
| static void | timer_stop () |
| static void | timer_us (unsigned int frequency, void(*userFunc)(void)) |
Public Attributes | |
| unsigned long | ping_result |
Private Member Functions | |
| boolean | ping_trigger () |
| boolean | ping_wait_timer () |
Static Private Member Functions | |
| static void | timer_ms_cntdwn () |
| static void | timer_setup () |
Private Attributes | |
| uint8_t | _echoBit |
| volatile uint8_t * | _echoInput |
| unsigned long | _max_time |
| unsigned int | _maxEchoTime |
| uint8_t | _triggerBit |
| volatile uint8_t * | _triggerMode |
| volatile uint8_t * | _triggerOutput |
| NewPing::NewPing | ( | uint8_t | trigger_pin, |
| uint8_t | echo_pin, | ||
| int | max_cm_distance = MAX_SENSOR_DISTANCE |
||
| ) |
Definition at line 15 of file NewPing.cpp.
| boolean NewPing::check_timer | ( | ) |
Definition at line 116 of file NewPing.cpp.
| unsigned int NewPing::convert_cm | ( | unsigned int | echoTime | ) |
Definition at line 229 of file NewPing.cpp.
| unsigned int NewPing::convert_in | ( | unsigned int | echoTime | ) |
Definition at line 224 of file NewPing.cpp.
| unsigned int NewPing::ping | ( | ) |
Definition at line 36 of file NewPing.cpp.
| unsigned int NewPing::ping_cm | ( | ) |
Definition at line 50 of file NewPing.cpp.
| unsigned int NewPing::ping_in | ( | ) |
Definition at line 44 of file NewPing.cpp.
| unsigned int NewPing::ping_median | ( | uint8_t | it = 5 | ) |
Definition at line 56 of file NewPing.cpp.
| void NewPing::ping_timer | ( | void(*)(void) | userFunc | ) |
Definition at line 110 of file NewPing.cpp.
| boolean NewPing::ping_trigger | ( | ) | [private] |
Definition at line 83 of file NewPing.cpp.
| boolean NewPing::ping_wait_timer | ( | ) | [private] |
| void NewPing::timer_ms | ( | unsigned long | frequency, |
| void(*)(void) | userFunc | ||
| ) | [static] |
Definition at line 157 of file NewPing.cpp.
| void NewPing::timer_ms_cntdwn | ( | ) | [static, private] |
Definition at line 203 of file NewPing.cpp.
| void NewPing::timer_setup | ( | ) | [static, private] |
Definition at line 186 of file NewPing.cpp.
| void NewPing::timer_stop | ( | ) | [static] |
Definition at line 173 of file NewPing.cpp.
| void NewPing::timer_us | ( | unsigned int | frequency, |
| void(*)(void) | userFunc | ||
| ) | [static] |
Definition at line 143 of file NewPing.cpp.
uint8_t NewPing::_echoBit [private] |
volatile uint8_t* NewPing::_echoInput [private] |
unsigned long NewPing::_max_time [private] |
unsigned int NewPing::_maxEchoTime [private] |
uint8_t NewPing::_triggerBit [private] |
volatile uint8_t* NewPing::_triggerMode [private] |
volatile uint8_t* NewPing::_triggerOutput [private] |
| unsigned long NewPing::ping_result |