arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Friends | List of all members
I2SDriverSAMD Class Referenceabstract

Basic I2S API - for the SAMD. More...

#include <I2SDriverSAMD.h>

Inheritance diagram for I2SDriverSAMD:
I2SDriverBase

Public Member Functions

int available ()
 
int availableForWrite ()
 
bool begin ()
 
virtual bool begin (I2SConfig cfg)=0
 
bool begin (I2SConfigStd cfg)
 starts the DAC
 
bool begin (RxTxMode mode)
 starts the DAC with the default config
 
I2SConfigStd config ()
 provides the actual configuration
 
I2SConfigStd defaultConfig (RxTxMode mode)
 Provides the default configuration.
 
void end ()
 stops the I2C and unistalls the driver
 
size_t readBytes (void *src, size_t size_bytes)
 
bool setAudioInfo (AudioInfo)
 Potentially updates the sample rate (if supported)
 
size_t writeBytes (const void *src, size_t size_bytes)
 

Protected Attributes

I2SConfigStd cfg
 

Friends

class I2SStream
 

Detailed Description

Basic I2S API - for the SAMD.

Author
Phil Schatzmann

Member Function Documentation

◆ available()

int available ( )
inlinevirtual

Implements I2SDriverBase.

◆ availableForWrite()

int availableForWrite ( )
inlinevirtual

Implements I2SDriverBase.

◆ begin() [1/4]

bool begin ( )
inline

◆ begin() [2/4]

virtual bool begin ( I2SConfig  cfg)
pure virtualinherited

Implemented in I2SDriverESP32.

◆ begin() [3/4]

bool begin ( I2SConfigStd  cfg)
inline

starts the DAC

◆ begin() [4/4]

bool begin ( RxTxMode  mode)
inline

starts the DAC with the default config

◆ config()

I2SConfigStd config ( )
inlinevirtual

provides the actual configuration

Implements I2SDriverBase.

◆ defaultConfig()

I2SConfigStd defaultConfig ( RxTxMode  mode)
inlinevirtual

Provides the default configuration.

Implements I2SDriverBase.

◆ end()

void end ( )
inlinevirtual

stops the I2C and unistalls the driver

Implements I2SDriverBase.

◆ readBytes()

size_t readBytes ( void src,
size_t  size_bytes 
)
inlinevirtual

Implements I2SDriverBase.

◆ setAudioInfo()

bool setAudioInfo ( AudioInfo  )
inlinevirtual

Potentially updates the sample rate (if supported)

Implements I2SDriverBase.

◆ writeBytes()

size_t writeBytes ( const void src,
size_t  size_bytes 
)
inlinevirtual

Implements I2SDriverBase.

Friends And Related Symbol Documentation

◆ I2SStream

Member Data Documentation

◆ cfg

I2SConfigStd cfg
protected

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