1 /****************************************************************************** 2 / 3 / File: MSP3430.h 4 / 5 / Description: Micronas Multistandard Sound Processor (MSP) interface. 6 / 7 / Copyright 2001, Carlos Hasan 8 / 9 *******************************************************************************/ 10 11 #ifndef __MSP3430_H__ 12 #define __MSP3430_H__ 13 14 #include "I2CPort.h" 15 16 class CMSP3430 { 17 public: 18 CMSP3430(CI2CPort & port); 19 20 ~CMSP3430(); 21 22 status_t InitCheck() const; 23 24 void SetEnable(bool enable); 25 26 private: 27 int ControlRegister(); 28 29 void SetControlRegister(int value); 30 31 int Register(int address, int subaddress); 32 33 void SetRegister(int address, int subaddress, int value); 34 35 private: 36 CI2CPort & fPort; 37 int fAddress; 38 }; 39 40 #endif 41