diff options
Diffstat (limited to 'docs/en')
| -rwxr-xr-x | docs/en/api/api_device.rst | 18 | ||||
| -rwxr-xr-x | docs/en/support/img/tmcdev1.png | bin | 578670 -> 0 bytes | |||
| -rwxr-xr-x | docs/en/support/img/tmcdev2.png | bin | 218648 -> 0 bytes | |||
| -rwxr-xr-x | docs/en/support/index.rst | 5 |
4 files changed, 16 insertions, 7 deletions
diff --git a/docs/en/api/api_device.rst b/docs/en/api/api_device.rst index f44be9dd..5272b9fc 100755 --- a/docs/en/api/api_device.rst +++ b/docs/en/api/api_device.rst @@ -388,12 +388,26 @@ usbd_audio_set_volume .. code-block:: C - void usbd_audio_set_volume(uint8_t busid, uint8_t ep, uint8_t ch, int volume_db); + void usbd_audio_set_volume(uint8_t busid, uint8_t ep, uint8_t ch, float volume_db); - **busid** USB bus ID - **ep** Endpoint to set volume - **ch** Channel to set volume -- **volume_db** Volume to set in decibels, range -100dB ~ 0dB +- **volume_db** Volume to set in dB, default range -100 ~ 0 + +usbd_audio_get_volume +"""""""""""""""""""""""""""""""""""" + +``usbd_audio_get_volume`` is used to get volume. + +.. code-block:: C + + float usbd_audio_get_volume(uint8_t busid, uint8_t ep, uint8_t ch); + +- **busid** USB bus ID +- **ep** Endpoint to get volume +- **ch** Channel to get volume +- **returns** Volume in dB, default range -100 ~ 0 usbd_audio_set_sampling_freq """""""""""""""""""""""""""""""""""" diff --git a/docs/en/support/img/tmcdev1.png b/docs/en/support/img/tmcdev1.png Binary files differdeleted file mode 100755 index 1eaf7155..00000000 --- a/docs/en/support/img/tmcdev1.png +++ /dev/null diff --git a/docs/en/support/img/tmcdev2.png b/docs/en/support/img/tmcdev2.png Binary files differdeleted file mode 100755 index 97c8297b..00000000 --- a/docs/en/support/img/tmcdev2.png +++ /dev/null diff --git a/docs/en/support/index.rst b/docs/en/support/index.rst index cc49dc4a..6c99550f 100755 --- a/docs/en/support/index.rst +++ b/docs/en/support/index.rst @@ -29,11 +29,6 @@ Demonstrates USB Host UVC driver with 648 * 480 YUV camera. FPS 30. .. figure:: img/mtpdev.png -- Device TMC class driver - -.. figure:: img/tmcdev1.png -.. figure:: img/tmcdev2.png - - USB network class high-performance version optimization, includes CDC-NCM, CDC-RNDIS, proprietary class drivers (supports multi-packet transmission and reception), RNDIS example shown below .. figure:: img/rndistx.png |
