LEDDriver_NXP_Arduino 1.0.3
LED driver device operation sample code for Arduino
Loading...
Searching...
No Matches
PCA995x Class Referenceabstract

#include <LEDDriver.h>

Inheritance diagram for PCA995x:
LEDDriver PCA995x_I2C PCA995x_SPI PCA9955B PCA9956B PCA9957

Public Member Functions

 PCA995x (uint8_t n_ch, uint8_t PWM_r, uint8_t IREF_r, uint8_t IREFALL_r, const uint8_t *ar, uint8_t oe=8)
virtual void begin (float current=0.1, board env=NONE, bool buffered=false)
virtual void init (float current)=0
void irefall (uint8_t iref)
Public Member Functions inherited from LEDDriver
 LEDDriver (uint8_t n_ch, uint8_t PWM_r, uint8_t oe)
virtual void reg_access (uint8_t reg, uint8_t val)=0
virtual void reg_access (uint8_t reg, uint8_t *vp, int len)=0
virtual uint8_t reg_access (uint8_t reg)=0
virtual void reg_access_r (uint8_t reg, uint8_t *vp, int len)=0
void pwm (uint8_t ch, float value)
void pwm (float *values)
void buffer_enable (bool flag)
void flush (void)

Public Attributes

const uint8_t * arp
Public Attributes inherited from LEDDriver
const uint8_t n_channel

Protected Attributes

const uint8_t reg_IREF
const uint8_t reg_IREFALL
Protected Attributes inherited from LEDDriver
const uint8_t reg_PWM
const uint8_t oe_pin

Additional Inherited Members

Public Types inherited from LEDDriver
enum  board { NONE , ARDUINO_SHIELD }

Detailed Description

PCA995x class

Base class to abstract behavior of PCA995x series

Definition at line 93 of file LEDDriver.h.

Constructor & Destructor Documentation

◆ PCA995x()

PCA995x::PCA995x ( uint8_t n_ch,
uint8_t PWM_r,
uint8_t IREF_r,
uint8_t IREFALL_r,
const uint8_t * ar,
uint8_t oe = 8 )

Definition at line 65 of file LEDDriver.cpp.

◆ ~PCA995x()

PCA995x::~PCA995x ( )
virtual

Definition at line 72 of file LEDDriver.cpp.

Member Function Documentation

◆ begin()

void PCA995x::begin ( float current = 0.1,
board env = NONE,
bool buffered = false )
virtual

Definition at line 76 of file LEDDriver.cpp.

◆ init()

virtual void PCA995x::init ( float current)
pure virtual

Implemented in PCA9955B, PCA9956B, and PCA9957.

◆ irefall()

void PCA995x::irefall ( uint8_t iref)

Set IREFALL value (current setting for all channels)

Parameters
irefcurrent setting as uint8_t (0 to 255)

Definition at line 88 of file LEDDriver.cpp.

Referenced by PCA9955B::init(), and PCA9956B::init().

Member Data Documentation

◆ arp

const uint8_t* PCA995x::arp

Definition at line 113 of file LEDDriver.h.

◆ reg_IREF

const uint8_t PCA995x::reg_IREF
protected

Definition at line 109 of file LEDDriver.h.

◆ reg_IREFALL

const uint8_t PCA995x::reg_IREFALL
protected

Definition at line 110 of file LEDDriver.h.


The documentation for this class was generated from the following files: