src/modules/bluetooth.c File Reference

This is the file for all bluetooth sepcific functions
. More...

#include "sysconfig.h"
#include "usart.h"
#include "timer.h"
#include <stdlib.h>
#include <stdarg.h>
#include <avr/pgmspace.h>

Functions

void bt_device_reset (void)
 reset_bt_device(): This function is called to reset the bluetooth device
void bt_device_config (void)
 usart_config(): This function is called to configure the bluetooth device

Variables

const char configure[] PROGMEM


Detailed Description

This is the file for all bluetooth sepcific functions
.

It handles all bluetooth configurations and resets.


Function Documentation

void bt_device_config ( void   ) 

usart_config(): This function is called to configure the bluetooth device

This function is called on bluetooth module configuration
It's a function to set up the bluetooth device with specific functionality

Parameters:
no param
Returns:
void

References bt_device_uc_config(), and my_delay().

Referenced by main().

void bt_device_reset ( void   ) 

reset_bt_device(): This function is called to reset the bluetooth device

This function is called on bluetooth module reset
It's function is to disable TX and set the pin low for a period of time and after that TX is reenabled

Parameters:
state to enable or disable the transmitter pin of AVR
Returns:
void

References my_delay(), and reset_uc_bt_device().


Variable Documentation

const char configure [] PROGMEM

Initial value:

        "SET BT NAME FH-alpha\r"
                                                                        "SET BT CLASS 001f00\r"
                                                                        "SET BT AUTH * 32456\r"
                                                                        "SET BT PAGEMODE 3 2000 1\r"
                                                                        "SET BT ROLE 0 f 7d00\r"
                                                                        "SET CONTROL BAUD 115200,8n1\r"
                                                                        "SET CONTROL CD 00 0\r"
                                                                        "SET CONTROL ECHO 1\r"
                                                                        "SET CONTROL ESCAPE 43 00 1\r"
                                                                        "SET\r"


Generated on Mon Jan 12 21:12:08 2009 for BlueTemp by  doxygen 1.5.8