test public
Dependencies: HttpServer_snapshot_mbed-os
SPDIF_GRBoard Class Reference
SPDIF_GRBoard class. More...
#include <SPDIF_GRBoard.h>
Inherits SPDIF_RBSP.
Public Member Functions | |
SPDIF_GRBoard (uint8_t int_level=0x80, int32_t max_write_num=16, int32_t max_read_num=16) | |
Create a audio codec class. | |
virtual void | power (bool type=true) |
Overloaded power() | |
virtual bool | format (char length) |
Set I2S interface bit length and mode. | |
virtual bool | frequency (int hz) |
Set sample frequency. | |
int32_t | GetSsifChNo (void) |
Get a value of SSIF channel number. | |
virtual int | write (void *const p_data, uint32_t data_size, const rbsp_data_conf_t *const p_data_conf=NULL) |
Enqueue asynchronous write request. | |
virtual int | read (void *const p_data, uint32_t data_size, const rbsp_data_conf_t *const p_data_conf=NULL) |
Enqueue asynchronous read request. | |
virtual bool | outputVolume (float leftVolumeOut, float rightVolumeOut) |
Headphone out volume control. | |
virtual bool | micVolume (float VolumeIn) |
Microphone volume. |
Detailed Description
SPDIF_GRBoard class.
Definition at line 35 of file SPDIF_GRBoard.h.
Constructor & Destructor Documentation
SPDIF_GRBoard | ( | uint8_t | int_level = 0x80 , |
int32_t | max_write_num = 16 , |
||
int32_t | max_read_num = 16 |
||
) |
Create a audio codec class.
- Parameters:
-
int_level Interupt priority (SPDIF) max_write_num The upper limit of write buffer (SPDIF) max_read_num The upper limit of read buffer (SPDIF)
Definition at line 44 of file SPDIF_GRBoard.h.
Member Function Documentation
bool format | ( | char | length ) | [virtual, inherited] |
Set I2S interface bit length and mode.
- Parameters:
-
length Set bit length to 16 bits
- Returns:
- true = success, false = failure
Implements AUDIO_RBSP.
Definition at line 63 of file SPDIF_RBSP.cpp.
bool frequency | ( | int | hz ) | [virtual, inherited] |
Set sample frequency.
- Parameters:
-
frequency Sample frequency of data in Hz
- Returns:
- true = success, false = failure
supports frequencies: 44.1kHz Default is 44.1kHz
Implements AUDIO_RBSP.
Definition at line 67 of file SPDIF_RBSP.cpp.
int32_t GetSsifChNo | ( | void | ) | [inherited] |
Get a value of SSIF channel number.
- Returns:
- SPDIF channel number
Definition at line 79 of file SPDIF_RBSP.h.
bool micVolume | ( | float | VolumeIn ) | [virtual, inherited] |
Microphone volume.
- Parameters:
-
VolumeIn Microphone volume
- Returns:
- Returns "true" for success, "false" if parameters are out of range
Implements AUDIO_RBSP.
Definition at line 54 of file SPDIF_RBSP.cpp.
bool outputVolume | ( | float | leftVolumeOut, |
float | rightVolumeOut | ||
) | [virtual, inherited] |
Headphone out volume control.
- Parameters:
-
leftVolumeOut Left headphone-out volume rightVolumeOut Right headphone-out volume
- Returns:
- Returns "true" for success, "false" if parameters are out of range
Implements AUDIO_RBSP.
Definition at line 49 of file SPDIF_RBSP.cpp.
void power | ( | bool | type = true ) |
[virtual, inherited] |
Overloaded power()
- Parameters:
-
type true=power up, false=power down
Implements AUDIO_RBSP.
Definition at line 59 of file SPDIF_RBSP.cpp.
int read | ( | void *const | p_data, |
uint32_t | data_size, | ||
const rbsp_data_conf_t *const | p_data_conf = NULL |
||
) | [virtual, inherited] |
Enqueue asynchronous read request.
- Parameters:
-
p_data Location of the data data_size Number of bytes to read p_data_conf Asynchronous control block structure
- Returns:
- Number of bytes read on success. negative number on error.
Implements AUDIO_RBSP.
Definition at line 113 of file SPDIF_RBSP.cpp.
int write | ( | void *const | p_data, |
uint32_t | data_size, | ||
const rbsp_data_conf_t *const | p_data_conf = NULL |
||
) | [virtual, inherited] |
Enqueue asynchronous write request.
- Parameters:
-
p_data Location of the data data_size Number of bytes to write p_data_conf Asynchronous control block structure
- Returns:
- Number of bytes written on success. negative number on error.
Implements AUDIO_RBSP.
Definition at line 105 of file SPDIF_RBSP.cpp.
Generated on Wed Jul 13 2022 05:33:38 by 1.7.2