

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *Copyright (c) 2011 ABLab Solutions All rights reserved.

Unsigned char i char *usart_string_receive(char *receive_string,unsigned char terminating_character)Įrror: C:\cvavreval\inc\usart.h(115), #include-d from: hc05.h: undefined symbol 'unsigned'Įrror: C:\cvavreval\inc\usart.h(115), #include-d from: hc05.h: ' ' expected, but ')' foundĮrror: C:\cvavreval\inc\usart.h(119), #include-d from: hc05.h: out of contextĮrror: C:\cvavreval\inc\hc05.h(68), #include-d from: hc11.c: undefined symbol 'unsigned'Įrror: C:\cvavreval\inc\hc05.h(68), #include-d from: hc11.c: ' ' expected, but ')' foundĮrror: C:\cvavreval\inc\hc05.h(72), #include-d from: hc11.c: out of contextĮrror: C:\cvavreval\inc\hc05.h(193), #include-d from: hc11.c: must declare first in blockĬode: //Micricontroller :All 8-bit AVR Micricontrollers with Similar Register Configuration with ATmega16 Void usart_data_transmit(unsigned char data ) *The function is declared to receive string.*/Ĭhar *usart_string_receive(char *receive_string,unsigned char terminating_character) Void usart_string_transmit(char *string) *The function is declared to transmit string.*/ Unsigned char usart_data_receive( void ) *The function is declared to receive data.*/ *The function is declared to transmit data.*/ *The function is declared to initialize the USART with following cinfiguration:. char hc_05_bluetooth_pin_change(char *new_pin) Unsigned char hc_05_bluetooth_get_version(void) Unsigned char hc_05_bluetooth_device_name_change(char *device_name) char hc_05_bluetooth_change_baud_rate(long int baud_rate) Usart_string_receive(hc_05_buffer1,0x0d) Unsigned char hc_05_bluetooth_at_command_mode_test(void) If(*(receive_string+i)=terminating_character) *(receive_string+i)=usart_data_receive() Void hc_05_bluetooth_transmit_string(char *transmit_string)Ĭhar *hc_05_bluetooth_receive_string(char *receive_string, unsigned char terminating_character) Void hc_05_bluetooth_transmit_byte(char data_byte) Void hc_05_bluetooth_transmit_command(char *transmit_string) Ĭhar *hc_05_bluetooth_receive_string(char *receive_string, unsigned char terminating_character) Void hc_05_bluetooth_transmit_string(char *transmit_string)
#Codevisionavr assembly in c Bluetooth#
Hc_05_bluetooth_transmit_string("/*Transmits a string to Bluetooth Module*/Ĭhar hc_05_buffer1, hc_05_buffer2 *Transmits New Line to Bluetooth Module for new line*/ *Transmits Carriage return to Bluetooth Module*/ *Transmits a string to Bluetooth Module*/ Hc_05_bluetooth_transmit_string("ABLab Solutions") *Includes hc05.h header file which defines different functions for HC-05 Bluetooth Module. *Includes delay.h header file which defines two functions, _delay_ms (millisecond delay) and _delay_us (microsecond delay)*/ Default value of F_CPU in delay.h header file is 1000000(1MHz)*/ F_CPU is the microcontroller frequency value for the delay.h header file. *Defines a macro for the delay.h header file.

*Includes io.h header file where all the Input/Output Registers and its Bits are defined for all AVR microcontrollers*/
