LEDDriver_NXP_Arduino 0.4.0
LED driver device operation sample code for Arduino
|
Public Member Functions | |
PCA995x_SPI (const uint8_t n_ch, const uint8_t PWM_r, const uint8_t IREF_r, const uint8_t IREFALL_r, const uint8_t *ar, const uint8_t oe=9) | |
void | txrx (uint8_t *data, int size) |
void | reg_access (uint8_t reg, uint8_t val) |
void | reg_access (uint8_t reg, uint8_t *vp, int len) |
uint8_t | reg_access (uint8_t reg) |
void | reg_access_r (uint8_t reg, uint8_t *vp, int len) |
void | reg_w (uint8_t reg, uint8_t val) |
void | reg_w (uint8_t reg, uint8_t *vp, int len) |
uint8_t | reg_r (uint8_t reg) |
void | reg_r (uint8_t reg, uint8_t *vp, int len) |
void | write_r8 (uint8_t reg, uint8_t val) |
uint8_t | read_r8 (uint8_t reg) |
void | irefall (uint8_t iref) |
void | pwm (uint8_t ch, float value) |
void | pwm (float *values) |
![]() | |
PCA995x (const uint8_t n_ch, const uint8_t PWM_r, const uint8_t IREF_r, const uint8_t IREFALL_r, const uint8_t *ar, const 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) |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
enum | board { NONE , ARDUINO_SHIELD } |
![]() | |
const uint8_t * | arp |
![]() | |
const uint8_t | n_channel |
![]() | |
const uint8_t | reg_IREF |
const uint8_t | reg_IREFALL |
![]() | |
const uint8_t | reg_PWM |
const uint8_t | oe_pin |
Definition at line 132 of file LEDDriver.h.
PCA995x_SPI::PCA995x_SPI | ( | const uint8_t | n_ch, |
const uint8_t | PWM_r, | ||
const uint8_t | IREF_r, | ||
const uint8_t | IREFALL_r, | ||
const uint8_t * | ar, | ||
const uint8_t | oe = 9 |
||
) |
Definition at line 133 of file LEDDriver.cpp.
|
virtual |
Definition at line 140 of file LEDDriver.cpp.
void PCA995x_SPI::irefall | ( | uint8_t | iref | ) |
Set IREFALL value (current setting for all channels)
value | current value in float (0.0 ~ 1.0) |
Definition at line 219 of file LEDDriver.cpp.
Referenced by PCA9957::init().
void PCA995x_SPI::pwm | ( | float * | values | ) |
Definition at line 229 of file LEDDriver.cpp.
void PCA995x_SPI::pwm | ( | uint8_t | ch, |
float | value | ||
) |
Definition at line 224 of file LEDDriver.cpp.
uint8_t PCA995x_SPI::read_r8 | ( | uint8_t | reg | ) |
Definition at line 214 of file LEDDriver.cpp.
|
virtual |
Implements LEDDriver.
Definition at line 171 of file LEDDriver.cpp.
|
virtual |
Implements LEDDriver.
Definition at line 158 of file LEDDriver.cpp.
|
virtual |
Implements LEDDriver.
Definition at line 151 of file LEDDriver.cpp.
|
virtual |
Implements LEDDriver.
Definition at line 182 of file LEDDriver.cpp.
uint8_t PCA995x_SPI::reg_r | ( | uint8_t | reg | ) |
Definition at line 199 of file LEDDriver.cpp.
void PCA995x_SPI::reg_r | ( | uint8_t | reg, |
uint8_t * | vp, | ||
int | len | ||
) |
Definition at line 204 of file LEDDriver.cpp.
void PCA995x_SPI::reg_w | ( | uint8_t | reg, |
uint8_t * | vp, | ||
int | len | ||
) |
Definition at line 194 of file LEDDriver.cpp.
void PCA995x_SPI::reg_w | ( | uint8_t | reg, |
uint8_t | val | ||
) |
Definition at line 189 of file LEDDriver.cpp.
void PCA995x_SPI::txrx | ( | uint8_t * | data, |
int | size | ||
) |
Definition at line 144 of file LEDDriver.cpp.
void PCA995x_SPI::write_r8 | ( | uint8_t | reg, |
uint8_t | val | ||
) |
Definition at line 209 of file LEDDriver.cpp.