Bluetooth hc05 library
hc05.h@2:38f1fb034a75, 2018-08-17 (annotated)
- Committer:
- rainerraul
- Date:
- Fri Aug 17 15:34:43 2018 +0000
- Revision:
- 2:38f1fb034a75
- Parent:
- 1:8d4296aafa55
- Child:
- 3:86c6baa6255d
add methods
Who changed what in which revision?
User | Revision | Line number | New 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 *get_modul_address(UART num); |
rainerraul | 0:15a264bf1590 | 13 | char *get_modul_name(UART num); |
rainerraul | 0:15a264bf1590 | 14 | char *get_device_name(UART num); |
rainerraul | 0:15a264bf1590 | 15 | char *get_modul_role(UART num); |
rainerraul | 0:15a264bf1590 | 16 | char *get_device_class(UART num); |
rainerraul | 0:15a264bf1590 | 17 | char *get_modul_giac(UART num); |
rainerraul | 0:15a264bf1590 | 18 | char *get_modul_inquiry(UART num); |
rainerraul | 0:15a264bf1590 | 19 | char *get_modul_pincode(UART num); |
rainerraul | 0:15a264bf1590 | 20 | char *get_modul_uart(UART num); |
rainerraul | 0:15a264bf1590 | 21 | char *get_modul_inqm(UART num); |
rainerraul | 0:15a264bf1590 | 22 | char *get_modul_init(UART num); |
rainerraul | 0:15a264bf1590 | 23 | char *get_modul_state(UART num); |
rainerraul | 0:15a264bf1590 | 24 | char *get_addr_mode(UART num); |
rainerraul | 0:15a264bf1590 | 25 | char *get_fixed_addr(UART num); |
rainerraul | 1:8d4296aafa55 | 26 | |
rainerraul | 1:8d4296aafa55 | 27 | char *set_reset(UART num); |
rainerraul | 1:8d4296aafa55 | 28 | char *set_default_settings(UART num); |
rainerraul | 2:38f1fb034a75 | 29 | char *set_modul_role(UART num, int role); |
rainerraul | 2:38f1fb034a75 | 30 | char *set_modul_pincode(UART num, char *pin); |
rainerraul | 2:38f1fb034a75 | 31 | char *set_device_uart(UART num, char *uartparams); |
rainerraul | 0:15a264bf1590 | 32 | private : |
rainerraul | 0:15a264bf1590 | 33 | _IRQ t_interrupt; |
rainerraul | 0:15a264bf1590 | 34 | _IRQ t_interrupt1; |
rainerraul | 0:15a264bf1590 | 35 | }; |
rainerraul | 0:15a264bf1590 | 36 | |
rainerraul | 0:15a264bf1590 | 37 | #endif |