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

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

#include <I2SSAMD.h>

Public Member Functions

int available ()
 
int availableForWrite ()
 
bool begin ()
 
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 ( )
inline

◆ availableForWrite()

int availableForWrite ( )
inline

◆ begin() [1/3]

bool begin ( )
inline

◆ begin() [2/3]

bool begin ( I2SConfigStd  cfg)
inline

starts the DAC

◆ begin() [3/3]

bool begin ( RxTxMode  mode)
inline

starts the DAC with the default config

◆ config()

I2SConfigStd config ( )
inline

provides the actual configuration

◆ defaultConfig()

I2SConfigStd defaultConfig ( RxTxMode  mode)
inline

Provides the default configuration.

◆ end()

void end ( )
inline

stops the I2C and unistalls the driver

◆ readBytes()

size_t readBytes ( void src,
size_t  size_bytes 
)
inline

◆ setAudioInfo()

bool setAudioInfo ( AudioInfo  )
inline

Potentially updates the sample rate (if supported)

◆ writeBytes()

size_t writeBytes ( const void src,
size_t  size_bytes 
)
inline

Friends And Related Symbol Documentation

◆ I2SStream

Member Data Documentation

◆ cfg

I2SConfigStd cfg
protected

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