]>
Commit | Line | Data |
---|---|---|
4069776c | 1 | #ifndef RN42_H |
2 | #define RN42_H | |
3 | ||
31a298f9 | 4 | #include <stdbool.h> |
2e464737 | 5 | #include "host_driver.h" |
31a298f9 | 6 | |
4069776c | 7 | host_driver_t rn42_driver; |
31a298f9 | 8 | host_driver_t rn42_config_driver; |
9 | ||
10 | void rn42_init(void); | |
4f121de7 | 11 | int16_t rn42_getc(void); |
3b3af3ba | 12 | const char *rn42_gets(uint16_t timeout); |
31a298f9 | 13 | void rn42_putc(uint8_t c); |
4f121de7 | 14 | void rn42_puts(char *s); |
fa545c87 | 15 | bool rn42_autoconnecting(void); |
31a298f9 | 16 | void rn42_autoconnect(void); |
17 | void rn42_disconnect(void); | |
fa545c87 | 18 | bool rn42_rts(void); |
19 | void rn42_cts_hi(void); | |
20 | void rn42_cts_lo(void); | |
4b2b32a1 | 21 | bool rn42_linked(void); |
bfd2d969 | 22 | void rn42_set_leds(uint8_t l); |
4069776c | 23 | |
2e464737 | 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 | ||
4069776c | 30 | #endif |