aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/hhkb/rn42/rn42.h
diff options
context:
space:
mode:
authorGravatar Enochen <darakath1128@gmail.com>2018-07-09 21:12:59 -0400
committerGravatar Drashna Jaelre <drashna@live.com>2018-07-09 18:12:59 -0700
commit5477bf39bfc01468ea8c09f025cf9c5ee3efd1b7 (patch)
tree06d8c55b03a5ae89353f137e939a531b39d6d43c /keyboards/hhkb/rn42/rn42.h
parenta345458fa9ce98b1e69e6a02dbc611fb5a0fe78d (diff)
downloadqmk_firmware-5477bf39bfc01468ea8c09f025cf9c5ee3efd1b7.tar.gz
add hhkb bluetooth functionality (rn42) (#2693)
* add hhkb bluetooth functionality (rn42) pretty much straight from tmk some minor changes to make things work * hhkb jp personal keymap * Revert "hhkb jp personal keymap" This reverts commit 886713d8bb98572f03110f285706a8140a083892.
Diffstat (limited to 'keyboards/hhkb/rn42/rn42.h')
-rw-r--r--keyboards/hhkb/rn42/rn42.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/keyboards/hhkb/rn42/rn42.h b/keyboards/hhkb/rn42/rn42.h
new file mode 100644
index 000000000..dee214cc8
--- /dev/null
+++ b/keyboards/hhkb/rn42/rn42.h
@@ -0,0 +1,30 @@
+#ifndef RN42_H
+#define RN42_H
+
+#include <stdbool.h>
+#include "host_driver.h"
+
+host_driver_t rn42_driver;
+host_driver_t rn42_config_driver;
+
+void rn42_init(void);
+int16_t rn42_getc(void);
+const char *rn42_gets(uint16_t timeout);
+void rn42_putc(uint8_t c);
+void rn42_puts(char *s);
+bool rn42_autoconnecting(void);
+void rn42_autoconnect(void);
+void rn42_disconnect(void);
+bool rn42_rts(void);
+void rn42_cts_hi(void);
+void rn42_cts_lo(void);
+bool rn42_linked(void);
+void rn42_set_leds(uint8_t l);
+
+const char *rn42_send_command(const char *cmd);
+void rn42_send_str(const char *str);
+void rn42_print_response(void);
+#define SEND_STR(str) rn42_send_str(PSTR(str))
+#define SEND_COMMAND(cmd) rn42_send_command(PSTR(cmd))
+
+#endif