HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
Loading...
Searching...
No Matches
Pca9685Handler.cpp File Reference

Implementation of the PCA9685 PWM controller handler. More...

#include <string.h>
#include <cmath>
#include "Pca9685Handler.h"
#include "handlers/logger/Logger.h"
Include dependency graph for Pca9685Handler.cpp:

Detailed Description

Implementation of the PCA9685 PWM controller handler.

Implements all four layers defined in Pca9685Handler.h:

  1. HalI2cPca9685Comm – CRTP I2C communication adapter
  2. Pca9685Handler – Main handler (init, PWM ops, config, factory)
  3. Pca9685PwmAdapter – Multi-channel BasePwm adapter
  4. Pca9685GpioPin – Per-channel BaseGpio wrapper

All driver calls use the PascalCase API of the updated hf-pca9685-driver (pca9685::PCA9685<I2cType>). Error handling follows the driver's error-flag model: individual methods return bool, with accumulated error flags available via GetErrorFlags().

See also
Pca9685Handler.h for architectural overview and Doxygen documentation.
Author
HardFOC Team
Date
2025