Skip to content

Commit ffb1ebc

Browse files
committed
Update comment.
1 parent a8ebd44 commit ffb1ebc

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

src/gpio/gpiobasic.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ namespace rpp_driver {
2525
/**
2626
* @brief Basic GPIO driver class.
2727
* @details
28+
* This class provides the handy way to control GPIO. To use
29+
* this class, pass a GPIO pin# through the constructor.
30+
* So, this class initialize that pin in the constructor.
2831
*/
2932
class GpioBasic {
3033
public:

src/i2s/i2sslaveduplex.hpp

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ namespace rpp_driver {
1919
/**
2020
* @brief Duplex Slave I2S controller class.
2121
* @details
22-
* This class support the duplex communication of the I2S on the PIO port of the
23-
* RP2040/2350 SoC MCU.
22+
* This class supports the duplex communication of the I2S on the PIO port of
23+
* the RP2040/2350 SoC MCU.
2424
*
2525
* The timing signal (BCLK and WS) of the I2S must be provided from the external
26-
* device. This class support up to 192kHz Fs if the MCU system clock is higher
26+
* device. This class supports up to 192kHz Fs if the MCU system clock is higher
2727
* than 120MHz.
2828
*
2929
* The I2S pins can be mapped on the GPIO. This mapping is based on the
@@ -36,16 +36,24 @@ namespace rpp_driver {
3636
* -# BCLK
3737
* -# WS
3838
*
39+
* For example, let's assume SDTOUT is GPIO 15. Then, SDIN, BCLK and WS are
40+
* GPIO 16, 17 and 18 respectively.
41+
*
3942
* To start and stop the I2S transfer, call the Start() and the Stop() member
4043
* functions respectively.
4144
*
4245
* The audio sample in and out are through the GetFifoBlocking() and the
43-
* PutFifoBlocking() member function, respectively. These are blocking function.
44-
* That mean, program will wait until the data is ready, or FIFO has room for
45-
* data.
46+
* PutFifoBlocking() member functions, respectively. These are blocking
47+
* function. That mean, program will wait until the data is ready, or FIFO has
48+
* room for data.
4649
*
4750
* This class assumes polling based data transfer instead of interrupt / DMA
4851
* based data transfer.
52+
*
53+
* Typically, program process the signal obtained from GetFifoBLock() and
54+
* output to PutFifoBLock(). To provide the high quality processing,
55+
* The first GetFifoBlocking() call should be as soon as possible, after
56+
* calling start() function.
4957
*/
5058
class I2sSlaveDuplex {
5159
private:

src/sdk/sdkwrapper.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ namespace rpp_driver {
4848
*
4949
* This wrapper class is convenient for the dependency injection to allow
5050
* the unit test.
51+
*
52+
* The mock of this class is declared in the same file with this class.
5153
*/
5254
class SdkWrapper {
5355
public:

0 commit comments

Comments
 (0)