Raspberry Pio Pico Drivers project
Loading...
Searching...
No Matches
Public Member Functions
rpp_driver::MockI2sSlaveDuplex Class Reference

Mock class for test. More...

#include <i2sslaveduplex.hpp>

Inheritance diagram for rpp_driver::MockI2sSlaveDuplex:
Inheritance graph
[legend]
Collaboration diagram for rpp_driver::MockI2sSlaveDuplex:
Collaboration graph
[legend]

Public Member Functions

 MockI2sSlaveDuplex (SdkWrapper &sdk)
 
 MOCK_METHOD0 (GetStateMachine, uint32_t(void))
 
 MOCK_METHOD0 (Start, void(void))
 
 MOCK_METHOD0 (Stop, void(void))
 
 MOCK_METHOD1 (PutFifoBlocking, void(int32_t value))
 
 MOCK_METHOD0 (GetFifoBlocking, int32_t())
 
- Public Member Functions inherited from rpp_driver::I2sSlaveDuplex
 I2sSlaveDuplex (::rpp_driver::SdkWrapper &sdk, PIO pio, uint pin_base)
 Construct a new Duplex Slave I2S object.
 
 I2sSlaveDuplex (::rpp_driver::SdkWrapper &sdk, PIO pio, uint32_t sm, uint pin_base)
 Construct a new Duplex Slave I2S object.
 
 ~I2sSlaveDuplex ()
 Unclaim the state machine. No actual processing.
 
virtual void Start ()
 Initialize the I2S port, and run.
 
virtual void Stop ()
 Stop the I2S port and disable the PIO state machine in use.
 
virtual uint32_t GetStateMachine ()
 Get the State Machine object.
 
virtual int32_t GetFifoBlocking ()
 Get one audio data from RX FIFO.
 
virtual void PutFifoBlocking (int32_t value)
 Put one audio data to TX FIFO.
 

Detailed Description

Mock class for test.


The documentation for this class was generated from the following file: