hhkb: Move functions which communicate with RN42
[tmk_keyboard.git] / keyboard / hhkb / rn42 / rn42.h
CommitLineData
4069776c 1#ifndef RN42_H
2#define RN42_H
3
31a298f9 4#include <stdbool.h>
2e464737 5#include "host_driver.h"
31a298f9 6
4069776c 7host_driver_t rn42_driver;
31a298f9 8host_driver_t rn42_config_driver;
9
10void rn42_init(void);
4f121de7 11int16_t rn42_getc(void);
3b3af3ba 12const char *rn42_gets(uint16_t timeout);
31a298f9 13void rn42_putc(uint8_t c);
4f121de7 14void rn42_puts(char *s);
fa545c87 15bool rn42_autoconnecting(void);
31a298f9 16void rn42_autoconnect(void);
17void rn42_disconnect(void);
fa545c87 18bool rn42_rts(void);
19void rn42_cts_hi(void);
20void rn42_cts_lo(void);
4b2b32a1 21bool rn42_linked(void);
bfd2d969 22void rn42_set_leds(uint8_t l);
4069776c 23
2e464737 24const char *rn42_send_command(const char *cmd);
25void rn42_send_str(const char *str);
26void 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
4069776c 30#endif
Imprint / Impressum