libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy_pod.h
Go to the documentation of this file.
1#pragma once
2#ifndef DSY_POD_BSP_H
3#define DSY_POD_BSP_H
4
5#include "daisy_seed.h"
6
7namespace daisy
8{
17{
18 public:
26
34
37
39 void Init(bool boost = false);
40
44 void DelayMs(size_t del);
45
50
55
61
67
69 void StopAudio();
70
75
79
82 void SetAudioBlockSize(size_t blocksize);
83
86
89
93 void StartAdc();
94
96 void StopAdc();
97
100
102 inline void ProcessAllControls()
103 {
106 }
107
110
113
115 void ClearLeds();
116
119
132
133 private:
134 void SetHidUpdateRates();
135 void InitButtons();
136 void InitEncoder();
137 void InitLeds();
138 void InitKnobs();
139 void InitMidi();
140};
141
142} // namespace daisy
143#endif
Hardware Interface for control inputs Primarily designed for ADC input controls such as potentiomet...
Definition ctrl.h:18
void(* AudioCallback)(InputBuffer in, OutputBuffer out, size_t size)
Definition audio.h:65
void(* InterleavingAudioCallback)(InterleavingInputBuffer in, InterleavingOutputBuffer out, size_t size)
Definition audio.h:83
Class that handles initializing all of the hardware specific to the Daisy Patch Board....
Definition daisy_pod.h:17
Sw
Definition daisy_pod.h:21
@ BUTTON_LAST
Definition daisy_pod.h:24
@ BUTTON_1
Definition daisy_pod.h:22
@ BUTTON_2
Definition daisy_pod.h:23
AnalogControl * knobs[KNOB_LAST]
Definition daisy_pod.h:125
float AudioSampleRate()
RgbLed led1
Definition daisy_pod.h:129
size_t AudioBlockSize()
void ProcessAnalogControls()
void StartAudio(AudioHandle::AudioCallback cb)
void ChangeAudioCallback(AudioHandle::AudioCallback cb)
Knob
Definition daisy_pod.h:29
@ KNOB_2
Definition daisy_pod.h:31
@ KNOB_1
Definition daisy_pod.h:30
@ KNOB_LAST
Definition daisy_pod.h:32
~DaisyPod()
Definition daisy_pod.h:36
void ProcessDigitalControls()
void StartAudio(AudioHandle::InterleavingAudioCallback cb)
DaisySeed seed
Definition daisy_pod.h:121
void SetAudioSampleRate(SaiHandle::Config::SampleRate samplerate)
Encoder encoder
Definition daisy_pod.h:122
float GetKnobValue(Knob k)
RgbLed led2
Definition daisy_pod.h:130
Switch button1
Definition daisy_pod.h:126
DaisyPod()
Definition daisy_pod.h:35
float AudioCallbackRate()
void SetAudioBlockSize(size_t blocksize)
void Init(bool boost=false)
void ProcessAllControls()
Definition daisy_pod.h:102
Switch button2
Definition daisy_pod.h:127
void DelayMs(size_t del)
MidiUartHandler midi
Definition daisy_pod.h:131
Switch * buttons[BUTTON_LAST]
Definition daisy_pod.h:128
AnalogControl knob1
Definition daisy_pod.h:123
void ChangeAudioCallback(AudioHandle::InterleavingAudioCallback cb)
AnalogControl knob2
Definition daisy_pod.h:124
This is the higher-level interface for the Daisy board. All basic peripheral configuration/initiali...
Definition daisy_seed.h:19
Generic Class for handling Quadrature Encoders Inspired/influenced by Mutable Instruments (pichenet...
Definition encoder.h:18
Definition rgb_led.h:15
Definition switch.h:18
Hardware defines and helpers for daisy field platform.
Definition index.h:2
SampleRate
Definition sai.h:58