esp_peripheral.h 577 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #ifndef H_ESP_PERIPHERAL_
  7. #define H_ESP_PERIPHERAL_
  8. #include <stdbool.h>
  9. #include "nimble/ble.h"
  10. #include "modlog/modlog.h"
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /* Console */
  15. int scli_init(void);
  16. int scli_receive_key(int *key);
  17. /** Misc. */
  18. void print_bytes(const uint8_t *bytes, int len);
  19. void print_addr(const void *addr);
  20. char *addr_str(const void *addr);
  21. void print_mbuf(const struct os_mbuf *om);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif