comparison include/BeagleRT.h @ 48:42a683058b6a newapi

Documentation updates, and move some defines from BeagleRT.h into specific projects where they are used
author andrewm
date Thu, 28 May 2015 17:23:33 -0400
parents 643cbee74eda
children 41d24dba6b74
comparison
equal deleted inserted replaced
47:643cbee74eda 48:42a683058b6a
7 * of the Hackable Instruments project (EPSRC) at Queen Mary University 7 * of the Hackable Instruments project (EPSRC) at Queen Mary University
8 * of London, 2013-14. 8 * of London, 2013-14.
9 * 9 *
10 * (c) 2014-15 Andrew McPherson, Victor Zappi and Giulio Moro, 10 * (c) 2014-15 Andrew McPherson, Victor Zappi and Giulio Moro,
11 * Queen Mary University of London 11 * Queen Mary University of London
12 */
13
14 /**
15 * \mainpage
16 *
17 * BeagleRT is a hard-real-time, ultra-low latency audio and sensor environment for
18 * BeagleBone Black, which works with the BeagleBone Audio Cape or a custom "BeagleRT Cape"
19 * which incorporates stereo audio with 8x, 16-bit analog inputs and outputs.
20 *
21 * BeagleRT is based on the Xenomai real-time Linux extensions (http://xenomai.org) and
22 * uses the BeagleBone %PRU subsystem to address the audio and sensor hardware.
23 *
24 * Further information can be found at http://beaglert.cc
12 */ 25 */
13 26
14 27
15 #ifndef BEAGLERT_H_ 28 #ifndef BEAGLERT_H_
16 #define BEAGLERT_H_ 29 #define BEAGLERT_H_
71 #define BEAGLERT_FLAG_INTERLEAVED (1 << 0) // Set if buffers are interleaved 84 #define BEAGLERT_FLAG_INTERLEAVED (1 << 0) // Set if buffers are interleaved
72 /** 85 /**
73 * Flag for BeagleRTContext. If set, indicates analog outputs persist for future frames. 86 * Flag for BeagleRTContext. If set, indicates analog outputs persist for future frames.
74 */ 87 */
75 #define BEAGLERT_FLAG_ANALOG_OUTPUTS_PERSIST (1 << 1) // Set if analog/digital outputs persist for future buffers 88 #define BEAGLERT_FLAG_ANALOG_OUTPUTS_PERSIST (1 << 1) // Set if analog/digital outputs persist for future buffers
76
77 // Mappings from pin numbers on PCB to actual DAC channels
78 // This gives the DAC and ADC connectors the same effective pinout
79 #define DAC_PIN0 6
80 #define DAC_PIN1 4
81 #define DAC_PIN2 2
82 #define DAC_PIN3 0
83 #define DAC_PIN4 1
84 #define DAC_PIN5 3
85 #define DAC_PIN6 5
86 #define DAC_PIN7 7
87
88 #define ADC_PIN0 0
89 #define ADC_PIN1 1
90 #define ADC_PIN2 2
91 #define ADC_PIN3 3
92 #define ADC_PIN4 4
93 #define ADC_PIN5 5
94 #define ADC_PIN6 6
95 #define ADC_PIN7 7
96 89
97 /** 90 /**
98 * \ingroup control 91 * \ingroup control
99 * \brief Structure containing initialisation parameters for the real-time 92 * \brief Structure containing initialisation parameters for the real-time
100 * audio control system. 93 * audio control system.