Settings for behavior of VL53L0X GPIO pin.
More...
#include <fastarduino/devices/vl53l0x_types.h>
◆ sample_ready()
static constexpr GPIOSettings devices::vl53l0x::GPIOSettings::sample_ready |
( |
bool |
high_polarity = false | ) |
|
|
inlinestaticconstexpr |
Create GPIOSettings for interrupt triggered when range sample is ready.
- Parameters
-
high_polarity | force GPIO interrupt polarity to HIGH; this is not advised as most breakouts include a pullup resistor. |
Definition at line 387 of file vl53l0x_types.h.
◆ low_threshold() [1/2]
static constexpr GPIOSettings devices::vl53l0x::GPIOSettings::low_threshold |
( |
uint16_t |
threshold, |
|
|
bool |
high_polarity = false |
|
) |
| |
|
inlinestaticconstexpr |
Create GPIOSettings for interrupt triggered when range is under threshold
.
- Parameters
-
threshold | the low threshold (in mm) under which an interrupt shall be triggered |
high_polarity | force GPIO interrupt polarity to HIGH; this is not advised as most breakouts include a pullup resistor. |
Definition at line 400 of file vl53l0x_types.h.
◆ high_threshold() [1/2]
static constexpr GPIOSettings devices::vl53l0x::GPIOSettings::high_threshold |
( |
uint16_t |
threshold, |
|
|
bool |
high_polarity = false |
|
) |
| |
|
inlinestaticconstexpr |
Create GPIOSettings for interrupt triggered when range is above threshold
.
- Parameters
-
threshold | the high threshold (in mm) above which an interrupt shall be triggered |
high_polarity | force GPIO interrupt polarity to HIGH; this is not advised as most breakouts include a pullup resistor. |
Definition at line 413 of file vl53l0x_types.h.
◆ out_of_window()
static constexpr GPIOSettings devices::vl53l0x::GPIOSettings::out_of_window |
( |
uint16_t |
low_threshold, |
|
|
uint16_t |
high_threshold, |
|
|
bool |
high_polarity = false |
|
) |
| |
|
inlinestaticconstexpr |
Create GPIOSettings for interrupt triggered when range is outside a window between low_threshold
and high_threshold
.
- Parameters
-
low_threshold | the low threshold (in mm) under which an interrupt shall be triggered |
high_threshold | the high threshold (in mm) above which an interrupt shall be triggered |
high_polarity | force GPIO interrupt polarity to HIGH; this is not advised as most breakouts include a pullup resistor. |
Definition at line 428 of file vl53l0x_types.h.
◆ function()
GPIOFunction devices::vl53l0x::GPIOSettings::function |
( |
| ) |
const |
|
inline |
Return the current GPIO interrupt trigger source.
Definition at line 437 of file vl53l0x_types.h.
◆ high_polarity()
bool devices::vl53l0x::GPIOSettings::high_polarity |
( |
| ) |
const |
|
inline |
Return the current polarity level of GPIO interrupts.
Definition at line 444 of file vl53l0x_types.h.
◆ low_threshold() [2/2]
uint16_t devices::vl53l0x::GPIOSettings::low_threshold |
( |
| ) |
const |
|
inline |
◆ high_threshold() [2/2]
uint16_t devices::vl53l0x::GPIOSettings::high_threshold |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: