esp_peripheral.h 500 B

1234567891011121314151617181920212223242526272829
  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. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif