To support GR-PEACH

Dependents:   GR-PEACH_Azure_Speech

Fork of TLV320_RBSP by Renesas

Revision:
2:b1fab4a2b59d
Parent:
1:4b34a496efac
Child:
3:db6504d3f914
--- a/TLV320_RBSP.h	Mon Jun 22 09:17:17 2015 +0000
+++ b/TLV320_RBSP.h	Tue Aug 18 04:06:41 2015 +0000
@@ -35,7 +35,6 @@
 
     /** Create a TLV320_RBSP object defined on the I2C port
      * 
-     * @param xout AUDIO_X1 clock output
      * @param cs  Control port input latch/address select (codec pin)
      * @param sda I2C data line pin
      * @param scl I2C clock line pin
@@ -47,7 +46,7 @@
      * @param max_write_num The upper limit of write buffer (SSIF)
      * @param max_read_num  The upper limit of read buffer (SSIF)
      */
-    TLV320_RBSP(PinName xout, PinName cs, PinName sda, PinName scl, PinName sck, PinName ws, PinName tx, PinName rx, uint8_t int_level = 0x80, int32_t max_write_num = 16, int32_t max_read_num = 16);
+    TLV320_RBSP(PinName cs, PinName sda, PinName scl, PinName sck, PinName ws, PinName tx, PinName rx, uint8_t int_level = 0x80, int32_t max_write_num = 16, int32_t max_read_num = 16);
 
     /** Overloaded power() function default = 0x80, record requires 0x02
      *
@@ -66,8 +65,9 @@
     /** Set I2S interface bit length and mode
      *
      * @param length Set bit length to 16, 20, 24 or 32 bits
+     * @return true = success, false = failure
      */
-    void format(char length);
+    bool format(char length);
 
     /** Set sample frequency
      *
@@ -84,6 +84,14 @@
      */
     void reset(void);
 
+    /** Get a value of SSIF channel number
+     *
+     * @return SSIF channel number
+     */
+    int32_t GetSsifChNo(void) {
+        return mI2s_.GetSsifChNo();
+    };
+
     /** Enqueue asynchronous write request
      *
      * @param p_data Location of the data