Keyboard firmwares for Atmel AVR and Cortex-M
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.

rn42.h 729B

123456789101112131415161718192021222324252627282930
  1. #ifndef RN42_H
  2. #define RN42_H
  3. #include <stdbool.h>
  4. #include "host_driver.h"
  5. host_driver_t rn42_driver;
  6. host_driver_t rn42_config_driver;
  7. void rn42_init(void);
  8. int16_t rn42_getc(void);
  9. const char *rn42_gets(uint16_t timeout);
  10. void rn42_putc(uint8_t c);
  11. void rn42_puts(char *s);
  12. bool rn42_autoconnecting(void);
  13. void rn42_autoconnect(void);
  14. void rn42_disconnect(void);
  15. bool rn42_rts(void);
  16. void rn42_cts_hi(void);
  17. void rn42_cts_lo(void);
  18. bool rn42_linked(void);
  19. void rn42_set_leds(uint8_t l);
  20. const char *rn42_send_command(const char *cmd);
  21. void rn42_send_str(const char *str);
  22. void rn42_print_response(void);
  23. #define SEND_STR(str) rn42_send_str(PSTR(str))
  24. #define SEND_COMMAND(cmd) rn42_send_command(PSTR(cmd))
  25. #endif