You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					31 lines
				
				729 B
			
		
		
			
		
	
	
					31 lines
				
				729 B
			| 
								 
											7 years ago
										 
									 | 
							
								#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
							 |