Skip to content

Struct daisy::SaiHandle::Config

ClassList > daisy > SaiHandle > Config

More...

  • #include <sai.h>

Public Types

Type Name
enum BitDepth
enum Direction
enum Peripheral
enum SampleRate
enum Sync

Public Attributes

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

Detailed Description

Contains settings for initialising an SAI Interface

Public Types Documentation

enum BitDepth

enum daisy::SaiHandle::Config::BitDepth {
    SAI_16BIT,
    SAI_24BIT,
    SAI_32BIT
};

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


enum Direction

enum daisy::SaiHandle::Config::Direction {
    TRANSMIT,
    RECEIVE
};

Specifies the direction for each peripheral block.


enum Peripheral

enum daisy::SaiHandle::Config::Peripheral {
    SAI_1,
    SAI_2
};

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


enum SampleRate

enum daisy::SaiHandle::Config::SampleRate {
    SAI_8KHZ,
    SAI_16KHZ,
    SAI_32KHZ,
    SAI_48KHZ,
    SAI_96KHZ
};

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


enum Sync

enum daisy::SaiHandle::Config::Sync {
    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.


Public Attributes Documentation

variable a_dir

Direction daisy::SaiHandle::Config::a_dir;

variable a_sync

Sync daisy::SaiHandle::Config::a_sync;

variable b_dir

Direction daisy::SaiHandle::Config::b_dir;

variable b_sync

Sync daisy::SaiHandle::Config::b_sync;

variable bit_depth

BitDepth daisy::SaiHandle::Config::bit_depth;

variable fs

Pin daisy::SaiHandle::Config::fs;

variable mclk

Pin daisy::SaiHandle::Config::mclk;

variable periph

Peripheral daisy::SaiHandle::Config::periph;

variable pin_config

struct daisy::SaiHandle::Config daisy::SaiHandle::Config::pin_config;

variable sa

Pin daisy::SaiHandle::Config::sa;

variable sb

Pin daisy::SaiHandle::Config::sb;

variable sck

Pin daisy::SaiHandle::Config::sck;

variable sr

SampleRate daisy::SaiHandle::Config::sr;


The documentation for this class was generated from the following file external-docs/libDaisy/src/per/sai.h