First Publish. Works fine.
Dependents: unzen_sample_LPC4088_quickstart
Diff: unzen.h
- Revision:
- 3:707608830793
- Parent:
- 2:6613e62da521
- Child:
- 8:63e098b779e9
--- a/unzen.h Tue May 03 01:10:32 2016 +0000 +++ b/unzen.h Tue May 03 07:44:49 2016 +0000 @@ -201,7 +201,7 @@ // Sampling Frequency of the umb_adau1361 enum Fs_Type { - Fs_441, Fs_48, Fs_96 + Fs_32, Fs_441, Fs_48, Fs_96 } ; // mbed I2C class needs the address as "left justified" value. Then, the ADAU1361's address 0x38 is @@ -214,6 +214,13 @@ addr_h73 } ; +/** +* \brief UMB-ADAU1361-A controller. +* \details +* This class send a set of command to control the UMB-ADAU1361-A board. +* See http://dsps.shop-pro.jp/?pid=82798273 for detatails. This board +* uses 12MHz clock. This controler set the codec as master mode. +*/ class umb_adau1361 { public: @@ -245,7 +252,19 @@ * \param mute */ void set_line_input_gain(float left_gain, float right_gain, bool mute=false); + /** + * \brief Set the line output gain and enable the relevant mixer. + * \param left_gain + * \param right_gain + * \param mute + */ void set_line_output_gain(float left_gain, float right_gain, bool mute=false); + /** + * \brief Set the headphone output gain and enable the relevant mixer. + * \param left_gain + * \param right_gain + * \param mute + */ void set_hp_output_gain(float left_gain, float right_gain, bool mute=false); private: I2C *i2c;