LEDDriver_NXP_Arduino 0.2.0
LED driver device operation sample code for Arduino
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PCA995x_I2C Class Reference

#include <LEDDriver.h>

Inheritance diagram for PCA995x_I2C:
PCA995x LEDDriver PCA9955B PCA9956B

Public Member Functions

 PCA995x_I2C (uint8_t i2c_address, uint8_t n_ch, uint8_t PWM_r, uint8_t IREF_r, uint8_t IREFALL_r, uint8_t oe=8)
 
virtual ~PCA995x_I2C ()
 
void reg_access (uint8_t reg, uint8_t val)
 
void reg_access (uint8_t reg, uint8_t *vp, int len)
 
- Public Member Functions inherited from PCA995x
 PCA995x (uint8_t n_ch, uint8_t PWM_r, uint8_t IREF_r, uint8_t IREFALL_r, uint8_t oe=8)
 
virtual ~PCA995x ()
 
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 ~LEDDriver ()
 
virtual void reg_access (uint8_t reg, uint8_t val)=0
 
virtual void reg_access (uint8_t reg, uint8_t *vp, int len)=0
 
void pwm (uint8_t ch, float value)
 
void pwm (float *values)
 
void flush (void)
 
void buffer_enable (bool flag)
 

Additional Inherited Members

- Public Types inherited from LEDDriver
enum  board { NONE , ARDUINO_SHIELD }
 
- Protected Attributes inherited from PCA995x
const uint8_t reg_IREF
 
const uint8_t reg_IREFALL
 
- Protected Attributes inherited from LEDDriver
const uint8_t n_channel
 
const uint8_t reg_PWM
 
const uint8_t oe_pin
 
uint8_t * bp
 

Detailed Description

Definition at line 103 of file LEDDriver.h.

Constructor & Destructor Documentation

◆ PCA995x_I2C()

PCA995x_I2C::PCA995x_I2C ( uint8_t  i2c_address,
uint8_t  n_ch,
uint8_t  PWM_r,
uint8_t  IREF_r,
uint8_t  IREFALL_r,
uint8_t  oe = 8 
)

Definition at line 97 of file LEDDriver.cpp.

◆ ~PCA995x_I2C()

PCA995x_I2C::~PCA995x_I2C ( )
virtual

Definition at line 105 of file LEDDriver.cpp.

Member Function Documentation

◆ reg_access() [1/2]

void PCA995x_I2C::reg_access ( uint8_t  reg,
uint8_t *  vp,
int  len 
)
virtual

Implements LEDDriver.

Definition at line 114 of file LEDDriver.cpp.

◆ reg_access() [2/2]

void PCA995x_I2C::reg_access ( uint8_t  reg,
uint8_t  val 
)
virtual

Implements LEDDriver.

Definition at line 109 of file LEDDriver.cpp.


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