pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
  • Pebble Firmware
    • Overview
    • Playground
    • Application SDK
  • Development
    • The pbl CLI
    • Build system
    • Samples
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Drivers
      • Device model
      • Simulators
      • Buses and I/O
      • Clocks, power and timing
      • Memory and storage
      • Display and graphics
      • Sensors and input
      • Audio and haptics
      • Power supply
      • System
    • Subsystems
    • Libraries
    • Third-party
  • Hardware
    • Boards
    • Board Add-ons
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

PPG front end

A PPG front end lights LEDs and measures the light coming back on its photodiodes: green, red and infrared intensity channels, the ambient light, and the light it measures for wear detection. Its consumer sets the LED current and the gain of each channel and receives batches of raw samples; gain control and the algorithms that turn them into heart rate, SpO2 or wear verdicts are the consumer’s.

Directory

drivers/sensor/ppg

Headers

pbl/drivers/sensor.h, pbl/drivers/sensor/driver.h

Kconfig

CONFIG_SENSOR_PPG, enabled by the application, selects CONFIG_SENSOR

Role

PPG

API

API reference

Drivers

Driver

Compatible

Kconfig

Goodix GH3x2x

goodix,gh3026

CONFIG_SENSOR_PPG_GH3X2X

Simulator

—

CONFIG_SENSOR_PPG_SIM

Generated from PebbleOS 7416f78a1. This page is maintained in the pebbleos repository: docs/drivers/ppg.md.