Skip to content

Commit b1d9fe3

Browse files
committed
Refine the comment.
1 parent db3354c commit b1d9fe3

2 files changed

Lines changed: 34 additions & 6 deletions

File tree

src/codec/adau1361.hpp

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
2644
class Adau1361 {
2745
public:

src/codec/adau1361lower.hpp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ namespace rpp_driver {
2323
* @details
2424
* This class is helper class for the Adau1361 class.
2525
*
26-
* To initialize codec, follow the sequence from the Adau1361 class.
26+
* The ConfigureSignalPath() member function is a pure virtual
27+
* method. This function is depend on the signal routing of
28+
* the CODEC and it is depend on the circuit board.
29+
* User must derive a subclass of this class to implement
30+
* that function for his/her board.
31+
*
32+
* As an example of sub-class, UmbAdau1361Lower class is provided.
33+
*
34+
* To initialize codec, follow the sequence. This is done by the Adau1361 class.
2735
* @li InitializeCore()
2836
* @li DisablePLL()
2937
* @li ConfigurePll()
@@ -33,8 +41,10 @@ namespace rpp_driver {
3341
* @li InitializeRegisters()
3442
* @li ConfigureSignalPath()
3543
*
36-
* After these initialization, the ADC, DAC, Mixer and ISC are alive.
37-
* Note, all volumes are muted.
44+
* After these initialization, the ADC, DAC, Mixer
45+
* and signals by the I2S protocols are alive.
46+
* All volumes are muted.
47+
*
3848
*/
3949
class Adau1361Lower {
4050
public:

0 commit comments

Comments
 (0)