|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Unified handler for the PCA9685 16-channel 12-bit PWM controller. More...
#include <cstdint>#include <memory>#include <array>#include <cmath>#include "base/BaseGpio.h"#include "base/BasePwm.h"#include "base/BaseI2c.h"#include "core/hf-core-drivers/external/hf-pca9685-driver/inc/pca9685.hpp"#include "RtosMutex.h"Go to the source code of this file.
Classes | |
| class | HalI2cPca9685Comm |
| Concrete I2C communication adapter for PCA9685 using BaseI2c. More... | |
| class | Pca9685PwmAdapter |
| BasePwm adapter for all 16 PCA9685 PWM channels. More... | |
| class | Pca9685GpioPin |
| BaseGpio adapter for a single PCA9685 channel used as a digital output. More... | |
| class | Pca9685Handler |
| Unified, non-templated handler for a single PCA9685 PWM controller. More... | |
Unified handler for the PCA9685 16-channel 12-bit PWM controller.
This file provides the complete HAL-level integration for a single PCA9685 PWM controller device. It bridges the HardFOC base interfaces (BaseI2c, BasePwm, BaseGpio) with the templated pca9685::PCA9685<I2cType> driver from the hf-pca9685-driver library.
The file contains four layers:
The handler owns all its internal resources:
External managers (PwmManager, GpioManager) obtain shared_ptr references via GetPwmAdapter() and CreateGpioPin().
The handler uses RtosMutex for thread-safe access to: