The board abstraction class of the Audio Framework. More...
#include <AFBoard.h>
Public Member Functions | |
| AFBoard (AFCore *core) | |
| Constructor for AFBoard. | |
| virtual AF_STATUS | Init ()=0 |
| Abstracts the process of initializing a board. | |
| virtual VOID | Deinit ()=0 |
| Abstracts the process of deinitializing a board. | |
| virtual BOOL | InitPaths () |
| Matches the initialization paths between the board and the codec and eventually calls init on the codec. | |
| virtual AFI2SBusCaps * | GetI2SBusCaps () |
| Abstracts the process of retrieving the capabilities of the board. | |
| virtual AFPath * | GetIOPath () |
| Abstracts the process of retrieving the paths supported by the board. | |
| virtual FLOAT | GetSysClk () |
| Method to get the system clock frequency (in Hz) of the CPU or the board. | |
| virtual | ~AFBoard () |
| Empty destructor for AFBoard. | |
Protected Attributes | |
| AFCore * | core |
| AFI2SBusCaps | i2sBusCaps |
| AFPath * | ioPath |
| FLOAT | sysClk |
The board abstraction class of the Audio Framework.
Definition at line 57 of file AFBoard.h.
| AFBoard::AFBoard | ( | AFCore * | core | ) | [inline] |
| virtual AFBoard::~AFBoard | ( | ) | [inline, virtual] |
| virtual VOID AFBoard::Deinit | ( | ) | [pure virtual] |
Abstracts the process of deinitializing a board.
A derived class will provide the deinitialization sequence for a particular board by overriding this member function.
| virtual AFI2SBusCaps* AFBoard::GetI2SBusCaps | ( | ) | [inline, virtual] |
Abstracts the process of retrieving the capabilities of the board.
| virtual AFPath* AFBoard::GetIOPath | ( | ) | [inline, virtual] |
| FLOAT AFBoard::GetSysClk | ( | ) | [virtual] |
Method to get the system clock frequency (in Hz) of the CPU or the board.
The value returned by this method is usually fed to a codec working in a slave mode to derive the other clocks required for I2S (BIT_CLK and LR_CLK).
Definition at line 39 of file AFBoard.cpp.
| virtual AF_STATUS AFBoard::Init | ( | ) | [pure virtual] |
Abstracts the process of initializing a board.
A derived class will provide the initialization sequence for a particular board by overriding this member function.
| BOOL AFBoard::InitPaths | ( | ) | [virtual] |
Matches the initialization paths between the board and the codec and eventually calls init on the codec.
Definition at line 49 of file AFBoard.cpp.
AFCore* AFBoard::core [protected] |
AFI2SBusCaps AFBoard::i2sBusCaps [protected] |
AFPath* AFBoard::ioPath [protected] |
FLOAT AFBoard::sysClk [protected] |
1.6.1