KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
133:e36dcfc2d756
Parent:
132:a5d7a8541683
Child:
136:224e03d5c31f
--- a/RA8875.h	Sun Sep 04 16:54:34 2016 +0000
+++ b/RA8875.h	Mon Oct 17 00:42:47 2016 +0000
@@ -2538,6 +2538,7 @@
     ///
     void AttachIdleHandler(IdleCallback_T callback = NULL) { idle_callback = callback; }
 
+
 #ifdef PERF_METRICS
     /// Clear the performance metrics to zero.
     void ClearPerformance();
@@ -2666,6 +2667,31 @@
     ///
     int _external_getCharWidth(int c);
     
+    /// Write color to an RGB register set
+    ///
+    /// This API takes a color value, and writes it into the specified
+    /// color registers, which are a trio of 3 registers. The actual
+    /// trio write is performed based on whether the display is configured
+    /// for 8 or 16 bits per pixel.
+    ///
+    /// @param[in] regAddr is the register address starting the trio
+    /// @param[in] color is the color to write
+    /// @returns success/failure code. See @ref RetCode_t.
+    ///
+    RetCode_t _writeColorTrio(uint8_t regAddr, color_t color);
+    
+    /// Read color from an RGB register set
+    ///
+    /// This API reads a color value from a trio of registers. The actual
+    /// trio write is performed based on whether the display is configured
+    /// for 8 or 16 bits per pixel.
+    ///
+    /// @param[in] regAddr is the register address starting the trio
+    /// @returns color_t value
+    ///
+    color_t _readColorTrio(uint8_t regAddr);
+    
+    
     /// Convert a 16-bit color value to an 8-bit value
     ///
     /// @param[in] c16 is the 16-bit color value to convert.