APM:Libraries
|
#include <AnalogIn_IIO.h>
Public Member Functions | |
AnalogSource_IIO (int16_t pin, float initial_value, float voltage_scaling) | |
float | read_average () |
float | read_latest () |
void | set_pin (uint8_t p) |
void | set_stop_pin (uint8_t p) |
void | set_settle_time (uint16_t settle_time_ms) |
float | voltage_average () |
float | voltage_latest () |
float | voltage_average_ratiometric () |
Private Member Functions | |
void | init_pins (void) |
void | select_pin (void) |
Private Attributes | |
float | _value |
float | _latest |
float | _sum_value |
float | _voltage_scaling |
uint8_t | _sum_count |
int16_t | _pin |
int | _pin_fd |
int | fd_analog_sources [IIO_ANALOG_IN_COUNT] |
Static Private Attributes | |
static const char * | analog_sources [] |
Friends | |
class | AnalogIn_IIO |
Definition at line 27 of file AnalogIn_IIO.h.
AnalogSource_IIO::AnalogSource_IIO | ( | int16_t | pin, |
float | initial_value, | ||
float | voltage_scaling | ||
) |
Definition at line 18 of file AnalogIn_IIO.cpp.
Referenced by AnalogIn_IIO::channel().
|
private |
Definition at line 30 of file AnalogIn_IIO.cpp.
Referenced by AnalogSource_IIO().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 50 of file AnalogIn_IIO.cpp.
Referenced by voltage_average().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 64 of file AnalogIn_IIO.cpp.
Referenced by read_average(), and voltage_latest().
|
private |
Definition at line 45 of file AnalogIn_IIO.cpp.
Referenced by AnalogSource_IIO(), and set_pin().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 97 of file AnalogIn_IIO.cpp.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 116 of file AnalogIn_IIO.cpp.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 113 of file AnalogIn_IIO.cpp.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 86 of file AnalogIn_IIO.cpp.
Referenced by voltage_average_ratiometric().
|
inlinevirtual |
Implements AP_HAL::AnalogSource.
Definition at line 38 of file AnalogIn_IIO.h.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 91 of file AnalogIn_IIO.cpp.
|
friend |
Definition at line 29 of file AnalogIn_IIO.h.
|
private |
Definition at line 41 of file AnalogIn_IIO.h.
Referenced by read_latest(), set_pin(), and voltage_latest().
|
private |
Definition at line 45 of file AnalogIn_IIO.h.
Referenced by select_pin(), and set_pin().
|
private |
Definition at line 46 of file AnalogIn_IIO.h.
Referenced by read_latest(), and select_pin().
|
private |
Definition at line 44 of file AnalogIn_IIO.h.
Referenced by read_average(), read_latest(), and set_pin().
|
private |
Definition at line 42 of file AnalogIn_IIO.h.
Referenced by read_average(), read_latest(), and set_pin().
|
private |
Definition at line 40 of file AnalogIn_IIO.h.
Referenced by read_average(), and set_pin().
|
private |
Definition at line 43 of file AnalogIn_IIO.h.
Referenced by read_latest().
|
staticprivate |
Definition at line 52 of file AnalogIn_IIO.h.
Referenced by init_pins().
|
private |
Definition at line 47 of file AnalogIn_IIO.h.
Referenced by init_pins(), and select_pin().