PCA9685 Driver
API reference
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
pca9685 Namespace Reference

Classes

class  I2cInterface
 CRTP-based template interface for I2C bus operations. More...
 
class  PCA9685
 Driver for the PCA9685 16-channel 12-bit PWM controller. More...
 

Enumerations

enum class  CtrlPin : uint8_t { OE = 0 }
 Identifies the hardware control pins of the PCA9685. More...
 
enum class  GpioSignal : uint8_t { INACTIVE = 0 , ACTIVE = 1 }
 Abstract signal level for control pins. More...
 

Functions

const char * GetDriverVersion () noexcept
 

Enumeration Type Documentation

◆ CtrlPin

enum class pca9685::CtrlPin : uint8_t
strong

Identifies the hardware control pins of the PCA9685.

Used with GpioSet() / GpioSetActive() / GpioSetInactive() to control the IC's dedicated GPIO pins through the I2cInterface.

The mapping from GpioSignal::ACTIVE / INACTIVE to physical HIGH / LOW is determined by the platform bus implementation:

  • OE: Active-low (ACTIVE → physical LOW, outputs enabled)
Enumerator
OE 

Output Enable (active-low on the physical pin)

◆ GpioSignal

enum class pca9685::GpioSignal : uint8_t
strong

Abstract signal level for control pins.

Decouples the driver's intent from the physical pin polarity.

Enumerator
INACTIVE 

Pin function is deasserted.

ACTIVE 

Pin function is asserted.

Function Documentation

◆ GetDriverVersion()

const char * pca9685::GetDriverVersion ( )
inlinenoexcept