seos_central.h 749 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <furi.h>
  3. #include <lib/toolbox/bit_buffer.h>
  4. #include <mbedtls/des.h>
  5. #include <mbedtls/aes.h>
  6. #include "secure_messaging.h"
  7. #include "seos_common.h"
  8. #include "seos.h"
  9. #include "seos_att.h"
  10. #include "keys.h"
  11. #define BLE_START 0xc0
  12. typedef struct {
  13. Seos* seos;
  14. SeosAtt* seos_att;
  15. SeosPhase phase;
  16. AuthParameters params;
  17. SecureMessaging* secure_messaging;
  18. SeosCredential* credential;
  19. } SeosCentral;
  20. SeosCentral* seos_central_alloc(Seos* seos);
  21. void seos_central_free(SeosCentral* seos_central);
  22. void seos_central_start(SeosCentral* seos_central, FlowMode mode);
  23. void seos_central_stop(SeosCentral* seos_central);
  24. void seos_central_notify(void* context, const uint8_t* buffer, size_t buffer_len);