Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
NewPing Class Reference

#include <NewPing.h>

List of all members.

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

Detailed Description

Definition at line 132 of file NewPing.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

uint8_t NewPing::_echoBit [private]

Definition at line 151 of file NewPing.h.

volatile uint8_t* NewPing::_echoInput [private]

Definition at line 154 of file NewPing.h.

unsigned long NewPing::_max_time [private]

Definition at line 156 of file NewPing.h.

unsigned int NewPing::_maxEchoTime [private]

Definition at line 155 of file NewPing.h.

uint8_t NewPing::_triggerBit [private]

Definition at line 150 of file NewPing.h.

volatile uint8_t* NewPing::_triggerMode [private]

Definition at line 153 of file NewPing.h.

volatile uint8_t* NewPing::_triggerOutput [private]

Definition at line 152 of file NewPing.h.

unsigned long NewPing::ping_result

Definition at line 143 of file NewPing.h.


The documentation for this class was generated from the following files:


segbot_firmware
Author(s): Jose Bigio, Jack O'Quin, Tim Eckel (NewPing library)
autogenerated on Thu Jun 6 2019 21:37:01