A feature complete driver for the PCA9952/55 LED driver from NXP.

Dependents:   PCA9955_HelloWorld

Revision:
8:12a800c51b35
Parent:
7:7dd3cc73e873
Child:
9:a9f91f91633b
--- a/PCA9955.h	Tue Apr 08 17:43:57 2014 +0000
+++ b/PCA9955.h	Tue Apr 08 20:31:22 2014 +0000
@@ -487,6 +487,13 @@
      */
     void getOutputDuties(float* duties);
 
+    /** Set all of the output duty cycles from an array of percents
+     *
+     * @param duties Pointer to any array of 16 duty cycles as floats (0.0 to 1.0).
+     * @param altAddr An optional, alternate address such as a subaddress or LED All Call address (defaults to NULL).
+     */
+    void setOutputDuties(float* duties, int altAddr = NULL);
+
     /** Set all of the output duty cycles to the same value in percent
      *
      * @param duty The new duty cycle for all outputs as a float (0.0 to 1.0).
@@ -494,19 +501,19 @@
      */
     void allOutputDuties(float duty, int altAddr = NULL);
 
-    /** Set all of the output duty cycles from an array of percents
-     *
-     * @param duties Pointer to any array of 16 duty cycles as floats (0.0 to 1.0).
-     * @param altAddr An optional, alternate address such as a subaddress or LED All Call address (defaults to NULL).
-     */
-    void allOutputDuties(float* duties, int altAddr = NULL);
-
     /** Read all of the output duty cycles into an array
      *
      * @param duties Pointer to any array for 16 duty cycles as unsigned chars (0 to 255).
      */
     void getOutputDuties_char(char* duties);
 
+    /** Set all of the output duty cycles from an array
+     *
+     * @param duties Pointer to any array of 16 duty cycles as unsigned chars (0 to 255).
+     * @param altAddr An optional, alternate address such as a subaddress or LED All Call address (defaults to NULL).
+     */
+    void setOutputDuties_char(char* duties, int altAddr = NULL);
+
     /** Set all of the output duty cycles to the same value
      *
      * @param duty The new duty cycle for all outputs as an unsigned char (0 to 255).
@@ -514,19 +521,19 @@
      */
     void allOutputDuties_char(char duty, int altAddr = NULL);
 
-    /** Set all of the output duty cycles from an array
-     *
-     * @param duties Pointer to any array of 16 duty cycles as unsigned chars (0 to 255).
-     * @param altAddr An optional, alternate address such as a subaddress or LED All Call address (defaults to NULL).
-     */
-    void allOutputDuties_char(char* duties, int altAddr = NULL);
-
     /** Read all of the output current references into an array as percents
      *
      * @param irefs Pointer to any array for 16 current references as floats (0.0 to 1.0).
      */
     void getOutputCurrents(float* irefs);
 
+    /** Set all of the output current references from an array of percents
+     *
+     * @param irefs Pointer to any array of 16 current references as floats (0.0 to 1.0).
+     * @param altAddr An optional, alternate address such as a subaddress or LED All Call address (defaults to NULL).
+     */
+    void setOutputCurrents(float* irefs, int altAddr = NULL);
+
     /** Set all of the output current references to the same value in percent
      *
      * @param iref The new current reference for all outputs as a float (0.0 to 1.0).
@@ -534,19 +541,19 @@
      */
     void allOutputCurrents(float iref, int altAddr = NULL);
 
-    /** Set all of the output current references from an array of percents
-     *
-     * @param irefs Pointer to any array of 16 current references as floats (0.0 to 1.0).
-     * @param altAddr An optional, alternate address such as a subaddress or LED All Call address (defaults to NULL).
-     */
-    void allOutputCurrents(float* irefs, int altAddr = NULL);
-
     /** Read all of the output current references into an array
      *
      * @param irefs Pointer to any array for 16 current references as unsigned chars (0 to 255).
      */
     void getOutputCurrents_char(char* irefs);
 
+    /** Set all of the output current references from an array
+     *
+     * @param irefs Pointer to any array of 16 current references as unsigned chars (0 to 255).
+     * @param altAddr An optional, alternate address such as a subaddress or LED All Call address (defaults to NULL).
+     */
+    void setOutputCurrents_char(char* irefs, int altAddr = NULL);
+
     /** Set all of the output current references to the same value
      *
      * @param iref The new current reference for all outputs as an unsigned char (0 to 255).
@@ -554,13 +561,6 @@
      */
     void allOutputCurrents_char(char iref, int altAddr = NULL);
 
-    /** Set all of the output current references from an array
-     *
-     * @param irefs Pointer to any array of 16 current references as unsigned chars (0 to 255).
-     * @param altAddr An optional, alternate address such as a subaddress or LED All Call address (defaults to NULL).
-     */
-    void allOutputCurrents_char(char* irefs, int altAddr = NULL);
-
     /** Perform a fault test on all enabled outputs
      *
      * @returns The fault test flags as FaultFlags enum values OR'd together.