aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/ClassDriver/AudioInput/AudioInput.c
AgeCommit message (Collapse)Author
2012-06-09Spell check source code, fix mistakes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2322 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-05-13AppConfigHeaders: Move out the last of the demo/app configurations into new ↵Dean
AppConfig.h header files. git-svn-id: http://lufa-lib.googlecode.com/svn/branches/AppConfigHeaders@2217 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-05-10Add branch for the conversion of demos to use standard C header files for ↵Dean
configuration, rather than makefile defined macros. git-svn-id: http://lufa-lib.googlecode.com/svn/branches/AppConfigHeaders@2192 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-03-14Audio Device Class driver changed to also require the index of the Audio ↵Dean
Control interface within the device, for SET/GET/CUR/MIN/MAX/RES property adjustments. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2110 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-03-07Fix incorrect Doxygen references in the Audio Input/Output ClassDriver demos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2088 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file contributor copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2026 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file header copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2025 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-01-28Added new CALLBACK_Audio_Device_GetSetInterfaceProperty() callback to the ↵Dean
Audio Device Class driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2012 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-23Run wspurify script on /trunk/ and /branches/ C source files, to remove any ↵dean
trailing whitespace at the end of each line. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2007 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-19Removed the ENDPOINT_DESCRIPTOR_DIR_* macros in favour of the shorter ↵Dean
ENDPOINT_DIR_* macros, which can now be used with both Endpoint_ConfigureEndpoint() and in the device descriptors. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1895 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-29Update AudioInput and AudioOutput Class Driver device mode demos to use a ↵Dean
switch statement when selecting the audio request type for clarity. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1830 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-16Rename new Audio class driver functions, callbacks and events to ensure that ↵Dean
they contain the USB mode (Device or Host) in the function names. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1803 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-14Fix Doxygen documentation errors.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1802 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-09Add new Audio Class Driver Host demos.Dean
Fix errors in the new Audio Host mode Class Driver, which would have prevented data from being sent or received properly by the device. Add microphone/square wave generation compile time switch to the Low Level AudioOutput Host demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1794 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-07Fix errors in the Audio device demos and class driver regarding multiple ↵Dean
sample frequency support. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1787 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-06Update the Low Level Audio Input and Audio Output demos to support multiple ↵Dean
sample rates. Remove custom PIDs on the Class Driver Audio device demos and revert back to the original Audio PIDs, as the low level and class driver demo versions are now descriptor compatible once again. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1783 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-03Added new callback to the Audio Class driver to allow for endpoint control ↵Dean
manipulations such as data sample rates. Modified the Class Driver AudioInput and AudioOutput demos to support multiple sample rates. Fixed KeyboardHost and KeyboardHostWithParser demos displaying incorrect values when numerical keys were pressed. Fix broken LowLevel audio demo descriptors. Minor documentation fixes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1779 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-10Add static keyword to all project globals whose scope should be restricted ↵Dean
to the same module as they are declared in. Tighten up the HID class bootloader code slightly, document that it currently exceeds 2KB of bootloader space for all models other than the Series 2 USB AVRs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1661 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-08Added board hardware driver support for the Adafruit U4 breakout board.Dean
Fixed calculation of timer register reload values derived from F_CPU; must subtract one from the division result for the compare value to be correct. Change AVRISP-MKII rescue clock speed to 4MHz to ensure that a 125KHz ISP speed works regardless of the target's fuses (i.e. DIV8 set). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1559 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-05Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean
EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1556 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-26Changed AudioInput and AudioOutput demos to reload the next sample via an ↵Dean
interrupt rather than polling the sample timer. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1539 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-20Added default test tone generation mode to the Device mode AudioInput demos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1534 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-09Removed complicated logic for the Endpoint_ConfigureEndpoint() function to ↵Dean
use inlined or function called versions depending of if the given bank size is a compile time constant, as the compiler does a better job of optimizing with basic code. Changed over all device demos to use a clearer algorithm for the configuring of the application's endpoints. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1438 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-12Minor fixes to demos to add in some missing comments, printf() formatting. ↵Dean
Make incomplete Bluetooth demo indicate connections visually via the board LEDs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1329 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-08Add svn:eol-style property to source files, so that the line endings are ↵Dean
correctly converted to the target system's native end of line style. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1248 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-28USB_Init() no longer calls sei() to enable global interrupts - this must now ↵Dean
be done in the user application once all init code has run. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1219 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-24Fixed compilation error in the AudioInput demos when ↵Dean
MICROPHONE_BIASED_TO_HALF_RAIL is defined (thanks to C. Scott Ananian). Minor documentation cleanups. Make sure HID class driver uses properly cast pointers when writing to the report buffer. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1175 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-25Added explicit ADC channel masks for the standard set of ADC channels, as ↵Dean
the single-ended channel MUX masks are not equal to the channel number on some AVR models. Changed demos to use the new channel masks when using the ADC driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1058 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-28Fix MIT license language to make its intent clearer.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1019 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-20Fixed Endpoint_Write_Control_Stream_* functions not sending a terminating IN ↵Dean
when the given data length is zero. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@905 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-12Make Audio device demos compatible with AVRs running at 16MHz instead of 8MHz.Dean
Fix up demo documentation device compatibility list to be as general as possible to reduce changes required as Atmel releases more devices within the same USB AVR series. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@865 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Renamed all library events to properly seperate out Device and Host mode ↵Dean
events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@718 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-30Fix incorrect configuration in the ClassDriver AudioOutput demo.Dean
Make all audio device Class Driver functions require a reference to the Audio class instance, so that the endpoint size can be checked (and to standardize the APIs). Make LEDs more responsive in the AudioOutput device demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@702 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-27State information for class drivers is now zeroed out during enumeration ↵Dean
(both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@689 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-18Break device mode class driver interfaces into seperate config and state ↵Dean
structs which are then combined, for clarity. Move device mode class driver interfaces back into the device mode class driver headers from the common class headers to make room for host class interfaces. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@609 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-11Changed to new device mode Class Driver function name prefixes to make way ↵Dean
for similar host mode Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@591 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-05Move new Class Driver powered demos to a new ClassDriver subdirectory, ↵Dean
re-add old low level demos to a LowLevel subdirectory. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@572 d5102386-fcda-11dd-9fdb-3debd5008f28