@@ -18,10 +18,28 @@ namespace rpp_driver {
1818/* *
1919 * \brief Analog Device ADAU1361A audio codec control class.
2020 * \details
21- * Control the ADAU1361A through the lower level controller class.
22- * This lower level controller class is given through the adau1361_lower
23- * parameter of the constructor.
21+ * Control the ADAU1361A through the lower level controller class
22+ * for example UmbAdau1361Lower.
23+ * Such the lower level controller variable is passed through the
24+ * adau1361_lower parameter of the constructor.
2425 *
26+ * The following is an example code to create an Adau1361 variable.
27+ * ```
28+ ::rpp_driver::I2cMaster i2c(sdk, // Inject SDK Dependency.
29+ *i2c1, // I2C controller to use.
30+ kI2cClock, // I2C Clock [Hz]
31+ kI2cScl_pin, // GPIO pin for SCL
32+ kI2cSdaPin); // GPIO pin # for SDA
33+
34+ ::rpp_driver::UmbAdau1361Lower codec_lower(
35+ i2c, // Inject I2C controller dependency.
36+ kAdau1361I2cAddress); // I2C address of UMB-ADAU1361-A
37+
38+ ::rpp_driver::Adau1361 codec(
39+ kFs, // Sampling frequency[Hz].
40+ kMClock, // Master clock of UMB-ADAU1361-A[Hz].
41+ codec_lower); // Inject Codec lower part dependency.
42+ * ```
2543 */
2644class Adau1361 {
2745 public:
0 commit comments