2014-06-25 04:57:36 +00:00
|
|
|
#ifndef RN42_H
|
|
|
|
#define RN42_H
|
|
|
|
|
2014-06-30 19:29:45 +00:00
|
|
|
#include <stdbool.h>
|
2016-12-26 03:15:39 +00:00
|
|
|
#include "host_driver.h"
|
2014-06-30 19:29:45 +00:00
|
|
|
|
2014-06-25 04:57:36 +00:00
|
|
|
host_driver_t rn42_driver;
|
2014-06-30 19:29:45 +00:00
|
|
|
host_driver_t rn42_config_driver;
|
|
|
|
|
|
|
|
void rn42_init(void);
|
2015-01-10 17:39:32 +00:00
|
|
|
int16_t rn42_getc(void);
|
2015-01-11 19:32:53 +00:00
|
|
|
const char *rn42_gets(uint16_t timeout);
|
2014-06-30 19:29:45 +00:00
|
|
|
void rn42_putc(uint8_t c);
|
2015-01-10 17:39:32 +00:00
|
|
|
void rn42_puts(char *s);
|
2014-07-17 04:06:48 +00:00
|
|
|
bool rn42_autoconnecting(void);
|
2014-06-30 19:29:45 +00:00
|
|
|
void rn42_autoconnect(void);
|
|
|
|
void rn42_disconnect(void);
|
2014-07-17 04:06:48 +00:00
|
|
|
bool rn42_rts(void);
|
|
|
|
void rn42_cts_hi(void);
|
|
|
|
void rn42_cts_lo(void);
|
2014-07-23 03:23:00 +00:00
|
|
|
bool rn42_linked(void);
|
2014-09-22 05:20:49 +00:00
|
|
|
void rn42_set_leds(uint8_t l);
|
2014-06-25 04:57:36 +00:00
|
|
|
|
2016-12-26 03:15:39 +00:00
|
|
|
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))
|
|
|
|
|
2014-06-25 04:57:36 +00:00
|
|
|
#endif
|