APM:Libraries
|
#include <AP_LeakDetector.h>
Classes | |
struct | LeakDetector_State |
Public Types | |
enum | LeakDetector_Type { LEAKDETECTOR_TYPE_NONE = 0, LEAKDETECTOR_TYPE_DIGITAL = 1, LEAKDETECTOR_TYPE_ANALOG = 2 } |
Public Member Functions | |
AP_LeakDetector () | |
AP_LeakDetector (const AP_LeakDetector &other)=delete | |
AP_LeakDetector & | operator= (const AP_LeakDetector &)=delete |
bool | get_status (void) const |
void | set_detect (void) |
void | init (void) |
bool | update (void) |
Static Public Attributes | |
static const struct AP_Param::GroupInfo | var_info [] |
Private Attributes | |
AP_LeakDetector_Backend * | _drivers [LEAKDETECTOR_MAX_INSTANCES] |
LeakDetector_State | _state [LEAKDETECTOR_MAX_INSTANCES] |
bool | _status |
uint32_t | _last_detect_ms |
AP_Int8 | _type [LEAKDETECTOR_MAX_INSTANCES] |
AP_Int8 | _pin [LEAKDETECTOR_MAX_INSTANCES] |
AP_Int8 | _default_reading [LEAKDETECTOR_MAX_INSTANCES] |
Friends | |
class | AP_LeakDetector_Analog |
class | AP_LeakDetector_Digital |
Definition at line 11 of file AP_LeakDetector.h.
Enumerator | |
---|---|
LEAKDETECTOR_TYPE_NONE | |
LEAKDETECTOR_TYPE_DIGITAL | |
LEAKDETECTOR_TYPE_ANALOG |
Definition at line 23 of file AP_LeakDetector.h.
AP_LeakDetector::AP_LeakDetector | ( | ) |
|
delete |
|
inline |
void AP_LeakDetector::init | ( | void | ) |
Definition at line 66 of file AP_LeakDetector.cpp.
Referenced by get_status().
|
delete |
void AP_LeakDetector::set_detect | ( | void | ) |
Definition at line 103 of file AP_LeakDetector.cpp.
Referenced by get_status().
bool AP_LeakDetector::update | ( | void | ) |
Definition at line 85 of file AP_LeakDetector.cpp.
Referenced by get_status().
|
friend |
Definition at line 13 of file AP_LeakDetector.h.
Referenced by init().
|
friend |
Definition at line 14 of file AP_LeakDetector.h.
Referenced by init().
|
private |
Definition at line 57 of file AP_LeakDetector.h.
Referenced by AP_LeakDetector_Digital::read(), and AP_LeakDetector_Analog::read().
|
private |
Definition at line 49 of file AP_LeakDetector.h.
Referenced by AP_LeakDetector(), init(), and update().
|
private |
Definition at line 53 of file AP_LeakDetector.h.
Referenced by set_detect(), and update().
|
private |
Definition at line 56 of file AP_LeakDetector.h.
Referenced by AP_LeakDetector_Analog::AP_LeakDetector_Analog(), init(), AP_LeakDetector_Digital::read(), and AP_LeakDetector_Analog::read().
|
private |
Definition at line 50 of file AP_LeakDetector.h.
Referenced by AP_LeakDetector(), init(), and update().
|
private |
Definition at line 52 of file AP_LeakDetector.h.
Referenced by get_status(), and update().
|
private |
Definition at line 55 of file AP_LeakDetector.h.
|
static |
Definition at line 46 of file AP_LeakDetector.h.
Referenced by AP_LeakDetector().