comparison include/render.h @ 19:c98863e63174 matrix_gpio

Renamed matrixGpio to digital and matrix to analog
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 30 Apr 2015 16:58:41 +0100
parents 670be80463a3
children ad5cd8dd99b3
comparison
equal deleted inserted replaced
18:31503d9de101 19:c98863e63174
9 #define RENDER_H_ 9 #define RENDER_H_
10 10
11 // uint types 11 // uint types
12 #include <stdint.h> 12 #include <stdint.h>
13 #include "../include/Utilities.h" 13 #include "../include/Utilities.h"
14 #include "../include/matrix_gpio_mapping.h" 14 #include "../include/digital_gpio_mapping.h"
15 // Mappings from pin numbers on PCB to actual DAC channels 15 // Mappings from pin numbers on PCB to actual DAC channels
16 // This gives the DAC and ADC connectors the same effective pinout 16 // This gives the DAC and ADC connectors the same effective pinout
17 #define DAC_PIN0 6 17 #define DAC_PIN0 6
18 #define DAC_PIN1 4 18 #define DAC_PIN1 4
19 #define DAC_PIN2 2 19 #define DAC_PIN2 2
30 #define ADC_PIN4 4 30 #define ADC_PIN4 4
31 #define ADC_PIN5 5 31 #define ADC_PIN5 5
32 #define ADC_PIN6 6 32 #define ADC_PIN6 6
33 #define ADC_PIN7 7 33 #define ADC_PIN7 7
34 34
35 #define MATRIX_MAX 65535.0 35 #define ANALOG_MAX 65535.0
36 36
37 extern int gNumAudioChannels; // How many audio channels are present 37 extern int gNumAudioChannels; // How many audio channels are present
38 extern int gNumMatrixChannels; // How many matrix channels are present 38 extern int gNumAnalogChannels; // How many analog channels are present
39 extern int gNumMatrixGpioChannels; 39 extern int gNumDigitalChannels;
40 bool initialise_render(int numMatrixChannels, int numMatrixGpioChannels, int numAudioChannels, 40 bool initialise_render(int numAnalogChannels, int numDigitalChannels, int numAudioChannels,
41 int numMatrixFramesPerPeriod, 41 int numAnalogFramesPerPeriod,
42 int numAudioFramesPerPeriod, 42 int numAudioFramesPerPeriod,
43 float matrixSampleRate, float audioSampleRate, 43 float analogSampleRate, float audioSampleRate,
44 void *userData); 44 void *userData);
45 45
46 void render(int numMatrixFrames, int numAudioFrames, int numMatrixGpioFrames, float *audioIn, float *audioOut, 46 void render(int numAnalogFrames, int numAudioFrames, int numDigitalFrames, float *audioIn, float *audioOut,
47 float *matrixIn, float *matrixOut, uint32_t *matrixGpio); 47 float *analogIn, float *analogOut, uint32_t *digital);
48 48
49 void render_medium_prio(); 49 void render_medium_prio();
50 void render_low_prio(); 50 void render_low_prio();
51 51
52 void schedule_render_medium_prio(); 52 void schedule_render_medium_prio();