|
|
| UnitPAJ7620U2 (const uint8_t addr=DEFAULT_ADDRESS) |
| |
|
virtual bool | begin () override |
| |
|
virtual void | update (const bool force=false) override |
| |
| uint8_t | rotation () const |
| | Get the rotation.
|
| |
| void | setRotate (const uint8_t rot) |
| | Set the roptation.
|
| |
|
paj7620u2::Frequency | frequency () const |
| | Gets the inner frequency.
|
| |
| bool | readFrequency (uint8_t &raw) |
| | Read the raw frequency.
|
| |
| bool | readFrequency (paj7620u2::Frequency &f) |
| | Read the frequency.
|
| |
| bool | writeFrequency (const paj7620u2::Frequency f) |
| | Write the frequency.
|
| |
|
bool | readHorizontalFlip (bool &flip) |
| | Read the horizontal flipping.
|
| |
|
bool | readVerticalFlip (bool &flip) |
| | Read the vertical flipping.
|
| |
|
bool | writeHorizontalFlip (const bool flip) |
| | Write the horizontal flipping.
|
| |
|
bool | writeVerticalFlip (const bool flip) |
| | Write the vertical flipping.
|
| |
|
|
config_t | config () |
| | Gets the configration.
|
| |
|
void | config (const config_t &cfg) |
| | Set the configration.
|
| |
|
|
paj7620u2::Gesture | gesture () const |
| | Oldest gesture.
|
| |
|
uint8_t | brightness () const |
| | Oldest brightness if Proximity mode.
|
| |
|
bool | approach () const |
| | Oldest approach status if Proximity mode.
|
| |
|
uint16_t | cursorX () const |
| | Oldest cursor X if Cursor mode.
|
| |
|
uint16_t | cursorY () const |
| | Oldest cursor Y if Cursor mode.
|
| |
|
| bool | startPeriodicMeasurement (const uint32_t intervalMs=0) |
| | Start periodic measurement in the current settings.
|
| |
| bool | startPeriodicMeasurement (const paj7620u2::Mode mode, const paj7620u2::Frequency freq, const uint32_t intervalMs) |
| | Start periodic measurement.
|
| |
| bool | stopPeriodicMeasurement () |
| | Stop periodic measurement.
|
| |
|
| bool | readGesture (paj7620u2::Gesture &gesture) |
| | Read gesture.
|
| |
| bool | readObjectCenter (uint16_t &x, uint16_t &y) |
| | Object center position.
|
| |
| bool | readObjectSize (uint16_t &sz) |
| | Read gesture object size.
|
| |
| bool | existsObject (bool &exists) |
| | Is the object present within the detection range?
|
| |
| bool | readNoObjectCount (uint8_t &cnt) |
| | State counter with no objects detected.
|
| |
| bool | readNoMotionCount (uint8_t &cnt) |
| | State counter which a non-moving object is detected.
|
| |
|
| bool | readProximity (uint8_t &brightness, uint8_t &approach) |
| | Read proximity.
|
| |
| bool | readApproachThreshold (uint8_t &high, uint8_t &low) |
| | Read the threshold for detect approach.
|
| |
| bool | writeApproachThreshold (const uint8_t high, const uint8_t low) |
| | Write the threshold for detect approach.
|
| |
|
| bool | readCursor (uint16_t &x, uint16_t &y) |
| | Cursor position.
|
| |
|
|
paj7620u2::Mode | mode () const |
| | Gets the detection mode.
|
| |
| bool | writeMode (const paj7620u2::Mode m) |
| | Write the detection mode.
|
| |
|
| bool | enable (const bool flag) |
| | Enable/disable sensor.
|
| |
|
bool | enable () |
| | enable sensor
|
| |
|
bool | disable () |
| | disable sensor
|
| |
|
bool | suspend () |
| | suspend
|
| |
|
bool | resume () |
| | resume from suspended
|
| |
|
|
bool | start_periodic_measurement (const uint32_t intervalMs=0) |
| |
|
bool | start_periodic_measurement (const paj7620u2::Mode mode, const paj7620u2::Frequency freq, const uint32_t intervalMs) |
| |
|
bool | stop_periodic_measurement () |
| |
|
| M5_UNIT_COMPONENT_PERIODIC_MEASUREMENT_ADAPTER_HPP_BUILDER (UnitPAJ7620U2, paj7620u2::Data) |
| |
|
bool | select_bank (const uint8_t bank, const bool force=false) |
| |
|
bool | read_banked_register (const uint16_t reg, uint8_t *buf, const size_t len) |
| |
|
bool | read_banked_register8 (const uint16_t reg, uint8_t &value) |
| |
|
bool | write_banked_register (const uint16_t reg, const uint8_t *buf, const size_t len) |
| |
|
bool | write_banked_register8 (const uint16_t reg, const uint8_t value) |
| |
|
bool | update_gesture (paj7620u2::Data &d) |
| |
|
bool | update_proximity (paj7620u2::Data &d) |
| |
|
bool | update_cursor (paj7620u2::Data &d) |
| |
|
bool | read_gesture (paj7620u2::Data &d) |
| |
|
bool | read_proximity (paj7620u2::Data &d) |
| |
|
bool | read_cursor (paj7620u2::Data &d) |
| |
|
bool | was_wakeup () |
| |
|
bool | read_chip_id (uint16_t &id) |
| |
|
bool | read_version (uint8_t &version) |
| |