|
Raspberry Pio Pico Drivers project
|
Mock class for test. More...
#include <adau1361lower.hpp>


Public Member Functions | |
| MockAdau1361Lower (::rpp_driver::I2cMaster &controller) | |
| MOCK_METHOD2 (SendCommand, void(const uint8_t command[], int size)) | |
| MOCK_METHOD2 (SendCommandTable, void(const uint8_t table[][3], int rows)) | |
| MOCK_METHOD0 (IsI2CDeviceExisting, bool()) | |
| MOCK_METHOD0 (InitializeCore, void()) | |
| MOCK_METHOD0 (DisablePLL, void()) | |
| MOCK_METHOD0 (WaitPllLock, void()) | |
| MOCK_METHOD2 (ConfigurePll, void(unsigned int fs, unsigned int master_clock)) | |
| MOCK_METHOD1 (ConfigureSrc, void(unsigned int fs)) | |
| MOCK_METHOD0 (EnableCore, void()) | |
| MOCK_METHOD0 (InitializeRegisters, void()) | |
| MOCK_METHOD0 (ConfigureSignalPath, void()) | |
| MOCK_METHOD3 (SetLineInputGain, void(float left_gain, float right_gain, bool mute)) | |
| MOCK_METHOD3 (SetAuxInputGain, void(float left_gain, float right_gain, bool mute)) | |
| MOCK_METHOD3 (SetLineOutputGain, void(float left_gain, float right_gain, bool mute)) | |
| MOCK_METHOD3 (SetHpOutputGain, void(float left_gain, float right_gain, bool mute)) | |
Public Member Functions inherited from rpp_driver::Adau1361Lower | |
| Adau1361Lower (::rpp_driver::I2cMaster &controller, unsigned int i2c_device_addr) | |
| Construct a new object. | |
| virtual void | SendCommand (const uint8_t command[], int size) |
| send one command to ADAU1361. | |
| virtual void | SendCommandTable (const uint8_t table[][3], int rows) |
| Send multiple commands to ADAU1361. | |
| virtual bool | IsI2CDeviceExisting () |
| Check whether I2C device exist or not. | |
| virtual void | InitializeCore () |
| Reset the core for fresh procedure. | |
| virtual void | DisablePLL () |
| stop PLL to re-program. | |
| virtual void | WaitPllLock (void) |
| wait until PLL locks. | |
| virtual void | ConfigurePll (unsigned int fs, unsigned int master_clock) |
| Initialize the PLL with given fs and master clock. | |
| virtual void | ConfigureSrc (unsigned int fs) |
| Initialize the SRC with given fs clock. | |
| virtual void | EnableCore () |
| Initialize the core part of the ADAU1361A. | |
| virtual void | InitializeRegisters () |
| Initialize registers for the chip operation. | |
| virtual void | ConfigureSignalPath ()=0 |
| Initialize registers for the signal routing. | |
| virtual void | SetLineInputGain (float left_gain, float right_gain, bool mute) |
| Set the line input gain and enable the relevant mixer. | |
| virtual void | SetAuxInputGain (float left_gain, float right_gain, bool mute) |
| Set the aux input gain and enable the relevant mixer. | |
| virtual void | SetLineOutputGain (float left_gain, float right_gain, bool mute) |
| Set the line output gain and enable the relevant mixer. | |
| virtual void | SetHpOutputGain (float left_gain, float right_gain, bool mute) |
| Set the headphone output gain and enable the relevant mixer. | |
Additional Inherited Members | |
Protected Attributes inherited from rpp_driver::Adau1361Lower | |
| ::rpp_driver::I2cMaster & | i2c_ |
| Internal variable to hold the I2C controller variable. | |
| const unsigned int | device_addr_ |
| Internal variable to hold the I2C device address. | |
Mock class for test.