Home

Functions

dwengoBluetooth.h File Reference

Bluetooth routines. More...

#include "dwengoUsart.h"
#include "dwengoBoard.h"

Functions

void initBluetooth (void)
 Bluetooth initialization function.
BYTE bluetoothReady (void)
 Data ready on bluetooth.
BYTE readBluetooth (void)
 Read from Bluetooth.
void sendBluetooth (BYTE data)
 Send one byte using Bluetooth.

Detailed Description

Bluetooth routines.

Library to communicate using a Bluetooth module.


Function Documentation

BYTE bluetoothReady ( void  )

Data ready on bluetooth.

Checks wether data can be send using the bluetooth module.

void initBluetooth ( void  )

Bluetooth initialization function.

Configures baudrate (= 9600) and pins RC6 and RC7

BYTE readBluetooth ( void  )

Read from Bluetooth.

Returns the next byte received by the bluetooth module, can only be used if bluetoothReady() == TRUE

void sendBluetooth ( BYTE  data)

Send one byte using Bluetooth.

Sends one byte using the Bluetooth module.

Parameters:
datathe byte to send
 All Data Structures Files Functions Variables Defines

Generated on Wed Dec 25 2013 23:03:08 for Dwengo library by doxygen 1.7.3