Skip to content

Commit 7a9efab

Browse files
committed
Update the doxygen comment.
1 parent b1d9fe3 commit 7a9efab

5 files changed

Lines changed: 23 additions & 15 deletions

File tree

src/codec/adau1361lower.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ namespace rpp_driver {
2727
* method. This function is depend on the signal routing of
2828
* the CODEC and it is depend on the circuit board.
2929
* 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.
30+
* that function for his/her board. As an example of sub-class, UmbAdau1361Lower
31+
* class is provided.
3332
*
3433
* To initialize codec, follow the sequence. This is done by the Adau1361 class.
3534
* @li InitializeCore()

src/codec/umbadau1361lower.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ namespace rpp_driver {
1818
/**
1919
* @brief lower part of the Adau1361 CODEC controller class.
2020
* @details
21-
* This is dedicated class for UMB-ADAU1361-A board.
22-
* All signal routings are configured for this board.
23-
*
24-
* http://dsps.shop-pro.jp/?pid=82798273
21+
* This is dedicated class for
22+
* [UMB-ADAU1361-A](http://dsps.shop-pro.jp/?pid=82798273) board. All signal
23+
* routings are configured for this board.
2524
*
2625
*/
2726
class UmbAdau1361Lower : public Adau1361Lower {

src/gpio/gpiobasic.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ namespace rpp_driver {
2727
* @details
2828
* This class provides the handy way to control GPIO. To use
2929
* this class, pass a GPIO pin# through the constructor.
30-
* So, this class initialize that pin in the constructor.
30+
* So, this class initialize and deinitialize that pin in the constructor and
31+
* destructor, respectively.
3132
*/
3233
class GpioBasic {
3334
public:
@@ -36,12 +37,12 @@ class GpioBasic {
3637
* @param pin GPIO pin number.
3738
* @details
3839
* Receive the GPIO pin.
39-
* And then, init it as GPIO.
40+
* And then, init it by ::rpp_driver::gpio_init().
4041
*/
4142
GpioBasic(SdkWrapper &sdk, uint pin);
4243
GpioBasic() = delete;
4344
/**
44-
* @brief deinit the I2C by sdk.i2c_deinit();
45+
* @brief deinit the GPIO by ::rpp_driver::gpio_deinit();
4546
*/
4647
virtual ~GpioBasic();
4748
/**

src/i2c/i2cmaster.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ namespace rpp_driver {
3333
* master controller. Everything operation in this class is polling based and
3434
* blocking.
3535
*
36+
* The constructor and destructor initializes and finalize the given I2C
37+
* controller, respectively.
38+
*
3639
* The ReadBlocking() and WriteBlocking() functions has nostop parameter. To use
3740
* the restart condition, set this parameter to true.
3841
*
@@ -48,14 +51,14 @@ class I2cMaster : public I2cMasterInterface {
4851
* @param sda_pin GPIO pin #
4952
* @details
5053
* Receive the uninitialized I2C hardware by parameter i2c, and initialize
51-
* it by sdk.i2c_init().
54+
* it by ::rpp_driver::i2c_init().
5255
* And then, set given pins to I2C function, and pull them up.
5356
*/
5457
I2cMaster(SdkWrapper &sdk, i2c_inst_t &i2c, uint clock_freq, uint scl_pin,
5558
uint sda_pin);
5659
I2cMaster() = delete;
5760
/**
58-
* @brief deinit the I2C by sdk.i2c_deinit();
61+
* @brief deinit the I2C by ::rpp_driver::i2c_deinit();
5962
*/
6063
virtual ~I2cMaster();
6164
/**

src/i2s/i2sslaveduplex.hpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class I2sSlaveDuplex {
6565
public:
6666
I2sSlaveDuplex(/* args */) = delete;
6767
/**
68-
* @brief Construct a new Duplex Slave I 2 S object
68+
* @brief Construct a new Duplex Slave I2S object
6969
*
7070
* @param sdk SDK wrapper class injection.
7171
* @param pio PIO to use.
@@ -74,22 +74,28 @@ class I2sSlaveDuplex {
7474
* The state machine number is not specified in this constructor.
7575
* Internally, the state machine will be allocate from the unused one.
7676
*
77+
* This constructor just registers the given parameters and allocated state
78+
* machine to the internal parameters. And then, claim the state machine. No
79+
* other processing will be done.
7780
*/
7881
I2sSlaveDuplex(::rpp_driver::SdkWrapper &sdk, PIO pio, uint pin_base);
7982
/**
80-
* @brief Construct a new Duplex Slave I 2 S object
83+
* @brief Construct a new Duplex Slave I2S object
8184
*
8285
* @param sdk SDK wrapper class injection.
8386
* @param pio PIO to use.
8487
* @param sm State machine to use.
8588
* @param pin_base The GPIO pin number of SDOUT signal.
8689
* @details
90+
* This constructor just registers the given parameters to the internal
91+
* parameters. And then, claim the state machine. No other processing will be
92+
* done.
8793
*/
8894
I2sSlaveDuplex(::rpp_driver::SdkWrapper &sdk, PIO pio, uint32_t sm,
8995
uint pin_base);
9096

9197
/**
92-
* @brief Stop the state machine and make FIFO empty.
98+
* @brief Unclaim the state machine. No actual processing.
9399
*/
94100
~I2sSlaveDuplex();
95101

0 commit comments

Comments
 (0)