aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
Commit message (Collapse)AuthorAgeFilesLines
* Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean Camera2010-10-281-1/+1
| | | | redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists.
* Clean up excessive whitespace at the end of each line using the wspurify ↵Dean Camera2010-10-131-15/+16
| | | | tool made by Laszlo Monda
* Update all demos, projects and bootloaders to indent all function ↵Dean Camera2010-07-211-1/+2
| | | | | | parameters, one per line, for better readability. Add missing const qualifiers to the demos.
* Rename Bluetooth stack function parameters to clearly indicate what sort of ↵Dean Camera2010-07-111-2/+1
| | | | | | | | Bluetooth channel (ACL, RFCOMM) is required for each parameter, to make the code easier to read. Add a new RFCOMM_ChannelSignalsReceived() Bluetooth stack callback from the RFCOMM layer for when the remote device sends new terminal control signals. Fix RFCOMM_SendData() not aborting correctly when the requested RFCOMM channel is not found.
* Move out Bluetooth stack callback functions to a seperate ↵Dean Camera2010-07-081-109/+3
| | | | BluetoothEvents.c/.h set of files for clarity in the Incomplete BluetoothHost demo. Add a new stack callback for opened ACL channels, make the demo save the RFCOMM channel when opened so that it does not have to search for it on each iteration of the main program loop.
* Move out RFCOMM channel structure init code to a seperate routine, to save ↵Dean Camera2010-07-021-6/+9
| | | | on compiled code space and to prevent copy-paste errors.
* Add RFCOMM service routine, to send pending configuration requests on RFCOMM ↵Dean Camera2010-06-291-1/+7
| | | | | | | | | | channels. Add in RFCOMM channel config flags, to determine which configuration commands have been sent and received. Add a new RFCOMM_SendChannelSignals() function to transmit a change in V24 terminal handshake lines to the receiving device. Prevent SABM packets sent to the control DLCI in the RFCOMM layer from creating a new channel entry, as the control DLCI does not have connection data associated with it. Fix up MSC control packet handling so that received responses can be acknowledged correctly, so that the RFCOMM layer can record when the receiving device has ACKed a sent change in V24 terminal handshake lines.
* Added new pgm_read_ptr() macro to Common.h for reading of pointers out of ↵Dean Camera2010-06-221-3/+3
| | | | | | flash memory space. Added new SWAPENDIAN_16() and SWAPENDIAN_32() macros to Common.h for statically initialized variables at compile time.
* Minor fixes to demos to add in some missing comments, printf() formatting. ↵Dean Camera2010-06-121-0/+4
| | | | Make incomplete Bluetooth demo indicate connections visually via the board LEDs.
* Minor documentation cleanups.Dean Camera2010-06-031-2/+2
|
* Start implementation of RFCOMM decoding layer. Add new service initialize ↵Dean Camera2010-06-031-0/+4
| | | | routines for each Bluetooth service - currently unused, but will eventually reset the service state of RFCOMM when a new connection is made.
* Extra protocol value in the RFCOMM protocol is the channel number, not the ↵Dean Camera2010-06-031-1/+2
| | | | | | PSM - update typedef name and size. Add delay to the Connection Request signal processing routine - without this, the host will not create the RFCOMM channel correctly. Need to investigate why this delay is needed.
* Add PSM value to the RFCOMM service so that the host knows what PSM to use ↵Dean Camera2010-06-031-5/+1
| | | | on channels when trying to access it.
* Add start of RFCOMM service layer to the incomplete BluetoothHost demo.Dean Camera2010-06-031-1/+5
| | | | Reduce the size of the attribute search list from 15 ranges to 8 to save RAM.
* Add comments and partial Doxygen documentation to the incomplete Bluetooth ↵Dean Camera2010-05-211-1/+1
| | | | SDP handler code.
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-297/+297
| | | | correctly converted to the target system's native end of line style.
* USB_Init() no longer calls sei() to enable global interrupts - this must now ↵Dean Camera2010-04-281-0/+1
| | | | be done in the user application once all init code has run.
* Added ability to search by Channel PSM to the GetChannelData() function in ↵Dean Camera2010-04-221-3/+21
| | | | | | | | | | the BluetoothHost demo. Added new HCI states to properly initialize the bluetooth dongle and retrieve the local BDADDR. Factored out Bluetooth state information into a new state structure for easy reference in the user application. Added new StackInitialized() Bluetooth stack callback function.
* Make bluetooth SDP code correctly unpack the search UUIDs and parameters.Dean Camera2010-04-191-2/+1
| | | | Minor documentation improvements.
* Add const keyword to the demo function parameters where possible.Dean Camera2010-04-181-3/+3
|
* Add bluetooth channel connection callback to the incomplete BluetoothHost demo.Dean Camera2010-04-181-0/+14
|
* Minor documentation improvements.Dean Camera2010-04-151-4/+4
|
* Rename FunctionAttributes.h to Attributes.h, as some attributes are ↵Dean Camera2010-04-151-1/+1
| | | | | | | | applicable to variables also. Add new ATTR_NOINIT attribute for global variables. Add the beginnings of a SDP implentation to the incomplete BluetoothHost demo. Add const attribute to the Mass Storage Host driver functions where it was applicable, but missing.
* Document the Bluetooth ACL layer. Remove unneeded parameters from the ↵Dean Camera2010-04-131-12/+19
| | | | | | | | signalling command processing routines. Change over the code so that the bluetooth packet data is read in by the stack rather than the user application, to make it more unform for sending/receiving, and so the library can handle incomming fragmentation in the future. Start Service Discovery Protocol decoding and processing.
* Fix up Bluetooth Demo's options processing on incoming channel configuration ↵Dean Camera2010-04-111-2/+2
| | | | requests.
* Add bidirectional channel configuration -- remote device is not ACKing sent ↵Dean Camera2010-04-061-4/+5
| | | | | | Configuration Requests, needs further debugging. Implement Bluetooth spec's channel states. Use abbreviations for the structure and function names where possible to try to cut down on the code verbosity.
* Add packet reception and send routines to the ACL layer of the incomplete ↵Dean Camera2010-04-061-0/+33
| | | | Bluetooth Host demo.
* Add Bluetooth signalling echo request/response handlers, disconnection ↵Dean Camera2010-04-051-0/+27
| | | | | | | | request/response handlers. Add Bluetooth connection request/complete/disconnection callbacks. Remove debugging from HCI layer, as it is now operational -- add guards to ACL debug statements to reduce logging chattyness so that the overall command sequences can be observed and debugged.
* Add user callback function to the Bluetooth host demo to filter out ↵Dean Camera2010-04-051-9/+2
| | | | | | | | connections from remote devices. Add in ability to reject connections based on their bluetooth device address. Clean up RelayBoard project code. Make AVRISP project clear the XMEGA target's reset register twice; this does not appear to take affect properly the first time under some circumstances.
* More improvements to the incomplete BluetoothHost demo - add Disconnection ↵Dean Camera2010-04-011-16/+31
| | | | | | Event processing. Remove unused macro in the host mode demos for the maximum Configuration Descriptor size.
* Massive cleanups to the incomplete BluetoothHost demo, to make the HCL layer ↵Dean Camera2010-03-311-0/+3
| | | | code much easier to read, block less and work correctly.
* Update copyright year to 2010.Dean Camera2009-12-301-2/+2
|
* Fix MIT license language to make its intent clearer.Dean Camera2009-12-281-7/+7
|
* Make Endpoint control transfers more reliable; early-abort when an ↵Dean Camera2009-08-061-8/+8
| | | | | | incomplete packet is sent from the host (indicating end of transfer), add check for control reads to ensure that no more than wLength bytes are read from the interface. Condense sequential printf_P/puts_P calls to single printf_P calls for size and clarity.
* Renamed all library events to properly seperate out Device and Host mode ↵Dean Camera2009-08-051-9/+6
| | | | | | | | 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.
* Don't send terminal RESET codes via serial - just set the foreground colour ↵Dean Camera2009-07-191-1/+1
| | | | and assume the user has the background set to something sane, so that the demos don't wipe out custom user terminal settings.
* Use sane ANSI terminal escape codes for the Host mode demos, so that they do ↵Dean Camera2009-07-191-16/+15
| | | | not cause eye-searing, unreadable text on terminals which parse the escape codes properly.
* Added new HOST_STATE_WaitForDeviceRemoval host state machine state for ↵Dean Camera2009-07-131-10/+3
| | | | | | non-blocking disabling of device communications until the device has been removed (for use when an error occurs or communications with the device have completed). Changed over all host mode demos to use the new state. Added verbose documentation for each of the USB Host state machine states.
* Added incomplete PrinterHost demo application.Dean Camera2009-07-111-1/+1
| | | | | | Seperated out Lib components of the incomplete BluetoothHost demo application out into a seperate Lib subfolder. Changed F_CLOCK entries in project makefiles to alias to F_CPU by default, as this is the most common case.
* Added new USB_Host_ClearPipeStall() convenience function to clear a stall ↵Dean Camera2009-06-181-12/+2
| | | | | | | | | | condition on an attached device's endpoint. Added new USB_Host_GetDeviceDescriptor() convenience function to retrieve the attached device's Device descriptor. Make Pipe_ConfigurePipe() mask the given endpoint number against PIPE_EPNUM_MASK to ensure the endpoint IN direction bit is cleared to prevent endpoint type corruption. Fix documentation mentioning Pipe_GetCurrentToken() function when real name is Pipe_GetPipeToken().
* Converted Host mode demos to schedulerless. Fixed host mode broken due to ↵Dean Camera2009-06-081-0/+1
| | | | earlier Start-of-frame event experiments.
* Add master device Host demo makefile.Dean Camera2009-06-051-0/+206
Copy and convert incomplete Bluetooth Host demo to the library.