PCA9555

Dependents:   Telliskivi2_2014 PowerManagementBoard_Rev_A_2017

Revision:
4:fe1637c9409f
Parent:
2:fae93e0841f6
Child:
6:0373a167d58b
--- a/PCA9555.h	Sat Sep 14 17:19:41 2013 +0000
+++ b/PCA9555.h	Sat Sep 14 22:57:43 2013 +0000
@@ -2,7 +2,6 @@
 #define MBED_PCA9555_H
 
 #include "mbed.h"
-//#include "PinDetect.h"
  
 /** Interface to the PCA9555 I2C 16 Bit IO expander */
 class PCA9555 {
@@ -14,11 +13,12 @@
      *
      * @param sda The I2C data pin
      * @param scl The I2C clock pin
+     * @param interruptPin The pin connected to PCA9555 interrupt
      * @param address The I2C address for this PCA9555
      */
     PCA9555(PinName sda, PinName scl, PinName interrupPin, int address);
  
-    /** Read the IO pin level
+    /** Read the IO pin levels
      *
      * @return The two bytes read
      */
@@ -30,11 +30,34 @@
      */
     void write(int data);
     
+    /** Set one pin
+     *
+     * @param pinNumber The number of pin to set
+     */
     void setPin(unsigned int pinNumber);
+    
+    /** Clear one pin
+     *
+     * @param pinNumber The number of pin to clear
+     */
     void clearPin(unsigned int pinNumber);
+    
+    /** Toggle one pin
+     *
+     * @param pinNumber The number of pin to toggle
+     */
     void togglePin(unsigned int pinNumber);
+    
+    /** Get state of pin
+     *
+     * @param pinNumber The number of pin
+     */
     bool getPin(unsigned int pinNumber);
     
+    /** Set direction of pin
+     *
+     * @param pinNumber The number of pin to set
+     */
     void setDirection(int data);
     
     void change(void (*function)(void));