Skip to content

daisy::SaiHandle::Config

More...

#include <sai.h>

Public Types

Name
enum class Peripheral
enum class SampleRate
enum class BitDepth
enum class Sync
enum class Direction

Public Attributes

Name
Peripheral periph
dsy_gpio_pin mclk
dsy_gpio_pin fs
dsy_gpio_pin sck
dsy_gpio_pin sa
dsy_gpio_pin sb
struct daisy::SaiHandle::Config::@15 pin_config
SampleRate sr
BitDepth bit_depth
Sync a_sync
Sync b_sync
Direction a_dir
Direction b_dir

Detailed Description

struct daisy::SaiHandle::Config;

Contains settings for initialising an SAI Interface

Public Types Documentation

enum Peripheral

Enumerator Value Description
SAI_1
SAI_2

Specifies the internal peripheral to use (mapped to different hardware pins)

enum SampleRate

Enumerator Value Description
SAI_8KHZ
SAI_16KHZ
SAI_32KHZ
SAI_48KHZ
SAI_96KHZ

Rate at which samples will be streaming to/from the device.

enum BitDepth

Enumerator Value Description
SAI_16BIT
SAI_24BIT
SAI_32BIT

Bit Depth that the hardware expects to be transferred to/from the device.

enum Sync

Enumerator Value Description
MASTER
SLAVE

Specifies whether a particular block is the master or the slave If both are set to slave, no MCLK signal will be used, and it is expected that the codec will have its own xtal.

enum Direction

Enumerator Value Description
TRANSMIT
RECEIVE

Specifies the direction for each peripheral block.

Public Attributes Documentation

variable periph

Peripheral periph;

variable mclk

dsy_gpio_pin mclk;

variable fs

dsy_gpio_pin fs;

variable sck

dsy_gpio_pin sck;

variable sa

dsy_gpio_pin sa;

variable sb

dsy_gpio_pin sb;

variable pin_config

struct daisy::SaiHandle::Config::@15 pin_config;

variable sr

SampleRate sr;

variable bit_depth

BitDepth bit_depth;

variable a_sync

Sync a_sync;

variable b_sync

Sync b_sync;

variable a_dir

Direction a_dir;

variable b_dir

Direction b_dir;

Updated on 2024-01-03 at 19:41:00 +0000