First Publish. Works fine.

Dependents:   unzen_sample_lpcxpresso_4337_callbacks

Revision:
10:45cbff9ee6e4
Parent:
9:2da6ce640691
Child:
11:5f91f55065c1
--- a/unzen.h	Sun May 08 02:44:45 2016 +0000
+++ b/unzen.h	Sun May 08 09:52:36 2016 +0000
@@ -161,41 +161,41 @@
         void set_process_irq_priority( unsigned int pri );
         
     private:
-        void (* pre_interrupt_callback )(void);
-        void (* post_interrupt_callback )(void);
-        void (* pre_process_callback )(void);
-        void (* post_process_callback )(void);
+        void (* _pre_interrupt_callback )(void);
+        void (* _post_interrupt_callback )(void);
+        void (* _pre_process_callback )(void);
+        void (* _post_process_callback )(void);
         
-        void (* process_callback )( float left_in[], float right_in[], float left_out[], float right_out[], unsigned int length );
+        void (* _process_callback )( float left_in[], float right_in[], float left_out[], float right_out[], unsigned int length );
         
             // Size of the blocks ( interval of interrupt to call process_callback. 1 means every interrupt. 2 means every 2 interrupt )
-        int block_size;
+        int _block_size;
         
             // Index for indentifying the buffer for interrupt. 0 or 1. 
-        int buffer_index;
+        int _buffer_index;
         
             // Index for indentifying the buffer for processing. 0 or 1. 
-        int process_index;
+        int _process_index;
         
             // next transfer position in buffer
-        int sample_index;
+        int _sample_index;
         
             // buffer for interrupt handler.
             // data format is LRLR... 
-        int *tx_int_buffer[2];
-        int *rx_int_buffer[2];
+        int *_tx_int_buffer[2];
+        int *_rx_int_buffer[2];
         
             // buffers for passing 
-        float * tx_left_buffer, * tx_right_buffer;
-        float * rx_left_buffer, * rx_right_buffer;
+        float * _tx_left_buffer, * _tx_right_buffer;
+        float * _rx_left_buffer, * _rx_right_buffer;
                 
             // real processing method.
-        void do_i2s_irq(void);
-        void do_process_irq(void);
+        void _do_i2s_irq(void);
+        void _do_process_irq(void);
         
             // handler for NIVC
-        static void i2s_irq_handler();
-        static void process_irq_handler();        
+        static void _i2s_irq_handler();
+        static void _process_irq_handler();        
     };