Bluetooth hc05 library

Dependents:   Nucleo_bt

Committer:
rainerraul
Date:
Thu Aug 16 21:09:39 2018 +0000
Revision:
0:15a264bf1590
Child:
1:8d4296aafa55
hc05 bluetooth

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rainerraul 0:15a264bf1590 1 #ifndef HC05_H
rainerraul 0:15a264bf1590 2 #define HC05_H
rainerraul 0:15a264bf1590 3
rainerraul 0:15a264bf1590 4
rainerraul 0:15a264bf1590 5 enum UART {UART1, UART6};
rainerraul 0:15a264bf1590 6
rainerraul 0:15a264bf1590 7 class bt_modul_hc05
rainerraul 0:15a264bf1590 8 {
rainerraul 0:15a264bf1590 9 public :
rainerraul 0:15a264bf1590 10 void initUART(UART num, unsigned long baudrate, _IRQ interrupt);
rainerraul 0:15a264bf1590 11 char *get_version(UART num);
rainerraul 0:15a264bf1590 12 char *set_reset(UART num);
rainerraul 0:15a264bf1590 13 char *set_default_settings(UART num);
rainerraul 0:15a264bf1590 14 char *get_modul_address(UART num);
rainerraul 0:15a264bf1590 15 char *get_modul_name(UART num);
rainerraul 0:15a264bf1590 16 char *get_device_name(UART num);
rainerraul 0:15a264bf1590 17 char *get_modul_role(UART num);
rainerraul 0:15a264bf1590 18 char *get_device_class(UART num);
rainerraul 0:15a264bf1590 19 char *get_modul_giac(UART num);
rainerraul 0:15a264bf1590 20 char *get_modul_inquiry(UART num);
rainerraul 0:15a264bf1590 21 char *get_modul_pincode(UART num);
rainerraul 0:15a264bf1590 22 char *get_modul_uart(UART num);
rainerraul 0:15a264bf1590 23 char *get_modul_inqm(UART num);
rainerraul 0:15a264bf1590 24 char *get_modul_init(UART num);
rainerraul 0:15a264bf1590 25 char *get_modul_state(UART num);
rainerraul 0:15a264bf1590 26 char *get_addr_mode(UART num);
rainerraul 0:15a264bf1590 27 char *get_fixed_addr(UART num);
rainerraul 0:15a264bf1590 28 private :
rainerraul 0:15a264bf1590 29 _IRQ t_interrupt;
rainerraul 0:15a264bf1590 30 _IRQ t_interrupt1;
rainerraul 0:15a264bf1590 31 };
rainerraul 0:15a264bf1590 32
rainerraul 0:15a264bf1590 33 #endif