]> git.gir.st - tmk_keyboard.git/blob - keyboard/hhkb/rn42/rn42.h
hhkb: Move functions which communicate with RN42
[tmk_keyboard.git] / keyboard / hhkb / rn42 / rn42.h
1 #ifndef RN42_H
2 #define RN42_H
3
4 #include <stdbool.h>
5 #include "host_driver.h"
6
7 host_driver_t rn42_driver;
8 host_driver_t rn42_config_driver;
9
10 void rn42_init(void);
11 int16_t rn42_getc(void);
12 const char *rn42_gets(uint16_t timeout);
13 void rn42_putc(uint8_t c);
14 void rn42_puts(char *s);
15 bool rn42_autoconnecting(void);
16 void rn42_autoconnect(void);
17 void rn42_disconnect(void);
18 bool rn42_rts(void);
19 void rn42_cts_hi(void);
20 void rn42_cts_lo(void);
21 bool rn42_linked(void);
22 void rn42_set_leds(uint8_t l);
23
24 const char *rn42_send_command(const char *cmd);
25 void rn42_send_str(const char *str);
26 void rn42_print_response(void);
27 #define SEND_STR(str) rn42_send_str(PSTR(str))
28 #define SEND_COMMAND(cmd) rn42_send_command(PSTR(cmd))
29
30 #endif
Imprint / Impressum